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 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2513 break; | 2513 break; |
2514 } | 2514 } |
2515 case NAMED_SUPER_PROPERTY: { | 2515 case NAMED_SUPER_PROPERTY: { |
2516 __ Push(v0); | 2516 __ Push(v0); |
2517 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 2517 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
2518 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 2518 EmitLoadHomeObject(prop->obj()->AsSuperReference()); |
2519 // stack: value, this; v0: home_object | 2519 // stack: value, this; v0: home_object |
2520 Register scratch = a2; | 2520 Register scratch = a2; |
2521 Register scratch2 = a3; | 2521 Register scratch2 = a3; |
2522 __ mov(scratch, result_register()); // home_object | 2522 __ mov(scratch, result_register()); // home_object |
2523 __ lw(v0, MemOperand(sp, kPointerSize)); // value | 2523 __ ld(v0, MemOperand(sp, kPointerSize)); // value |
2524 __ lw(scratch2, MemOperand(sp, 0)); // this | 2524 __ ld(scratch2, MemOperand(sp, 0)); // this |
2525 __ sw(scratch2, MemOperand(sp, kPointerSize)); // this | 2525 __ sd(scratch2, MemOperand(sp, kPointerSize)); // this |
2526 __ sw(scratch, MemOperand(sp, 0)); // home_object | 2526 __ sd(scratch, MemOperand(sp, 0)); // home_object |
2527 // stack: this, home_object; v0: value | 2527 // stack: this, home_object; v0: value |
2528 EmitNamedSuperPropertyStore(prop); | 2528 EmitNamedSuperPropertyStore(prop); |
2529 break; | 2529 break; |
2530 } | 2530 } |
2531 case KEYED_SUPER_PROPERTY: { | 2531 case KEYED_SUPER_PROPERTY: { |
2532 __ Push(v0); | 2532 __ Push(v0); |
2533 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); | 2533 VisitForStackValue(prop->obj()->AsSuperReference()->this_var()); |
2534 EmitLoadHomeObject(prop->obj()->AsSuperReference()); | 2534 EmitLoadHomeObject(prop->obj()->AsSuperReference()); |
2535 __ Push(result_register()); | 2535 __ Push(result_register()); |
2536 VisitForAccumulatorValue(prop->key()); | 2536 VisitForAccumulatorValue(prop->key()); |
2537 Register scratch = a2; | 2537 Register scratch = a2; |
2538 Register scratch2 = a3; | 2538 Register scratch2 = a3; |
2539 __ lw(scratch2, MemOperand(sp, 2 * kPointerSize)); // value | 2539 __ ld(scratch2, MemOperand(sp, 2 * kPointerSize)); // value |
2540 // stack: value, this, home_object; v0: key, a3: value | 2540 // stack: value, this, home_object; v0: key, a3: value |
2541 __ lw(scratch, MemOperand(sp, kPointerSize)); // this | 2541 __ ld(scratch, MemOperand(sp, kPointerSize)); // this |
2542 __ sw(scratch, MemOperand(sp, 2 * kPointerSize)); | 2542 __ sd(scratch, MemOperand(sp, 2 * kPointerSize)); |
2543 __ lw(scratch, MemOperand(sp, 0)); // home_object | 2543 __ ld(scratch, MemOperand(sp, 0)); // home_object |
2544 __ sw(scratch, MemOperand(sp, kPointerSize)); | 2544 __ sd(scratch, MemOperand(sp, kPointerSize)); |
2545 __ sw(v0, MemOperand(sp, 0)); | 2545 __ sd(v0, MemOperand(sp, 0)); |
2546 __ Move(v0, scratch2); | 2546 __ Move(v0, scratch2); |
2547 // stack: this, home_object, key; v0: value. | 2547 // stack: this, home_object, key; v0: value. |
2548 EmitKeyedSuperPropertyStore(prop); | 2548 EmitKeyedSuperPropertyStore(prop); |
2549 break; | 2549 break; |
2550 } | 2550 } |
2551 case KEYED_PROPERTY: { | 2551 case KEYED_PROPERTY: { |
2552 __ push(result_register()); // Preserve value. | 2552 __ push(result_register()); // Preserve value. |
2553 VisitForStackValue(prop->obj()); | 2553 VisitForStackValue(prop->obj()); |
2554 VisitForAccumulatorValue(prop->key()); | 2554 VisitForAccumulatorValue(prop->key()); |
2555 __ Move(StoreDescriptor::NameRegister(), result_register()); | 2555 __ Move(StoreDescriptor::NameRegister(), result_register()); |
(...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5217 Assembler::target_address_at(pc_immediate_load_address)) == | 5217 Assembler::target_address_at(pc_immediate_load_address)) == |
5218 reinterpret_cast<uint64_t>( | 5218 reinterpret_cast<uint64_t>( |
5219 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5219 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5220 return OSR_AFTER_STACK_CHECK; | 5220 return OSR_AFTER_STACK_CHECK; |
5221 } | 5221 } |
5222 | 5222 |
5223 | 5223 |
5224 } } // namespace v8::internal | 5224 } } // namespace v8::internal |
5225 | 5225 |
5226 #endif // V8_TARGET_ARCH_MIPS64 | 5226 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |