| Index: src/arm/code-stubs-arm.cc
|
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
|
| index d1587c8886e838a5935ccbdd7def4df8b7ac3a58..80378bbbeaf418bc12f61be89fa96e91e0241556 100644
|
| --- a/src/arm/code-stubs-arm.cc
|
| +++ b/src/arm/code-stubs-arm.cc
|
| @@ -39,7 +39,6 @@ namespace internal {
|
|
|
|
|
| void FastNewClosureStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r2 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -50,7 +49,6 @@ void FastNewClosureStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void FastNewContextStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -60,7 +58,6 @@ void FastNewContextStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void ToNumberStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -70,7 +67,6 @@ void ToNumberStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void NumberToStringStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -81,7 +77,6 @@ void NumberToStringStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r3, r2, r1 };
|
| descriptor->register_param_count_ = 3;
|
| @@ -93,7 +88,6 @@ void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void FastCloneShallowObjectStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r3, r2, r1, r0 };
|
| descriptor->register_param_count_ = 4;
|
| @@ -104,7 +98,6 @@ void FastCloneShallowObjectStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void CreateAllocationSiteStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r2, r3 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -114,7 +107,6 @@ void CreateAllocationSiteStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1, r0 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -125,7 +117,6 @@ void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1, r0 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -136,7 +127,6 @@ void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void RegExpConstructResultStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r2, r1, r0 };
|
| descriptor->register_param_count_ = 3;
|
| @@ -147,7 +137,6 @@ void RegExpConstructResultStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void LoadFieldStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -157,7 +146,6 @@ void LoadFieldStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -167,7 +155,6 @@ void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void StringLengthStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0, r2 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -177,7 +164,6 @@ void StringLengthStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void KeyedStringLengthStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1, r0 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -187,7 +173,6 @@ void KeyedStringLengthStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r2, r1, r0 };
|
| descriptor->register_param_count_ = 3;
|
| @@ -198,7 +183,6 @@ void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void TransitionElementsKindStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0, r1 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -210,7 +194,6 @@ void TransitionElementsKindStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void CompareNilICStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -218,12 +201,11 @@ void CompareNilICStub::InitializeInterfaceDescriptor(
|
| descriptor->deoptimization_handler_ =
|
| FUNCTION_ADDR(CompareNilIC_Miss);
|
| descriptor->SetMissHandler(
|
| - ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate));
|
| + ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate()));
|
| }
|
|
|
|
|
| static void InitializeArrayConstructorDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor,
|
| int constant_stack_parameter_count) {
|
| // register state
|
| @@ -252,7 +234,6 @@ static void InitializeArrayConstructorDescriptor(
|
|
|
|
|
| static void InitializeInternalArrayConstructorDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor,
|
| int constant_stack_parameter_count) {
|
| // register state
|
| @@ -280,28 +261,24 @@ static void InitializeInternalArrayConstructorDescriptor(
|
|
|
|
|
| void ArrayNoArgumentConstructorStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| - InitializeArrayConstructorDescriptor(isolate, descriptor, 0);
|
| + InitializeArrayConstructorDescriptor(descriptor, 0);
|
| }
|
|
|
|
|
| void ArraySingleArgumentConstructorStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| - InitializeArrayConstructorDescriptor(isolate, descriptor, 1);
|
| + InitializeArrayConstructorDescriptor(descriptor, 1);
|
| }
|
|
|
|
|
| void ArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| - InitializeArrayConstructorDescriptor(isolate, descriptor, -1);
|
| + InitializeArrayConstructorDescriptor(descriptor, -1);
|
| }
|
|
|
|
|
| void ToBooleanStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0 };
|
| descriptor->register_param_count_ = 1;
|
| @@ -309,33 +286,29 @@ void ToBooleanStub::InitializeInterfaceDescriptor(
|
| descriptor->deoptimization_handler_ =
|
| FUNCTION_ADDR(ToBooleanIC_Miss);
|
| descriptor->SetMissHandler(
|
| - ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate));
|
| + ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate()));
|
| }
|
|
|
|
|
| void InternalArrayNoArgumentConstructorStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| - InitializeInternalArrayConstructorDescriptor(isolate, descriptor, 0);
|
| + InitializeInternalArrayConstructorDescriptor(descriptor, 0);
|
| }
|
|
|
|
|
| void InternalArraySingleArgumentConstructorStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| - InitializeInternalArrayConstructorDescriptor(isolate, descriptor, 1);
|
| + InitializeInternalArrayConstructorDescriptor(descriptor, 1);
|
| }
|
|
|
|
|
| void InternalArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| - InitializeInternalArrayConstructorDescriptor(isolate, descriptor, -1);
|
| + InitializeInternalArrayConstructorDescriptor(descriptor, -1);
|
| }
|
|
|
|
|
| void StoreGlobalStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1, r2, r0 };
|
| descriptor->register_param_count_ = 3;
|
| @@ -346,7 +319,6 @@ void StoreGlobalStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r0, r3, r1, r2 };
|
| descriptor->register_param_count_ = 4;
|
| @@ -357,19 +329,17 @@ void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void BinaryOpICStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1, r0 };
|
| descriptor->register_param_count_ = 2;
|
| descriptor->register_params_ = registers;
|
| descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss);
|
| descriptor->SetMissHandler(
|
| - ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate));
|
| + ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
|
| }
|
|
|
|
|
| void BinaryOpWithAllocationSiteStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r2, r1, r0 };
|
| descriptor->register_param_count_ = 3;
|
| @@ -380,7 +350,6 @@ void BinaryOpWithAllocationSiteStub::InitializeInterfaceDescriptor(
|
|
|
|
|
| void StringAddStub::InitializeInterfaceDescriptor(
|
| - Isolate* isolate,
|
| CodeStubInterfaceDescriptor* descriptor) {
|
| static Register registers[] = { r1, r0 };
|
| descriptor->register_param_count_ = 2;
|
| @@ -506,7 +475,7 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) {
|
| // Update the static counter each time a new code stub is generated.
|
| isolate()->counters()->code_stubs()->Increment();
|
|
|
| - CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate());
|
| + CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor();
|
| int param_count = descriptor->register_param_count_;
|
| {
|
| // Call the runtime system in a fresh internal frame.
|
| @@ -729,8 +698,8 @@ void WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(
|
| Isolate* isolate) {
|
| WriteInt32ToHeapNumberStub stub1(isolate, r1, r0, r2);
|
| WriteInt32ToHeapNumberStub stub2(isolate, r2, r0, r3);
|
| - stub1.GetCode(isolate);
|
| - stub2.GetCode(isolate);
|
| + stub1.GetCode();
|
| + stub2.GetCode();
|
| }
|
|
|
|
|
| @@ -1486,12 +1455,12 @@ void CodeStub::GenerateFPStubs(Isolate* isolate) {
|
| // regenerate, which would lead to code stub initialization state being messed
|
| // up.
|
| Code* save_doubles_code;
|
| - if (!save_doubles.FindCodeInCache(&save_doubles_code, isolate)) {
|
| - save_doubles_code = *save_doubles.GetCode(isolate);
|
| + if (!save_doubles.FindCodeInCache(&save_doubles_code)) {
|
| + save_doubles_code = *save_doubles.GetCode();
|
| }
|
| Code* store_buffer_overflow_code;
|
| - if (!stub.FindCodeInCache(&store_buffer_overflow_code, isolate)) {
|
| - store_buffer_overflow_code = *stub.GetCode(isolate);
|
| + if (!stub.FindCodeInCache(&store_buffer_overflow_code)) {
|
| + store_buffer_overflow_code = *stub.GetCode();
|
| }
|
| isolate->set_fp_stubs_generated(true);
|
| }
|
| @@ -1499,7 +1468,7 @@ void CodeStub::GenerateFPStubs(Isolate* isolate) {
|
|
|
| void CEntryStub::GenerateAheadOfTime(Isolate* isolate) {
|
| CEntryStub stub(isolate, 1, kDontSaveFPRegs);
|
| - stub.GetCode(isolate);
|
| + stub.GetCode();
|
| }
|
|
|
|
|
| @@ -3881,7 +3850,7 @@ void ICCompareStub::GenerateNumbers(MacroAssembler* masm) {
|
| __ bind(&generic_stub);
|
| ICCompareStub stub(isolate(), op_, CompareIC::GENERIC, CompareIC::GENERIC,
|
| CompareIC::GENERIC);
|
| - __ Jump(stub.GetCode(isolate()), RelocInfo::CODE_TARGET);
|
| + __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
|
|
|
| __ bind(&maybe_undefined1);
|
| if (Token::IsOrderedRelationalCompareOp(op_)) {
|
| @@ -4136,7 +4105,7 @@ void DirectCEntryStub::Generate(MacroAssembler* masm) {
|
| void DirectCEntryStub::GenerateCall(MacroAssembler* masm,
|
| Register target) {
|
| intptr_t code =
|
| - reinterpret_cast<intptr_t>(GetCode(isolate()).location());
|
| + reinterpret_cast<intptr_t>(GetCode().location());
|
| __ Move(ip, target);
|
| __ mov(lr, Operand(code, RelocInfo::CODE_TARGET));
|
| __ blx(lr); // Call the stub.
|
| @@ -4393,10 +4362,10 @@ void NameDictionaryLookupStub::Generate(MacroAssembler* masm) {
|
| void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(
|
| Isolate* isolate) {
|
| StoreBufferOverflowStub stub1(isolate, kDontSaveFPRegs);
|
| - stub1.GetCode(isolate);
|
| + stub1.GetCode();
|
| // Hydrogen code stubs need stub2 at snapshot time.
|
| StoreBufferOverflowStub stub2(isolate, kSaveFPRegs);
|
| - stub2.GetCode(isolate);
|
| + stub2.GetCode();
|
| }
|
|
|
|
|
| @@ -4661,7 +4630,7 @@ void StoreArrayLiteralElementStub::Generate(MacroAssembler* masm) {
|
|
|
| void StubFailureTrampolineStub::Generate(MacroAssembler* masm) {
|
| CEntryStub ces(isolate(), 1, fp_registers_ ? kSaveFPRegs : kDontSaveFPRegs);
|
| - __ Call(ces.GetCode(isolate()), RelocInfo::CODE_TARGET);
|
| + __ Call(ces.GetCode(), RelocInfo::CODE_TARGET);
|
| int parameter_count_offset =
|
| StubFailureTrampolineFrame::kCallerStackParameterCountFrameOffset;
|
| __ ldr(r1, MemOperand(fp, parameter_count_offset));
|
| @@ -4858,10 +4827,10 @@ static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) {
|
| for (int i = 0; i <= to_index; ++i) {
|
| ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
|
| T stub(isolate, kind);
|
| - stub.GetCode(isolate);
|
| + stub.GetCode();
|
| if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) {
|
| T stub1(isolate, kind, DISABLE_ALLOCATION_SITES);
|
| - stub1.GetCode(isolate);
|
| + stub1.GetCode();
|
| }
|
| }
|
| }
|
| @@ -4883,11 +4852,11 @@ void InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(
|
| for (int i = 0; i < 2; i++) {
|
| // For internal arrays we only need a few things
|
| InternalArrayNoArgumentConstructorStub stubh1(isolate, kinds[i]);
|
| - stubh1.GetCode(isolate);
|
| + stubh1.GetCode();
|
| InternalArraySingleArgumentConstructorStub stubh2(isolate, kinds[i]);
|
| - stubh2.GetCode(isolate);
|
| + stubh2.GetCode();
|
| InternalArrayNArgumentsConstructorStub stubh3(isolate, kinds[i]);
|
| - stubh3.GetCode(isolate);
|
| + stubh3.GetCode();
|
| }
|
| }
|
|
|
|
|