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 1285293004: Migrate most uses of StackZone(Isolate*) to Thread*. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Final cleanup. Created 5 years, 4 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scavenger.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 NativeArguments arguments); \ 73 NativeArguments arguments); \
74 void DRT_##name(NativeArguments arguments) { \ 74 void DRT_##name(NativeArguments arguments) { \
75 CHECK_STACK_ALIGNMENT; \ 75 CHECK_STACK_ALIGNMENT; \
76 VERIFY_ON_TRANSITION; \ 76 VERIFY_ON_TRANSITION; \
77 ASSERT(arguments.ArgCount() == argument_count); \ 77 ASSERT(arguments.ArgCount() == argument_count); \
78 if (FLAG_trace_runtime_calls) OS::Print("Runtime call: %s\n", ""#name); \ 78 if (FLAG_trace_runtime_calls) OS::Print("Runtime call: %s\n", ""#name); \
79 { \ 79 { \
80 Thread* thread = arguments.thread(); \ 80 Thread* thread = arguments.thread(); \
81 ASSERT(thread == Thread::Current()); \ 81 ASSERT(thread == Thread::Current()); \
82 Isolate* isolate = thread->isolate(); \ 82 Isolate* isolate = thread->isolate(); \
83 StackZone zone(isolate); \ 83 StackZone zone(thread); \
84 HANDLESCOPE(isolate); \ 84 HANDLESCOPE(isolate); \
85 DRT_Helper##name(isolate, thread, zone.GetZone(), arguments); \ 85 DRT_Helper##name(isolate, thread, zone.GetZone(), arguments); \
86 } \ 86 } \
87 VERIFY_ON_TRANSITION; \ 87 VERIFY_ON_TRANSITION; \
88 } \ 88 } \
89 static void DRT_Helper##name(Isolate* isolate, \ 89 static void DRT_Helper##name(Isolate* isolate, \
90 Thread* thread, \ 90 Thread* thread, \
91 Zone* zone, \ 91 Zone* zone, \
92 NativeArguments arguments) 92 NativeArguments arguments)
93 93
(...skipping 11 matching lines...) Expand all
105 105
106 #define END_LEAF_RUNTIME_ENTRY } 106 #define END_LEAF_RUNTIME_ENTRY }
107 107
108 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \ 108 #define DECLARE_LEAF_RUNTIME_ENTRY(type, name, ...) \
109 extern const RuntimeEntry k##name##RuntimeEntry; \ 109 extern const RuntimeEntry k##name##RuntimeEntry; \
110 extern "C" type DLRT_##name(__VA_ARGS__) 110 extern "C" type DLRT_##name(__VA_ARGS__)
111 111
112 } // namespace dart 112 } // namespace dart
113 113
114 #endif // VM_RUNTIME_ENTRY_H_ 114 #endif // VM_RUNTIME_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698