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

Unified Diff: src/code-stubs-hydrogen.cc

Issue 88043002: Out-of-line constant pool on Arm: Stage 3 - Set Constant Pool Pointer on Function Entry (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Clean up EnterArgumentsAdaptorFrame Created 7 years, 1 month 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
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index 894c3d3b22df7f8e40ccf968d580091accc4a540..9700f1987c05082f30b89d85623fbc5436295470 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -1261,6 +1261,8 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() {
Factory* factory = isolate()->factory();
HInstruction* empty_fixed_array =
Add<HConstant>(factory->empty_fixed_array());
+ HInstruction* empty_constant_pool_array =
+ Add<HConstant>(factory->empty_constant_pool_array());
HValue* shared_info = GetParameter(0);
AddIncrementCounter(counters->fast_new_closure_total());
@@ -1294,6 +1296,9 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() {
shared_info);
Add<HStoreNamedField>(js_function, HObjectAccess::ForFunctionContextPointer(),
context());
+ Add<HStoreNamedField>(js_function,
+ HObjectAccess::ForFunctionConstantPoolPointer(),
+ empty_constant_pool_array);
// Initialize the code pointer in the function to be the one
// found in the shared function info object.

Powered by Google App Engine
This is Rietveld 408576698