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

Unified Diff: runtime/lib/object.cc

Issue 1012333002: Keep zone cached in SnapshotReader to allow removing ZoneHandle(Isolate*) interface. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/function.cc ('k') | runtime/lib/string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object.cc
===================================================================
--- runtime/lib/object.cc (revision 44579)
+++ runtime/lib/object.cc (working copy)
@@ -158,15 +158,15 @@
DEFINE_NATIVE_ENTRY(Object_instanceOf, 5) {
const Instance& instance =
- Instance::CheckedHandle(isolate, arguments->NativeArgAt(0));
+ Instance::CheckedHandle(zone, arguments->NativeArgAt(0));
// Instantiator at position 1 is not used. It is passed along so that the call
// can be easily converted to an optimized implementation. Instantiator is
// used to populate the subtype cache.
const TypeArguments& instantiator_type_arguments =
- TypeArguments::CheckedHandle(isolate, arguments->NativeArgAt(2));
+ TypeArguments::CheckedHandle(zone, arguments->NativeArgAt(2));
const AbstractType& type =
- AbstractType::CheckedHandle(isolate, arguments->NativeArgAt(3));
- const Bool& negate = Bool::CheckedHandle(isolate, arguments->NativeArgAt(4));
+ AbstractType::CheckedHandle(zone, arguments->NativeArgAt(3));
+ const Bool& negate = Bool::CheckedHandle(zone, arguments->NativeArgAt(4));
ASSERT(type.IsFinalized());
ASSERT(!type.IsMalformed());
ASSERT(!type.IsMalbounded());
@@ -176,7 +176,7 @@
WarnOnJSIntegralNumTypeTest(instance, instantiator_type_arguments, type);
}
- Error& bound_error = Error::Handle(isolate, Error::null());
+ Error& bound_error = Error::Handle(zone, Error::null());
const bool is_instance_of = instance.IsInstanceOf(type,
instantiator_type_arguments,
&bound_error);
@@ -198,7 +198,7 @@
ASSERT(caller_frame != NULL);
const intptr_t location = caller_frame->GetTokenPos();
String& bound_error_message = String::Handle(
- isolate, String::New(bound_error.ToErrorCString()));
+ zone, String::New(bound_error.ToErrorCString()));
Exceptions::CreateAndThrowTypeError(
location, Symbols::Empty(), Symbols::Empty(),
Symbols::Empty(), bound_error_message);
« no previous file with comments | « runtime/lib/function.cc ('k') | runtime/lib/string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698