OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } else if (FLAG_debug_code) { | 235 } else if (FLAG_debug_code) { |
236 Label done; | 236 Label done; |
237 __ JumpIfInNewSpace(cp, r0, &done); | 237 __ JumpIfInNewSpace(cp, r0, &done); |
238 __ Abort(kExpectedNewSpaceObject); | 238 __ Abort(kExpectedNewSpaceObject); |
239 __ bind(&done); | 239 __ bind(&done); |
240 } | 240 } |
241 } | 241 } |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
| 245 Variable* home_object_var = scope()->home_object_var(); |
| 246 if (home_object_var != nullptr) { |
| 247 __ Push(r1); |
| 248 } |
| 249 |
245 ArgumentsAccessStub::HasNewTarget has_new_target = | 250 ArgumentsAccessStub::HasNewTarget has_new_target = |
246 IsSubclassConstructor(info->function()->kind()) | 251 IsSubclassConstructor(info->function()->kind()) |
247 ? ArgumentsAccessStub::HAS_NEW_TARGET | 252 ? ArgumentsAccessStub::HAS_NEW_TARGET |
248 : ArgumentsAccessStub::NO_NEW_TARGET; | 253 : ArgumentsAccessStub::NO_NEW_TARGET; |
249 | 254 |
250 // Possibly allocate RestParameters | 255 // Possibly allocate RestParameters |
251 int rest_index; | 256 int rest_index; |
252 Variable* rest_param = scope()->rest_parameter(&rest_index); | 257 Variable* rest_param = scope()->rest_parameter(&rest_index); |
253 if (rest_param) { | 258 if (rest_param) { |
254 Comment cmnt(masm_, "[ Allocate rest parameter array"); | 259 Comment cmnt(masm_, "[ Allocate rest parameter array"); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 305 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
301 } else { | 306 } else { |
302 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 307 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
303 } | 308 } |
304 ArgumentsAccessStub stub(isolate(), type, has_new_target); | 309 ArgumentsAccessStub stub(isolate(), type, has_new_target); |
305 __ CallStub(&stub); | 310 __ CallStub(&stub); |
306 | 311 |
307 SetVar(arguments, r0, r1, r2); | 312 SetVar(arguments, r0, r1, r2); |
308 } | 313 } |
309 | 314 |
| 315 // Possibly set up a local binding to the [[HomeObject]]. |
| 316 if (home_object_var != nullptr) { |
| 317 Comment cmnt(masm_, "[ Home object"); |
| 318 __ Pop(LoadDescriptor::ReceiverRegister()); |
| 319 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); |
| 320 __ Move(LoadDescriptor::NameRegister(), home_object_symbol); |
| 321 __ Move(LoadDescriptor::SlotRegister(), |
| 322 Operand(SmiFromSlot(function()->HomeObjectFeedbackSlot()))); |
| 323 CallLoadIC(NOT_CONTEXTUAL); |
| 324 |
| 325 SetVar(home_object_var, r0, r1, r2); |
| 326 } |
| 327 |
310 if (FLAG_trace) { | 328 if (FLAG_trace) { |
311 __ CallRuntime(Runtime::kTraceEnter, 0); | 329 __ CallRuntime(Runtime::kTraceEnter, 0); |
312 } | 330 } |
313 | 331 |
314 // Visit the declarations and body unless there is an illegal | 332 // Visit the declarations and body unless there is an illegal |
315 // redeclaration. | 333 // redeclaration. |
316 if (scope()->HasIllegalRedeclaration()) { | 334 if (scope()->HasIllegalRedeclaration()) { |
317 Comment cmnt(masm_, "[ Declarations"); | 335 Comment cmnt(masm_, "[ Declarations"); |
318 scope()->VisitIllegalRedeclaration(this); | 336 scope()->VisitIllegalRedeclaration(this); |
319 | 337 |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 context()->Plug(r0); | 1336 context()->Plug(r0); |
1319 } | 1337 } |
1320 | 1338 |
1321 | 1339 |
1322 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { | 1340 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
1323 Comment cmnt(masm_, "[ VariableProxy"); | 1341 Comment cmnt(masm_, "[ VariableProxy"); |
1324 EmitVariableLoad(expr); | 1342 EmitVariableLoad(expr); |
1325 } | 1343 } |
1326 | 1344 |
1327 | 1345 |
1328 void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) { | |
1329 Comment cnmt(masm_, "[ SuperReference "); | |
1330 | |
1331 __ ldr(LoadDescriptor::ReceiverRegister(), | |
1332 MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
1333 | |
1334 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); | |
1335 __ Move(LoadDescriptor::NameRegister(), home_object_symbol); | |
1336 | |
1337 __ mov(LoadDescriptor::SlotRegister(), | |
1338 Operand(SmiFromSlot(expr->HomeObjectFeedbackSlot()))); | |
1339 CallLoadIC(NOT_CONTEXTUAL); | |
1340 | |
1341 __ cmp(r0, Operand(isolate()->factory()->undefined_value())); | |
1342 Label done; | |
1343 __ b(ne, &done); | |
1344 __ CallRuntime(Runtime::kThrowNonMethodError, 0); | |
1345 __ bind(&done); | |
1346 } | |
1347 | |
1348 | |
1349 void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer, | 1346 void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer, |
1350 int offset) { | 1347 int offset) { |
1351 if (NeedsHomeObject(initializer)) { | 1348 if (NeedsHomeObject(initializer)) { |
1352 __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); | 1349 __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
1353 __ mov(StoreDescriptor::NameRegister(), | 1350 __ mov(StoreDescriptor::NameRegister(), |
1354 Operand(isolate()->factory()->home_object_symbol())); | 1351 Operand(isolate()->factory()->home_object_symbol())); |
1355 __ ldr(StoreDescriptor::ValueRegister(), | 1352 __ ldr(StoreDescriptor::ValueRegister(), |
1356 MemOperand(sp, offset * kPointerSize)); | 1353 MemOperand(sp, offset * kPointerSize)); |
1357 CallStoreIC(); | 1354 CallStoreIC(); |
1358 } | 1355 } |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1950 if (expr->is_compound()) { | 1947 if (expr->is_compound()) { |
1951 // We need the receiver both on the stack and in the register. | 1948 // We need the receiver both on the stack and in the register. |
1952 VisitForStackValue(property->obj()); | 1949 VisitForStackValue(property->obj()); |
1953 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); | 1950 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
1954 } else { | 1951 } else { |
1955 VisitForStackValue(property->obj()); | 1952 VisitForStackValue(property->obj()); |
1956 } | 1953 } |
1957 break; | 1954 break; |
1958 case NAMED_SUPER_PROPERTY: | 1955 case NAMED_SUPER_PROPERTY: |
1959 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); | 1956 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); |
1960 EmitLoadHomeObject(property->obj()->AsSuperReference()); | 1957 VisitForAccumulatorValue( |
| 1958 property->obj()->AsSuperReference()->home_object_var()); |
1961 __ Push(result_register()); | 1959 __ Push(result_register()); |
1962 if (expr->is_compound()) { | 1960 if (expr->is_compound()) { |
1963 const Register scratch = r1; | 1961 const Register scratch = r1; |
1964 __ ldr(scratch, MemOperand(sp, kPointerSize)); | 1962 __ ldr(scratch, MemOperand(sp, kPointerSize)); |
1965 __ Push(scratch); | 1963 __ Push(scratch); |
1966 __ Push(result_register()); | 1964 __ Push(result_register()); |
1967 } | 1965 } |
1968 break; | 1966 break; |
1969 case KEYED_SUPER_PROPERTY: | 1967 case KEYED_SUPER_PROPERTY: |
1970 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); | 1968 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); |
1971 EmitLoadHomeObject(property->obj()->AsSuperReference()); | 1969 VisitForStackValue( |
1972 __ Push(result_register()); | 1970 property->obj()->AsSuperReference()->home_object_var()); |
1973 VisitForAccumulatorValue(property->key()); | 1971 VisitForAccumulatorValue(property->key()); |
1974 __ Push(result_register()); | 1972 __ Push(result_register()); |
1975 if (expr->is_compound()) { | 1973 if (expr->is_compound()) { |
1976 const Register scratch = r1; | 1974 const Register scratch = r1; |
1977 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); | 1975 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); |
1978 __ Push(scratch); | 1976 __ Push(scratch); |
1979 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); | 1977 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); |
1980 __ Push(scratch); | 1978 __ Push(scratch); |
1981 __ Push(result_register()); | 1979 __ Push(result_register()); |
1982 } | 1980 } |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2604 __ Move(StoreDescriptor::ReceiverRegister(), r0); | 2602 __ Move(StoreDescriptor::ReceiverRegister(), r0); |
2605 __ pop(StoreDescriptor::ValueRegister()); // Restore value. | 2603 __ pop(StoreDescriptor::ValueRegister()); // Restore value. |
2606 __ mov(StoreDescriptor::NameRegister(), | 2604 __ mov(StoreDescriptor::NameRegister(), |
2607 Operand(prop->key()->AsLiteral()->value())); | 2605 Operand(prop->key()->AsLiteral()->value())); |
2608 CallStoreIC(); | 2606 CallStoreIC(); |
2609 break; | 2607 break; |
2610 } | 2608 } |
2611 case NAMED_SUPER_PROPERTY: { | 2609 case NAMED_SUPER_PROPERTY: { |
2612 __ Push(r0); | 2610 __ Push(r0); |
2613 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 2611 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
2614 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 2612 VisitForAccumulatorValue( |
| 2613 prop->obj()->AsSuperReference()->home_object_var()); |
2615 // stack: value, this; r0: home_object | 2614 // stack: value, this; r0: home_object |
2616 Register scratch = r2; | 2615 Register scratch = r2; |
2617 Register scratch2 = r3; | 2616 Register scratch2 = r3; |
2618 __ mov(scratch, result_register()); // home_object | 2617 __ mov(scratch, result_register()); // home_object |
2619 __ ldr(r0, MemOperand(sp, kPointerSize)); // value | 2618 __ ldr(r0, MemOperand(sp, kPointerSize)); // value |
2620 __ ldr(scratch2, MemOperand(sp, 0)); // this | 2619 __ ldr(scratch2, MemOperand(sp, 0)); // this |
2621 __ str(scratch2, MemOperand(sp, kPointerSize)); // this | 2620 __ str(scratch2, MemOperand(sp, kPointerSize)); // this |
2622 __ str(scratch, MemOperand(sp, 0)); // home_object | 2621 __ str(scratch, MemOperand(sp, 0)); // home_object |
2623 // stack: this, home_object; r0: value | 2622 // stack: this, home_object; r0: value |
2624 EmitNamedSuperPropertyStore(prop); | 2623 EmitNamedSuperPropertyStore(prop); |
2625 break; | 2624 break; |
2626 } | 2625 } |
2627 case KEYED_SUPER_PROPERTY: { | 2626 case KEYED_SUPER_PROPERTY: { |
2628 __ Push(r0); | 2627 __ Push(r0); |
2629 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 2628 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
2630 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 2629 VisitForStackValue(prop->obj()->AsSuperReference()->home_object_var()); |
2631 __ Push(result_register()); | |
2632 VisitForAccumulatorValue(prop->key()); | 2630 VisitForAccumulatorValue(prop->key()); |
2633 Register scratch = r2; | 2631 Register scratch = r2; |
2634 Register scratch2 = r3; | 2632 Register scratch2 = r3; |
2635 __ ldr(scratch2, MemOperand(sp, 2 * kPointerSize)); // value | 2633 __ ldr(scratch2, MemOperand(sp, 2 * kPointerSize)); // value |
2636 // stack: value, this, home_object; r0: key, r3: value | 2634 // stack: value, this, home_object; r0: key, r3: value |
2637 __ ldr(scratch, MemOperand(sp, kPointerSize)); // this | 2635 __ ldr(scratch, MemOperand(sp, kPointerSize)); // this |
2638 __ str(scratch, MemOperand(sp, 2 * kPointerSize)); | 2636 __ str(scratch, MemOperand(sp, 2 * kPointerSize)); |
2639 __ ldr(scratch, MemOperand(sp, 0)); // home_object | 2637 __ ldr(scratch, MemOperand(sp, 0)); // home_object |
2640 __ str(scratch, MemOperand(sp, kPointerSize)); | 2638 __ str(scratch, MemOperand(sp, kPointerSize)); |
2641 __ str(r0, MemOperand(sp, 0)); | 2639 __ str(r0, MemOperand(sp, 0)); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2833 Comment cmnt(masm_, "[ Property"); | 2831 Comment cmnt(masm_, "[ Property"); |
2834 Expression* key = expr->key(); | 2832 Expression* key = expr->key(); |
2835 | 2833 |
2836 if (key->IsPropertyName()) { | 2834 if (key->IsPropertyName()) { |
2837 if (!expr->IsSuperAccess()) { | 2835 if (!expr->IsSuperAccess()) { |
2838 VisitForAccumulatorValue(expr->obj()); | 2836 VisitForAccumulatorValue(expr->obj()); |
2839 __ Move(LoadDescriptor::ReceiverRegister(), r0); | 2837 __ Move(LoadDescriptor::ReceiverRegister(), r0); |
2840 EmitNamedPropertyLoad(expr); | 2838 EmitNamedPropertyLoad(expr); |
2841 } else { | 2839 } else { |
2842 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2840 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
2843 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2841 VisitForStackValue(expr->obj()->AsSuperReference()->home_object_var()); |
2844 __ Push(result_register()); | |
2845 EmitNamedSuperPropertyLoad(expr); | 2842 EmitNamedSuperPropertyLoad(expr); |
2846 } | 2843 } |
2847 } else { | 2844 } else { |
2848 if (!expr->IsSuperAccess()) { | 2845 if (!expr->IsSuperAccess()) { |
2849 VisitForStackValue(expr->obj()); | 2846 VisitForStackValue(expr->obj()); |
2850 VisitForAccumulatorValue(expr->key()); | 2847 VisitForAccumulatorValue(expr->key()); |
2851 __ Move(LoadDescriptor::NameRegister(), r0); | 2848 __ Move(LoadDescriptor::NameRegister(), r0); |
2852 __ pop(LoadDescriptor::ReceiverRegister()); | 2849 __ pop(LoadDescriptor::ReceiverRegister()); |
2853 EmitKeyedPropertyLoad(expr); | 2850 EmitKeyedPropertyLoad(expr); |
2854 } else { | 2851 } else { |
2855 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2852 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
2856 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2853 VisitForStackValue(expr->obj()->AsSuperReference()->home_object_var()); |
2857 __ Push(result_register()); | |
2858 VisitForStackValue(expr->key()); | 2854 VisitForStackValue(expr->key()); |
2859 EmitKeyedSuperPropertyLoad(expr); | 2855 EmitKeyedSuperPropertyLoad(expr); |
2860 } | 2856 } |
2861 } | 2857 } |
2862 PrepareForBailoutForId(expr->LoadId(), TOS_REG); | 2858 PrepareForBailoutForId(expr->LoadId(), TOS_REG); |
2863 context()->Plug(r0); | 2859 context()->Plug(r0); |
2864 } | 2860 } |
2865 | 2861 |
2866 | 2862 |
2867 void FullCodeGenerator::CallIC(Handle<Code> code, | 2863 void FullCodeGenerator::CallIC(Handle<Code> code, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2913 DCHECK(callee->IsProperty()); | 2909 DCHECK(callee->IsProperty()); |
2914 Property* prop = callee->AsProperty(); | 2910 Property* prop = callee->AsProperty(); |
2915 DCHECK(prop->IsSuperAccess()); | 2911 DCHECK(prop->IsSuperAccess()); |
2916 | 2912 |
2917 SetSourcePosition(prop->position()); | 2913 SetSourcePosition(prop->position()); |
2918 Literal* key = prop->key()->AsLiteral(); | 2914 Literal* key = prop->key()->AsLiteral(); |
2919 DCHECK(!key->value()->IsSmi()); | 2915 DCHECK(!key->value()->IsSmi()); |
2920 // Load the function from the receiver. | 2916 // Load the function from the receiver. |
2921 const Register scratch = r1; | 2917 const Register scratch = r1; |
2922 SuperReference* super_ref = prop->obj()->AsSuperReference(); | 2918 SuperReference* super_ref = prop->obj()->AsSuperReference(); |
2923 EmitLoadHomeObject(super_ref); | 2919 VisitForStackValue(super_ref->home_object_var()); |
2924 __ Push(r0); | |
2925 VisitForAccumulatorValue(super_ref->this_var()); | 2920 VisitForAccumulatorValue(super_ref->this_var()); |
2926 __ Push(r0); | 2921 __ Push(r0); |
2927 __ Push(r0); | 2922 __ Push(r0); |
2928 __ ldr(scratch, MemOperand(sp, kPointerSize * 2)); | 2923 __ ldr(scratch, MemOperand(sp, kPointerSize * 2)); |
2929 __ Push(scratch); | 2924 __ Push(scratch); |
2930 __ Push(key->value()); | 2925 __ Push(key->value()); |
2931 | 2926 |
2932 // Stack here: | 2927 // Stack here: |
2933 // - home_object | 2928 // - home_object |
2934 // - this (receiver) | 2929 // - this (receiver) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2974 void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { | 2969 void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
2975 Expression* callee = expr->expression(); | 2970 Expression* callee = expr->expression(); |
2976 DCHECK(callee->IsProperty()); | 2971 DCHECK(callee->IsProperty()); |
2977 Property* prop = callee->AsProperty(); | 2972 Property* prop = callee->AsProperty(); |
2978 DCHECK(prop->IsSuperAccess()); | 2973 DCHECK(prop->IsSuperAccess()); |
2979 | 2974 |
2980 SetSourcePosition(prop->position()); | 2975 SetSourcePosition(prop->position()); |
2981 // Load the function from the receiver. | 2976 // Load the function from the receiver. |
2982 const Register scratch = r1; | 2977 const Register scratch = r1; |
2983 SuperReference* super_ref = prop->obj()->AsSuperReference(); | 2978 SuperReference* super_ref = prop->obj()->AsSuperReference(); |
2984 EmitLoadHomeObject(super_ref); | 2979 VisitForStackValue(super_ref->home_object_var()); |
2985 __ Push(r0); | |
2986 VisitForAccumulatorValue(super_ref->this_var()); | 2980 VisitForAccumulatorValue(super_ref->this_var()); |
2987 __ Push(r0); | 2981 __ Push(r0); |
2988 __ Push(r0); | 2982 __ Push(r0); |
2989 __ ldr(scratch, MemOperand(sp, kPointerSize * 2)); | 2983 __ ldr(scratch, MemOperand(sp, kPointerSize * 2)); |
2990 __ Push(scratch); | 2984 __ Push(scratch); |
2991 VisitForStackValue(prop->key()); | 2985 VisitForStackValue(prop->key()); |
2992 | 2986 |
2993 // Stack here: | 2987 // Stack here: |
2994 // - home_object | 2988 // - home_object |
2995 // - this (receiver) | 2989 // - this (receiver) |
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4817 case NAMED_PROPERTY: { | 4811 case NAMED_PROPERTY: { |
4818 // Put the object both on the stack and in the register. | 4812 // Put the object both on the stack and in the register. |
4819 VisitForStackValue(prop->obj()); | 4813 VisitForStackValue(prop->obj()); |
4820 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); | 4814 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
4821 EmitNamedPropertyLoad(prop); | 4815 EmitNamedPropertyLoad(prop); |
4822 break; | 4816 break; |
4823 } | 4817 } |
4824 | 4818 |
4825 case NAMED_SUPER_PROPERTY: { | 4819 case NAMED_SUPER_PROPERTY: { |
4826 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 4820 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
4827 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 4821 VisitForAccumulatorValue( |
| 4822 prop->obj()->AsSuperReference()->home_object_var()); |
4828 __ Push(result_register()); | 4823 __ Push(result_register()); |
4829 const Register scratch = r1; | 4824 const Register scratch = r1; |
4830 __ ldr(scratch, MemOperand(sp, kPointerSize)); | 4825 __ ldr(scratch, MemOperand(sp, kPointerSize)); |
4831 __ Push(scratch); | 4826 __ Push(scratch); |
4832 __ Push(result_register()); | 4827 __ Push(result_register()); |
4833 EmitNamedSuperPropertyLoad(prop); | 4828 EmitNamedSuperPropertyLoad(prop); |
4834 break; | 4829 break; |
4835 } | 4830 } |
4836 | 4831 |
4837 case KEYED_SUPER_PROPERTY: { | 4832 case KEYED_SUPER_PROPERTY: { |
4838 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 4833 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
4839 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 4834 VisitForStackValue(prop->obj()->AsSuperReference()->home_object_var()); |
4840 __ Push(result_register()); | |
4841 VisitForAccumulatorValue(prop->key()); | 4835 VisitForAccumulatorValue(prop->key()); |
4842 __ Push(result_register()); | 4836 __ Push(result_register()); |
4843 const Register scratch = r1; | 4837 const Register scratch = r1; |
4844 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); | 4838 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); |
4845 __ Push(scratch); | 4839 __ Push(scratch); |
4846 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); | 4840 __ ldr(scratch, MemOperand(sp, 2 * kPointerSize)); |
4847 __ Push(scratch); | 4841 __ Push(scratch); |
4848 __ Push(result_register()); | 4842 __ Push(result_register()); |
4849 EmitKeyedSuperPropertyLoad(prop); | 4843 EmitKeyedSuperPropertyLoad(prop); |
4850 break; | 4844 break; |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5484 | 5478 |
5485 DCHECK(interrupt_address == | 5479 DCHECK(interrupt_address == |
5486 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5480 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5487 return OSR_AFTER_STACK_CHECK; | 5481 return OSR_AFTER_STACK_CHECK; |
5488 } | 5482 } |
5489 | 5483 |
5490 | 5484 |
5491 } } // namespace v8::internal | 5485 } } // namespace v8::internal |
5492 | 5486 |
5493 #endif // V8_TARGET_ARCH_ARM | 5487 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |