Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: runtime/vm/runtime_entry.h

Issue 1016503005: Rename NoGCScope -> NoSafepointScope. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #define DECLARE_RUNTIME_ENTRY(name) \ 93 #define DECLARE_RUNTIME_ENTRY(name) \
94 extern const RuntimeEntry k##name##RuntimeEntry 94 extern const RuntimeEntry k##name##RuntimeEntry
95 95
96 #define DEFINE_LEAF_RUNTIME_ENTRY(type, name, argument_count, ...) \ 96 #define DEFINE_LEAF_RUNTIME_ENTRY(type, name, argument_count, ...) \
97 extern "C" type DLRT_##name(__VA_ARGS__); \ 97 extern "C" type DLRT_##name(__VA_ARGS__); \
98 extern const RuntimeEntry k##name##RuntimeEntry( \ 98 extern const RuntimeEntry k##name##RuntimeEntry( \
99 "DLRT_"#name, reinterpret_cast<RuntimeFunction>(&DLRT_##name), \ 99 "DLRT_"#name, reinterpret_cast<RuntimeFunction>(&DLRT_##name), \
100 argument_count, true, false); \ 100 argument_count, true, false); \
101 type DLRT_##name(__VA_ARGS__) { \ 101 type DLRT_##name(__VA_ARGS__) { \
102 CHECK_STACK_ALIGNMENT; \ 102 CHECK_STACK_ALIGNMENT; \
103 NoGCScope no_gc_scope; \ 103 NoSafepointScope no_safepoint_scope; \
104 104
105 #define END_LEAF_RUNTIME_ENTRY } 105 #define END_LEAF_RUNTIME_ENTRY }
106 106
107 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \ 107 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \
108 extern const RuntimeEntry k##name##RuntimeEntry; \ 108 extern const RuntimeEntry k##name##RuntimeEntry; \
109 extern "C" type DLRT_##name(__VA_ARGS__) 109 extern "C" type DLRT_##name(__VA_ARGS__)
110 110
111 } // namespace dart 111 } // namespace dart
112 112
113 #endif // VM_RUNTIME_ENTRY_H_ 113 #endif // VM_RUNTIME_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698