d44423b766
R=asiva@google.com Review URL: https://codereview.chromium.org//345223003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37567 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
501 B
C++
17 lines
501 B
C++
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "platform/assert.h"
|
|
#include "vm/bootstrap_natives.h"
|
|
|
|
namespace dart {
|
|
|
|
DEFINE_NATIVE_ENTRY(ClassID_getID, 1) {
|
|
const Instance& instance =
|
|
Instance::CheckedHandle(isolate, arguments->NativeArgAt(0));
|
|
return Smi::New(instance.GetClassId());
|
|
}
|
|
|
|
} // namespace dart
|