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

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

Issue 11040062: Renamed Zone->StackZone, BaseZone->Zone, in preparation for changing isolate->get_zone() to return … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review changes Created 8 years, 2 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/snapshot_test.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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #define DEFINE_RUNTIME_ENTRY(name, argument_count) \ 54 #define DEFINE_RUNTIME_ENTRY(name, argument_count) \
55 extern void DRT_##name(NativeArguments arguments); \ 55 extern void DRT_##name(NativeArguments arguments); \
56 extern const RuntimeEntry k##name##RuntimeEntry( \ 56 extern const RuntimeEntry k##name##RuntimeEntry( \
57 "DRT_"#name, &DRT_##name, argument_count, false); \ 57 "DRT_"#name, &DRT_##name, argument_count, false); \
58 static void DRT_Helper##name(Isolate* isolate, NativeArguments arguments); \ 58 static void DRT_Helper##name(Isolate* isolate, NativeArguments arguments); \
59 void DRT_##name(NativeArguments arguments) { \ 59 void DRT_##name(NativeArguments arguments) { \
60 CHECK_STACK_ALIGNMENT; \ 60 CHECK_STACK_ALIGNMENT; \
61 VERIFY_ON_TRANSITION; \ 61 VERIFY_ON_TRANSITION; \
62 if (FLAG_trace_runtime_calls) OS::Print("Runtime call: %s\n", ""#name); \ 62 if (FLAG_trace_runtime_calls) OS::Print("Runtime call: %s\n", ""#name); \
63 { \ 63 { \
64 Zone zone(arguments.isolate()); \ 64 StackZone zone(arguments.isolate()); \
65 HANDLESCOPE(arguments.isolate()); \ 65 HANDLESCOPE(arguments.isolate()); \
66 DRT_Helper##name(arguments.isolate(), arguments); \ 66 DRT_Helper##name(arguments.isolate(), arguments); \
67 } \ 67 } \
68 VERIFY_ON_TRANSITION; \ 68 VERIFY_ON_TRANSITION; \
69 } \ 69 } \
70 static void DRT_Helper##name(Isolate* isolate, NativeArguments arguments) 70 static void DRT_Helper##name(Isolate* isolate, NativeArguments arguments)
71 71
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 82
83 #define END_LEAF_RUNTIME_ENTRY } 83 #define END_LEAF_RUNTIME_ENTRY }
84 84
85 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \ 85 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \
86 extern const RuntimeEntry k##name##RuntimeEntry; \ 86 extern const RuntimeEntry k##name##RuntimeEntry; \
87 extern "C" type DLRT_##name(__VA_ARGS__) 87 extern "C" type DLRT_##name(__VA_ARGS__)
88 88
89 } // namespace dart 89 } // namespace dart
90 90
91 #endif // VM_RUNTIME_ENTRY_H_ 91 #endif // VM_RUNTIME_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698