| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } else if (FLAG_debug_code) { | 241 } else if (FLAG_debug_code) { |
| 242 Label done; | 242 Label done; |
| 243 __ JumpIfInNewSpace(cp, a0, &done); | 243 __ JumpIfInNewSpace(cp, a0, &done); |
| 244 __ Abort(kExpectedNewSpaceObject); | 244 __ Abort(kExpectedNewSpaceObject); |
| 245 __ bind(&done); | 245 __ bind(&done); |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 Variable* home_object_var = scope()->home_object_var(); |
| 252 if (home_object_var != nullptr) { |
| 253 __ Push(a1); |
| 254 } |
| 255 |
| 251 ArgumentsAccessStub::HasNewTarget has_new_target = | 256 ArgumentsAccessStub::HasNewTarget has_new_target = |
| 252 IsSubclassConstructor(info->function()->kind()) | 257 IsSubclassConstructor(info->function()->kind()) |
| 253 ? ArgumentsAccessStub::HAS_NEW_TARGET | 258 ? ArgumentsAccessStub::HAS_NEW_TARGET |
| 254 : ArgumentsAccessStub::NO_NEW_TARGET; | 259 : ArgumentsAccessStub::NO_NEW_TARGET; |
| 255 | 260 |
| 256 // Possibly allocate RestParameters | 261 // Possibly allocate RestParameters |
| 257 int rest_index; | 262 int rest_index; |
| 258 Variable* rest_param = scope()->rest_parameter(&rest_index); | 263 Variable* rest_param = scope()->rest_parameter(&rest_index); |
| 259 if (rest_param) { | 264 if (rest_param) { |
| 260 Comment cmnt(masm_, "[ Allocate rest parameter array"); | 265 Comment cmnt(masm_, "[ Allocate rest parameter array"); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 312 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
| 308 } else { | 313 } else { |
| 309 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 314 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
| 310 } | 315 } |
| 311 ArgumentsAccessStub stub(isolate(), type, has_new_target); | 316 ArgumentsAccessStub stub(isolate(), type, has_new_target); |
| 312 __ CallStub(&stub); | 317 __ CallStub(&stub); |
| 313 | 318 |
| 314 SetVar(arguments, v0, a1, a2); | 319 SetVar(arguments, v0, a1, a2); |
| 315 } | 320 } |
| 316 | 321 |
| 322 // Possibly set up a local binding to the [[HomeObject]]. |
| 323 if (home_object_var != nullptr) { |
| 324 Comment cmnt(masm_, "[ Home object"); |
| 325 __ pop(LoadDescriptor::ReceiverRegister()); |
| 326 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); |
| 327 __ li(LoadDescriptor::NameRegister(), home_object_symbol); |
| 328 __ li(LoadDescriptor::SlotRegister(), |
| 329 Operand(SmiFromSlot(function()->HomeObjectFeedbackSlot()))); |
| 330 CallLoadIC(NOT_CONTEXTUAL); |
| 331 |
| 332 SetVar(home_object_var, v0, a1, a2); |
| 333 } |
| 334 |
| 317 if (FLAG_trace) { | 335 if (FLAG_trace) { |
| 318 __ CallRuntime(Runtime::kTraceEnter, 0); | 336 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 319 } | 337 } |
| 320 // Visit the declarations and body unless there is an illegal | 338 // Visit the declarations and body unless there is an illegal |
| 321 // redeclaration. | 339 // redeclaration. |
| 322 if (scope()->HasIllegalRedeclaration()) { | 340 if (scope()->HasIllegalRedeclaration()) { |
| 323 Comment cmnt(masm_, "[ Declarations"); | 341 Comment cmnt(masm_, "[ Declarations"); |
| 324 scope()->VisitIllegalRedeclaration(this); | 342 scope()->VisitIllegalRedeclaration(this); |
| 325 | 343 |
| 326 } else { | 344 } else { |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1303 context()->Plug(v0); | 1321 context()->Plug(v0); |
| 1304 } | 1322 } |
| 1305 | 1323 |
| 1306 | 1324 |
| 1307 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { | 1325 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
| 1308 Comment cmnt(masm_, "[ VariableProxy"); | 1326 Comment cmnt(masm_, "[ VariableProxy"); |
| 1309 EmitVariableLoad(expr); | 1327 EmitVariableLoad(expr); |
| 1310 } | 1328 } |
| 1311 | 1329 |
| 1312 | 1330 |
| 1313 void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) { | |
| 1314 Comment cnmt(masm_, "[ SuperReference "); | |
| 1315 | |
| 1316 __ ld(LoadDescriptor::ReceiverRegister(), | |
| 1317 MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
| 1318 | |
| 1319 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); | |
| 1320 __ li(LoadDescriptor::NameRegister(), home_object_symbol); | |
| 1321 | |
| 1322 __ li(LoadDescriptor::SlotRegister(), | |
| 1323 Operand(SmiFromSlot(expr->HomeObjectFeedbackSlot()))); | |
| 1324 CallLoadIC(NOT_CONTEXTUAL); | |
| 1325 | |
| 1326 Label done; | |
| 1327 __ Branch(&done, ne, v0, Operand(isolate()->factory()->undefined_value())); | |
| 1328 __ CallRuntime(Runtime::kThrowNonMethodError, 0); | |
| 1329 __ bind(&done); | |
| 1330 } | |
| 1331 | |
| 1332 | |
| 1333 void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer, | 1331 void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer, |
| 1334 int offset) { | 1332 int offset) { |
| 1335 if (NeedsHomeObject(initializer)) { | 1333 if (NeedsHomeObject(initializer)) { |
| 1336 __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); | 1334 __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
| 1337 __ li(StoreDescriptor::NameRegister(), | 1335 __ li(StoreDescriptor::NameRegister(), |
| 1338 Operand(isolate()->factory()->home_object_symbol())); | 1336 Operand(isolate()->factory()->home_object_symbol())); |
| 1339 __ ld(StoreDescriptor::ValueRegister(), | 1337 __ ld(StoreDescriptor::ValueRegister(), |
| 1340 MemOperand(sp, offset * kPointerSize)); | 1338 MemOperand(sp, offset * kPointerSize)); |
| 1341 CallStoreIC(); | 1339 CallStoreIC(); |
| 1342 } | 1340 } |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 if (expr->is_compound()) { | 1932 if (expr->is_compound()) { |
| 1935 // We need the receiver both on the stack and in the register. | 1933 // We need the receiver both on the stack and in the register. |
| 1936 VisitForStackValue(property->obj()); | 1934 VisitForStackValue(property->obj()); |
| 1937 __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); | 1935 __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
| 1938 } else { | 1936 } else { |
| 1939 VisitForStackValue(property->obj()); | 1937 VisitForStackValue(property->obj()); |
| 1940 } | 1938 } |
| 1941 break; | 1939 break; |
| 1942 case NAMED_SUPER_PROPERTY: | 1940 case NAMED_SUPER_PROPERTY: |
| 1943 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); | 1941 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); |
| 1944 EmitLoadHomeObject(property->obj()->AsSuperReference()); | 1942 VisitForAccumulatorValue( |
| 1943 property->obj()->AsSuperReference()->home_object_var()); |
| 1945 __ Push(result_register()); | 1944 __ Push(result_register()); |
| 1946 if (expr->is_compound()) { | 1945 if (expr->is_compound()) { |
| 1947 const Register scratch = a1; | 1946 const Register scratch = a1; |
| 1948 __ ld(scratch, MemOperand(sp, kPointerSize)); | 1947 __ ld(scratch, MemOperand(sp, kPointerSize)); |
| 1949 __ Push(scratch, result_register()); | 1948 __ Push(scratch, result_register()); |
| 1950 } | 1949 } |
| 1951 break; | 1950 break; |
| 1952 case KEYED_SUPER_PROPERTY: { | 1951 case KEYED_SUPER_PROPERTY: { |
| 1953 const Register scratch = a1; | 1952 const Register scratch = a1; |
| 1954 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); | 1953 VisitForStackValue(property->obj()->AsSuperReference()->this_var()); |
| 1955 EmitLoadHomeObject(property->obj()->AsSuperReference()); | 1954 VisitForAccumulatorValue( |
| 1955 property->obj()->AsSuperReference()->home_object_var()); |
| 1956 __ Move(scratch, result_register()); | 1956 __ Move(scratch, result_register()); |
| 1957 VisitForAccumulatorValue(property->key()); | 1957 VisitForAccumulatorValue(property->key()); |
| 1958 __ Push(scratch, result_register()); | 1958 __ Push(scratch, result_register()); |
| 1959 if (expr->is_compound()) { | 1959 if (expr->is_compound()) { |
| 1960 const Register scratch1 = a4; | 1960 const Register scratch1 = a4; |
| 1961 __ ld(scratch1, MemOperand(sp, 2 * kPointerSize)); | 1961 __ ld(scratch1, MemOperand(sp, 2 * kPointerSize)); |
| 1962 __ Push(scratch1, scratch, result_register()); | 1962 __ Push(scratch1, scratch, result_register()); |
| 1963 } | 1963 } |
| 1964 break; | 1964 break; |
| 1965 } | 1965 } |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2578 __ mov(StoreDescriptor::ReceiverRegister(), result_register()); | 2578 __ mov(StoreDescriptor::ReceiverRegister(), result_register()); |
| 2579 __ pop(StoreDescriptor::ValueRegister()); // Restore value. | 2579 __ pop(StoreDescriptor::ValueRegister()); // Restore value. |
| 2580 __ li(StoreDescriptor::NameRegister(), | 2580 __ li(StoreDescriptor::NameRegister(), |
| 2581 Operand(prop->key()->AsLiteral()->value())); | 2581 Operand(prop->key()->AsLiteral()->value())); |
| 2582 CallStoreIC(); | 2582 CallStoreIC(); |
| 2583 break; | 2583 break; |
| 2584 } | 2584 } |
| 2585 case NAMED_SUPER_PROPERTY: { | 2585 case NAMED_SUPER_PROPERTY: { |
| 2586 __ Push(v0); | 2586 __ Push(v0); |
| 2587 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 2587 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
| 2588 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 2588 VisitForAccumulatorValue( |
| 2589 prop->obj()->AsSuperReference()->home_object_var()); |
| 2589 // stack: value, this; v0: home_object | 2590 // stack: value, this; v0: home_object |
| 2590 Register scratch = a2; | 2591 Register scratch = a2; |
| 2591 Register scratch2 = a3; | 2592 Register scratch2 = a3; |
| 2592 __ mov(scratch, result_register()); // home_object | 2593 __ mov(scratch, result_register()); // home_object |
| 2593 __ ld(v0, MemOperand(sp, kPointerSize)); // value | 2594 __ ld(v0, MemOperand(sp, kPointerSize)); // value |
| 2594 __ ld(scratch2, MemOperand(sp, 0)); // this | 2595 __ ld(scratch2, MemOperand(sp, 0)); // this |
| 2595 __ sd(scratch2, MemOperand(sp, kPointerSize)); // this | 2596 __ sd(scratch2, MemOperand(sp, kPointerSize)); // this |
| 2596 __ sd(scratch, MemOperand(sp, 0)); // home_object | 2597 __ sd(scratch, MemOperand(sp, 0)); // home_object |
| 2597 // stack: this, home_object; v0: value | 2598 // stack: this, home_object; v0: value |
| 2598 EmitNamedSuperPropertyStore(prop); | 2599 EmitNamedSuperPropertyStore(prop); |
| 2599 break; | 2600 break; |
| 2600 } | 2601 } |
| 2601 case KEYED_SUPER_PROPERTY: { | 2602 case KEYED_SUPER_PROPERTY: { |
| 2602 __ Push(v0); | 2603 __ Push(v0); |
| 2603 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 2604 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
| 2604 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 2605 VisitForStackValue(prop->obj()->AsSuperReference()->home_object_var()); |
| 2605 __ Push(result_register()); | |
| 2606 VisitForAccumulatorValue(prop->key()); | 2606 VisitForAccumulatorValue(prop->key()); |
| 2607 Register scratch = a2; | 2607 Register scratch = a2; |
| 2608 Register scratch2 = a3; | 2608 Register scratch2 = a3; |
| 2609 __ ld(scratch2, MemOperand(sp, 2 * kPointerSize)); // value | 2609 __ ld(scratch2, MemOperand(sp, 2 * kPointerSize)); // value |
| 2610 // stack: value, this, home_object; v0: key, a3: value | 2610 // stack: value, this, home_object; v0: key, a3: value |
| 2611 __ ld(scratch, MemOperand(sp, kPointerSize)); // this | 2611 __ ld(scratch, MemOperand(sp, kPointerSize)); // this |
| 2612 __ sd(scratch, MemOperand(sp, 2 * kPointerSize)); | 2612 __ sd(scratch, MemOperand(sp, 2 * kPointerSize)); |
| 2613 __ ld(scratch, MemOperand(sp, 0)); // home_object | 2613 __ ld(scratch, MemOperand(sp, 0)); // home_object |
| 2614 __ sd(scratch, MemOperand(sp, kPointerSize)); | 2614 __ sd(scratch, MemOperand(sp, kPointerSize)); |
| 2615 __ sd(v0, MemOperand(sp, 0)); | 2615 __ sd(v0, MemOperand(sp, 0)); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2816 Comment cmnt(masm_, "[ Property"); | 2816 Comment cmnt(masm_, "[ Property"); |
| 2817 Expression* key = expr->key(); | 2817 Expression* key = expr->key(); |
| 2818 | 2818 |
| 2819 if (key->IsPropertyName()) { | 2819 if (key->IsPropertyName()) { |
| 2820 if (!expr->IsSuperAccess()) { | 2820 if (!expr->IsSuperAccess()) { |
| 2821 VisitForAccumulatorValue(expr->obj()); | 2821 VisitForAccumulatorValue(expr->obj()); |
| 2822 __ Move(LoadDescriptor::ReceiverRegister(), v0); | 2822 __ Move(LoadDescriptor::ReceiverRegister(), v0); |
| 2823 EmitNamedPropertyLoad(expr); | 2823 EmitNamedPropertyLoad(expr); |
| 2824 } else { | 2824 } else { |
| 2825 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2825 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
| 2826 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2826 VisitForStackValue(expr->obj()->AsSuperReference()->home_object_var()); |
| 2827 __ Push(result_register()); | |
| 2828 EmitNamedSuperPropertyLoad(expr); | 2827 EmitNamedSuperPropertyLoad(expr); |
| 2829 } | 2828 } |
| 2830 } else { | 2829 } else { |
| 2831 if (!expr->IsSuperAccess()) { | 2830 if (!expr->IsSuperAccess()) { |
| 2832 VisitForStackValue(expr->obj()); | 2831 VisitForStackValue(expr->obj()); |
| 2833 VisitForAccumulatorValue(expr->key()); | 2832 VisitForAccumulatorValue(expr->key()); |
| 2834 __ Move(LoadDescriptor::NameRegister(), v0); | 2833 __ Move(LoadDescriptor::NameRegister(), v0); |
| 2835 __ pop(LoadDescriptor::ReceiverRegister()); | 2834 __ pop(LoadDescriptor::ReceiverRegister()); |
| 2836 EmitKeyedPropertyLoad(expr); | 2835 EmitKeyedPropertyLoad(expr); |
| 2837 } else { | 2836 } else { |
| 2838 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2837 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
| 2839 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2838 VisitForStackValue(expr->obj()->AsSuperReference()->home_object_var()); |
| 2840 __ Push(result_register()); | |
| 2841 VisitForStackValue(expr->key()); | 2839 VisitForStackValue(expr->key()); |
| 2842 EmitKeyedSuperPropertyLoad(expr); | 2840 EmitKeyedSuperPropertyLoad(expr); |
| 2843 } | 2841 } |
| 2844 } | 2842 } |
| 2845 PrepareForBailoutForId(expr->LoadId(), TOS_REG); | 2843 PrepareForBailoutForId(expr->LoadId(), TOS_REG); |
| 2846 context()->Plug(v0); | 2844 context()->Plug(v0); |
| 2847 } | 2845 } |
| 2848 | 2846 |
| 2849 | 2847 |
| 2850 void FullCodeGenerator::CallIC(Handle<Code> code, | 2848 void FullCodeGenerator::CallIC(Handle<Code> code, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2893 DCHECK(callee->IsProperty()); | 2891 DCHECK(callee->IsProperty()); |
| 2894 Property* prop = callee->AsProperty(); | 2892 Property* prop = callee->AsProperty(); |
| 2895 DCHECK(prop->IsSuperAccess()); | 2893 DCHECK(prop->IsSuperAccess()); |
| 2896 | 2894 |
| 2897 SetSourcePosition(prop->position()); | 2895 SetSourcePosition(prop->position()); |
| 2898 Literal* key = prop->key()->AsLiteral(); | 2896 Literal* key = prop->key()->AsLiteral(); |
| 2899 DCHECK(!key->value()->IsSmi()); | 2897 DCHECK(!key->value()->IsSmi()); |
| 2900 // Load the function from the receiver. | 2898 // Load the function from the receiver. |
| 2901 const Register scratch = a1; | 2899 const Register scratch = a1; |
| 2902 SuperReference* super_ref = prop->obj()->AsSuperReference(); | 2900 SuperReference* super_ref = prop->obj()->AsSuperReference(); |
| 2903 EmitLoadHomeObject(super_ref); | 2901 VisitForAccumulatorValue(super_ref->home_object_var()); |
| 2904 __ mov(scratch, v0); | 2902 __ mov(scratch, v0); |
| 2905 VisitForAccumulatorValue(super_ref->this_var()); | 2903 VisitForAccumulatorValue(super_ref->this_var()); |
| 2906 __ Push(scratch, v0, v0, scratch); | 2904 __ Push(scratch, v0, v0, scratch); |
| 2907 __ Push(key->value()); | 2905 __ Push(key->value()); |
| 2908 | 2906 |
| 2909 // Stack here: | 2907 // Stack here: |
| 2910 // - home_object | 2908 // - home_object |
| 2911 // - this (receiver) | 2909 // - this (receiver) |
| 2912 // - this (receiver) <-- LoadFromSuper will pop here and below. | 2910 // - this (receiver) <-- LoadFromSuper will pop here and below. |
| 2913 // - home_object | 2911 // - home_object |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2951 void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { | 2949 void FullCodeGenerator::EmitKeyedSuperCallWithLoadIC(Call* expr) { |
| 2952 Expression* callee = expr->expression(); | 2950 Expression* callee = expr->expression(); |
| 2953 DCHECK(callee->IsProperty()); | 2951 DCHECK(callee->IsProperty()); |
| 2954 Property* prop = callee->AsProperty(); | 2952 Property* prop = callee->AsProperty(); |
| 2955 DCHECK(prop->IsSuperAccess()); | 2953 DCHECK(prop->IsSuperAccess()); |
| 2956 | 2954 |
| 2957 SetSourcePosition(prop->position()); | 2955 SetSourcePosition(prop->position()); |
| 2958 // Load the function from the receiver. | 2956 // Load the function from the receiver. |
| 2959 const Register scratch = a1; | 2957 const Register scratch = a1; |
| 2960 SuperReference* super_ref = prop->obj()->AsSuperReference(); | 2958 SuperReference* super_ref = prop->obj()->AsSuperReference(); |
| 2961 EmitLoadHomeObject(super_ref); | 2959 VisitForAccumulatorValue(super_ref->home_object_var()); |
| 2962 __ Move(scratch, v0); | 2960 __ Move(scratch, v0); |
| 2963 VisitForAccumulatorValue(super_ref->this_var()); | 2961 VisitForAccumulatorValue(super_ref->this_var()); |
| 2964 __ Push(scratch, v0, v0, scratch); | 2962 __ Push(scratch, v0, v0, scratch); |
| 2965 VisitForStackValue(prop->key()); | 2963 VisitForStackValue(prop->key()); |
| 2966 | 2964 |
| 2967 // Stack here: | 2965 // Stack here: |
| 2968 // - home_object | 2966 // - home_object |
| 2969 // - this (receiver) | 2967 // - this (receiver) |
| 2970 // - this (receiver) <-- LoadKeyedFromSuper will pop here and below. | 2968 // - this (receiver) <-- LoadKeyedFromSuper will pop here and below. |
| 2971 // - home_object | 2969 // - home_object |
| (...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4823 case NAMED_PROPERTY: { | 4821 case NAMED_PROPERTY: { |
| 4824 // Put the object both on the stack and in the register. | 4822 // Put the object both on the stack and in the register. |
| 4825 VisitForStackValue(prop->obj()); | 4823 VisitForStackValue(prop->obj()); |
| 4826 __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); | 4824 __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); |
| 4827 EmitNamedPropertyLoad(prop); | 4825 EmitNamedPropertyLoad(prop); |
| 4828 break; | 4826 break; |
| 4829 } | 4827 } |
| 4830 | 4828 |
| 4831 case NAMED_SUPER_PROPERTY: { | 4829 case NAMED_SUPER_PROPERTY: { |
| 4832 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 4830 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
| 4833 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 4831 VisitForAccumulatorValue( |
| 4832 prop->obj()->AsSuperReference()->home_object_var()); |
| 4834 __ Push(result_register()); | 4833 __ Push(result_register()); |
| 4835 const Register scratch = a1; | 4834 const Register scratch = a1; |
| 4836 __ ld(scratch, MemOperand(sp, kPointerSize)); | 4835 __ ld(scratch, MemOperand(sp, kPointerSize)); |
| 4837 __ Push(scratch, result_register()); | 4836 __ Push(scratch, result_register()); |
| 4838 EmitNamedSuperPropertyLoad(prop); | 4837 EmitNamedSuperPropertyLoad(prop); |
| 4839 break; | 4838 break; |
| 4840 } | 4839 } |
| 4841 | 4840 |
| 4842 case KEYED_SUPER_PROPERTY: { | 4841 case KEYED_SUPER_PROPERTY: { |
| 4843 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 4842 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
| 4844 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 4843 VisitForAccumulatorValue( |
| 4844 prop->obj()->AsSuperReference()->home_object_var()); |
| 4845 const Register scratch = a1; | 4845 const Register scratch = a1; |
| 4846 const Register scratch1 = a4; | 4846 const Register scratch1 = a4; |
| 4847 __ Move(scratch, result_register()); | 4847 __ Move(scratch, result_register()); |
| 4848 VisitForAccumulatorValue(prop->key()); | 4848 VisitForAccumulatorValue(prop->key()); |
| 4849 __ Push(scratch, result_register()); | 4849 __ Push(scratch, result_register()); |
| 4850 __ ld(scratch1, MemOperand(sp, 2 * kPointerSize)); | 4850 __ ld(scratch1, MemOperand(sp, 2 * kPointerSize)); |
| 4851 __ Push(scratch1, scratch, result_register()); | 4851 __ Push(scratch1, scratch, result_register()); |
| 4852 EmitKeyedSuperPropertyLoad(prop); | 4852 EmitKeyedSuperPropertyLoad(prop); |
| 4853 break; | 4853 break; |
| 4854 } | 4854 } |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5430 Assembler::target_address_at(pc_immediate_load_address)) == | 5430 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5431 reinterpret_cast<uint64_t>( | 5431 reinterpret_cast<uint64_t>( |
| 5432 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5432 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5433 return OSR_AFTER_STACK_CHECK; | 5433 return OSR_AFTER_STACK_CHECK; |
| 5434 } | 5434 } |
| 5435 | 5435 |
| 5436 | 5436 |
| 5437 } } // namespace v8::internal | 5437 } } // namespace v8::internal |
| 5438 | 5438 |
| 5439 #endif // V8_TARGET_ARCH_MIPS64 | 5439 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |