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

Unified Diff: src/builtins.cc

Issue 3043060: [Isolates] Replace ISOLATE_FROM_HEAP with Heap::isolate() (Closed)
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index 1350d03002af16a93d957384ddb05fbcae77891b..bcb6d11392a58654794505779ff4a2f056352274 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -245,7 +245,7 @@ BUILTIN(ArrayCodeGeneric) {
static Object* AllocateJSArray(Heap* heap) {
JSFunction* array_function =
- ISOLATE_FROM_HEAP(heap)->context()->global_context()->array_function();
+ heap->isolate()->context()->global_context()->array_function();
Object* result = heap->AllocateJSObject(array_function);
if (result->IsFailure()) return result;
return result;
@@ -378,7 +378,7 @@ static bool IsFastElementMovingAllowed(Heap* heap,
if (!IsJSArrayWithFastElements(heap, receiver, elements)) return false;
Context* global_context =
- ISOLATE_FROM_HEAP(heap)->context()->global_context();
+ heap->isolate()->context()->global_context();
JSObject* array_proto =
JSObject::cast(global_context->array_function()->prototype());
if (JSArray::cast(receiver)->GetPrototype() != array_proto) return false;
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698