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

Unified Diff: runtime/lib/function.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/class_id.cc ('k') | runtime/lib/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/function.cc
===================================================================
--- runtime/lib/function.cc (revision 44579)
+++ runtime/lib/function.cc (working copy)
@@ -30,7 +30,7 @@
DEFINE_NATIVE_ENTRY(FunctionImpl_equals, 2) {
const Instance& receiver = Instance::CheckedHandle(
- isolate, arguments->NativeArgAt(0));
+ zone, arguments->NativeArgAt(0));
ASSERT(receiver.IsClosure());
GET_NATIVE_ARGUMENT(Instance, other, arguments->NativeArgAt(1));
ASSERT(!other.IsNull());
@@ -55,7 +55,7 @@
DEFINE_NATIVE_ENTRY(FunctionImpl_hashCode, 1) {
const Instance& receiver = Instance::CheckedHandle(
- isolate, arguments->NativeArgAt(0));
+ zone, arguments->NativeArgAt(0));
if (receiver.IsClosure()) {
const Function& func = Function::Handle(Closure::function(receiver));
// Hash together name, class name and signature.
@@ -77,17 +77,17 @@
DEFINE_NATIVE_ENTRY(FunctionImpl_clone, 1) {
const Instance& receiver = Instance::CheckedHandle(
- isolate, arguments->NativeArgAt(0));
+ zone, arguments->NativeArgAt(0));
ASSERT(receiver.IsClosure());
if (receiver.IsClosure()) {
const Function& func =
- Function::Handle(isolate, Closure::function(receiver));
+ Function::Handle(zone, Closure::function(receiver));
const Context& ctx =
- Context::Handle(isolate, Closure::context(receiver));
+ Context::Handle(zone, Closure::context(receiver));
Context& cloned_ctx =
- Context::Handle(isolate, Context::New(ctx.num_variables()));
- cloned_ctx.set_parent(Context::Handle(isolate, ctx.parent()));
- Object& inst = Object::Handle(isolate);
+ Context::Handle(zone, Context::New(ctx.num_variables()));
+ cloned_ctx.set_parent(Context::Handle(zone, ctx.parent()));
+ Object& inst = Object::Handle(zone);
for (int i = 0; i < ctx.num_variables(); i++) {
inst = ctx.At(i);
cloned_ctx.SetAt(i, inst);
« no previous file with comments | « runtime/lib/class_id.cc ('k') | runtime/lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698