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

Unified Diff: runtime/vm/native_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_entry.h
diff --git a/runtime/vm/native_entry.h b/runtime/vm/native_entry.h
index 7e5559935e2ea98b104fab9050471babdad3cddf..f02727923d30f6e09c989b112fbaa468f406e424 100644
--- a/runtime/vm/native_entry.h
+++ b/runtime/vm/native_entry.h
@@ -32,14 +32,14 @@ typedef void (*NativeFunction)(NativeArguments* arguments);
#define DEFINE_NATIVE_ENTRY(name, argument_count) \
static RawObject* DN_Helper##name(Isolate* isolate, \
NativeArguments* arguments); \
- void NATIVE_ENTRY_FUNCTION(name)(Dart_NativeArguments args) { \
+ void NATIVE_ENTRY_FUNCTION(name)(Dart_NativeArguments args) { \
CHECK_STACK_ALIGNMENT; \
VERIFY_ON_TRANSITION; \
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); \
ASSERT(arguments->Count() == argument_count); \
if (FLAG_trace_natives) OS::Print("Calling native: %s\n", ""#name); \
{ \
- Zone zone(arguments->isolate()); \
+ StackZone zone(arguments->isolate()); \
HANDLESCOPE(arguments->isolate()); \
arguments->SetReturnUnsafe( \
DN_Helper##name(arguments->isolate(), arguments)); \
@@ -59,7 +59,7 @@ typedef void (*NativeFunction)(NativeArguments* arguments);
if (!__##name##_instance__.Is##type()) { \
GrowableArray<const Object*> __args__; \
__args__.Add(&__##name##_instance__); \
- Exceptions::ThrowByType(Exceptions::kArgument, __args__); \
+ Exceptions::ThrowByType(Exceptions::kArgument, __args__); \
} \
const type& name = type::Cast(__##name##_instance__);
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698