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

Unified Diff: src/bootstrapper.cc

Issue 1134333005: [strong] Object literals create strong objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/ast.h ('k') | src/contexts.h » ('j') | test/mjsunit/strong/literals.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index f2e51960fd962f849f114b31314e82d60873ceaf..6a6c870a908de341e394b263212ab1778484810d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1012,7 +1012,7 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object,
native_context()->set_array_function(*array_function);
// Cache the array maps, needed by ArrayConstructorStub
- CacheInitialJSArrayMaps(native_context(), initial_map);
+ CacheInitialJSArrayMaps(native_context(), initial_map, false);
Dmitry Lomov (no reviews) 2015/05/18 09:15:56 Where do you call this function with 'true'?
rossberg 2015/05/18 09:32:37 In JSFunction::SetInstancePrototype (objects.cc:10
Dmitry Lomov (no reviews) 2015/05/18 10:56:30 Sounds like a bug/oversight - ask Yang or Ulan?
rossberg 2015/05/18 12:01:25 Toon pointed out that the code here is to capture
ArrayConstructorStub array_constructor_stub(isolate);
Handle<Code> code = array_constructor_stub.GetCode();
array_function->shared()->set_construct_stub(*code);
« no previous file with comments | « src/ast.h ('k') | src/contexts.h » ('j') | test/mjsunit/strong/literals.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698