| 1 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | |
| 5 | #include "vm/globals.h" |
| 6 | #if defined(TARGET_ARCH_X64) |
| 7 | |
| 8 | #include "vm/runtime_entry.h" |
| 9 | |
| 10 | #if !defined(DART_PRECOMPILED_RUNTIME) |
| 11 | #include "vm/compiler/assembler/assembler.h" |
| 12 | #include "vm/stub_code.h" |
| 13 | #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 14 | |
| 15 | namespace dart { |
| 16 | |
| 17 | #define __ assembler-> |
| 18 | |
| 19 | uword RuntimeEntry::GetEntryPoint() const { |
| 20 | return reinterpret_cast<uword>(function()); |
| 21 | } |
| 22 | |
| 23 | } // namespace dart |
| 24 | |
| 25 | #endif // defined TARGET_ARCH_X64 |
| 26 | |