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 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 case Variable::UNALLOCATED: { | 1504 case Variable::UNALLOCATED: { |
1505 Comment cmnt(masm_, "[ Global variable"); | 1505 Comment cmnt(masm_, "[ Global variable"); |
1506 // Use inline caching. Variable name is passed in a2 and the global | 1506 // Use inline caching. Variable name is passed in a2 and the global |
1507 // object (receiver) in a0. | 1507 // object (receiver) in a0. |
1508 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1508 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
1509 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); | 1509 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); |
1510 if (FLAG_vector_ics) { | 1510 if (FLAG_vector_ics) { |
1511 __ li(VectorLoadICDescriptor::SlotRegister(), | 1511 __ li(VectorLoadICDescriptor::SlotRegister(), |
1512 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1512 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1513 } | 1513 } |
1514 CallLoadIC(CONTEXTUAL); | 1514 CallGlobalLoadIC(var->name()); |
1515 context()->Plug(v0); | 1515 context()->Plug(v0); |
1516 break; | 1516 break; |
1517 } | 1517 } |
1518 | 1518 |
1519 case Variable::PARAMETER: | 1519 case Variable::PARAMETER: |
1520 case Variable::LOCAL: | 1520 case Variable::LOCAL: |
1521 case Variable::CONTEXT: { | 1521 case Variable::CONTEXT: { |
1522 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1522 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
1523 : "[ Stack variable"); | 1523 : "[ Stack variable"); |
1524 if (var->binding_needs_init()) { | 1524 if (var->binding_needs_init()) { |
(...skipping 3925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5450 Assembler::target_address_at(pc_immediate_load_address)) == | 5450 Assembler::target_address_at(pc_immediate_load_address)) == |
5451 reinterpret_cast<uint64_t>( | 5451 reinterpret_cast<uint64_t>( |
5452 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5452 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5453 return OSR_AFTER_STACK_CHECK; | 5453 return OSR_AFTER_STACK_CHECK; |
5454 } | 5454 } |
5455 | 5455 |
5456 | 5456 |
5457 } } // namespace v8::internal | 5457 } } // namespace v8::internal |
5458 | 5458 |
5459 #endif // V8_TARGET_ARCH_MIPS64 | 5459 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |