diff options
Diffstat (limited to 'deps/v8/src/builtins/builtins-constructor-gen.cc')
-rw-r--r-- | deps/v8/src/builtins/builtins-constructor-gen.cc | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/deps/v8/src/builtins/builtins-constructor-gen.cc b/deps/v8/src/builtins/builtins-constructor-gen.cc index 8e54c4c369..26c97ba681 100644 --- a/deps/v8/src/builtins/builtins-constructor-gen.cc +++ b/deps/v8/src/builtins/builtins-constructor-gen.cc @@ -19,17 +19,26 @@ namespace v8 { namespace internal { void Builtins::Generate_ConstructVarargs(MacroAssembler* masm) { +#ifdef V8_TARGET_ARCH_IA32 + Assembler::SupportsRootRegisterScope supports_root_register(masm); +#endif Generate_CallOrConstructVarargs(masm, BUILTIN_CODE(masm->isolate(), Construct)); } void Builtins::Generate_ConstructForwardVarargs(MacroAssembler* masm) { +#ifdef V8_TARGET_ARCH_IA32 + Assembler::SupportsRootRegisterScope supports_root_register(masm); +#endif Generate_CallOrConstructForwardVarargs( masm, CallOrConstructMode::kConstruct, BUILTIN_CODE(masm->isolate(), Construct)); } void Builtins::Generate_ConstructFunctionForwardVarargs(MacroAssembler* masm) { +#ifdef V8_TARGET_ARCH_IA32 + Assembler::SupportsRootRegisterScope supports_root_register(masm); +#endif Generate_CallOrConstructForwardVarargs( masm, CallOrConstructMode::kConstruct, BUILTIN_CODE(masm->isolate(), ConstructFunction)); @@ -77,11 +86,11 @@ TF_BUILTIN(FastNewClosure, ConstructorBuiltinsAssembler) { Goto(&cell_done); BIND(&no_closures); - StoreMapNoWriteBarrier(feedback_cell, Heap::kOneClosureCellMapRootIndex); + StoreMapNoWriteBarrier(feedback_cell, RootIndex::kOneClosureCellMap); Goto(&cell_done); BIND(&one_closure); - StoreMapNoWriteBarrier(feedback_cell, Heap::kManyClosuresCellMapRootIndex); + StoreMapNoWriteBarrier(feedback_cell, RootIndex::kManyClosuresCellMap); Goto(&cell_done); BIND(&cell_done); @@ -116,9 +125,9 @@ TF_BUILTIN(FastNewClosure, ConstructorBuiltinsAssembler) { // Initialize the rest of the function. StoreObjectFieldRoot(result, JSObject::kPropertiesOrHashOffset, - Heap::kEmptyFixedArrayRootIndex); + RootIndex::kEmptyFixedArray); StoreObjectFieldRoot(result, JSObject::kElementsOffset, - Heap::kEmptyFixedArrayRootIndex); + RootIndex::kEmptyFixedArray); { // Set function prototype if necessary. Label done(this), init_prototype(this); @@ -127,7 +136,7 @@ TF_BUILTIN(FastNewClosure, ConstructorBuiltinsAssembler) { BIND(&init_prototype); StoreObjectFieldRoot(result, JSFunction::kPrototypeOrInitialMapOffset, - Heap::kTheHoleValueRootIndex); + RootIndex::kTheHoleValue); Goto(&done); BIND(&done); } @@ -236,13 +245,13 @@ Node* ConstructorBuiltinsAssembler::EmitFastNewFunctionContext( TNode<Context> function_context = UncheckedCast<Context>(AllocateInNewSpace(size)); - Heap::RootListIndex context_type; + RootIndex context_type; switch (scope_type) { case EVAL_SCOPE: - context_type = Heap::kEvalContextMapRootIndex; + context_type = RootIndex::kEvalContextMap; break; case FUNCTION_SCOPE: - context_type = Heap::kFunctionContextMapRootIndex; + context_type = RootIndex::kFunctionContextMap; break; default: UNREACHABLE(); |