| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_RUNTIME_ENTRY_H_ | 5 #ifndef VM_RUNTIME_ENTRY_H_ |
| 6 #define VM_RUNTIME_ENTRY_H_ | 6 #define VM_RUNTIME_ENTRY_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #define DECLARE_RUNTIME_ENTRY(name) \ | 72 #define DECLARE_RUNTIME_ENTRY(name) \ |
| 73 extern const RuntimeEntry k##name##RuntimeEntry | 73 extern const RuntimeEntry k##name##RuntimeEntry |
| 74 | 74 |
| 75 #define DEFINE_LEAF_RUNTIME_ENTRY(type, name, ...) \ | 75 #define DEFINE_LEAF_RUNTIME_ENTRY(type, name, ...) \ |
| 76 extern "C" type DLRT_##name(__VA_ARGS__); \ | 76 extern "C" type DLRT_##name(__VA_ARGS__); \ |
| 77 extern const RuntimeEntry k##name##RuntimeEntry( \ | 77 extern const RuntimeEntry k##name##RuntimeEntry( \ |
| 78 "DLRT_"#name, reinterpret_cast<RuntimeFunction>(&DLRT_##name), 0, true); \ | 78 "DLRT_"#name, reinterpret_cast<RuntimeFunction>(&DLRT_##name), 0, true); \ |
| 79 type DLRT_##name(__VA_ARGS__) { \ | 79 type DLRT_##name(__VA_ARGS__) { \ |
| 80 CHECK_STACK_ALIGNMENT; \ | 80 CHECK_STACK_ALIGNMENT; \ |
| 81 NoGCScope no_gc_scope; \ | 81 NoGCScope no_gc_scope; \ |
| 82 NoHandleScope no_handle_scope; \ |
| 82 | 83 |
| 83 #define END_LEAF_RUNTIME_ENTRY } | 84 #define END_LEAF_RUNTIME_ENTRY } |
| 84 | 85 |
| 85 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \ | 86 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \ |
| 86 extern const RuntimeEntry k##name##RuntimeEntry; \ | 87 extern const RuntimeEntry k##name##RuntimeEntry; \ |
| 87 extern "C" type DLRT_##name(__VA_ARGS__) | 88 extern "C" type DLRT_##name(__VA_ARGS__) |
| 88 | 89 |
| 89 } // namespace dart | 90 } // namespace dart |
| 90 | 91 |
| 91 #endif // VM_RUNTIME_ENTRY_H_ | 92 #endif // VM_RUNTIME_ENTRY_H_ |
| OLD | NEW |