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

Unified Diff: src/ic.cc

Issue 3473024: [Isolates] More handle improvements: (Closed)
Patch Set: Created 10 years, 3 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 | « src/handles-inl.h ('k') | src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index a87344aaa13124880177522bdcce3b03d34e2f83..4fbda31fc4cdc880902c961700a9ea5606b7ed7b 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -736,8 +736,7 @@ Object* KeyedCallIC::LoadFunction(State state,
#endif
}
}
- Heap* heap = HEAP;
- Object* result = Runtime::GetObjectProperty(heap, object, key);
+ Object* result = Runtime::GetObjectProperty(isolate(), object, key);
if (result->IsJSFunction()) return result;
result = TryCallAsFunction(result);
return result->IsJSFunction() ?
@@ -1093,7 +1092,7 @@ Object* KeyedLoadIC::Load(State state,
HandleScope scope;
// Rewrite to the generic keyed load stub.
if (FLAG_use_ic) set_target(generic_stub());
- return Runtime::GetElementOrCharAt(HEAP, object, index);
+ return Runtime::GetElementOrCharAt(isolate(), object, index);
}
// Named lookup.
@@ -1158,7 +1157,7 @@ Object* KeyedLoadIC::Load(State state,
}
// Get the property.
- return Runtime::GetObjectProperty(HEAP, object, key);
+ return Runtime::GetObjectProperty(isolate(), object, key);
}
@@ -1533,7 +1532,7 @@ Object* KeyedStoreIC::Store(State state,
}
// Set the property.
- return Runtime::SetObjectProperty(HEAP, object, key, value, NONE);
+ return Runtime::SetObjectProperty(isolate(), object, key, value, NONE);
}
« no previous file with comments | « src/handles-inl.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698