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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 // variables. | 1506 // variables. |
1507 switch (var->location()) { | 1507 switch (var->location()) { |
1508 case Variable::UNALLOCATED: { | 1508 case Variable::UNALLOCATED: { |
1509 Comment cmnt(masm_, "[ Global variable"); | 1509 Comment cmnt(masm_, "[ Global variable"); |
1510 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1510 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
1511 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); | 1511 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); |
1512 if (FLAG_vector_ics) { | 1512 if (FLAG_vector_ics) { |
1513 __ li(VectorLoadICDescriptor::SlotRegister(), | 1513 __ li(VectorLoadICDescriptor::SlotRegister(), |
1514 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1514 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1515 } | 1515 } |
1516 CallLoadIC(CONTEXTUAL); | 1516 CallGlobalLoadIC(var->name()); |
1517 context()->Plug(v0); | 1517 context()->Plug(v0); |
1518 break; | 1518 break; |
1519 } | 1519 } |
1520 | 1520 |
1521 case Variable::PARAMETER: | 1521 case Variable::PARAMETER: |
1522 case Variable::LOCAL: | 1522 case Variable::LOCAL: |
1523 case Variable::CONTEXT: { | 1523 case Variable::CONTEXT: { |
1524 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1524 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
1525 : "[ Stack variable"); | 1525 : "[ Stack variable"); |
1526 if (var->binding_needs_init()) { | 1526 if (var->binding_needs_init()) { |
(...skipping 3917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5444 Assembler::target_address_at(pc_immediate_load_address)) == | 5444 Assembler::target_address_at(pc_immediate_load_address)) == |
5445 reinterpret_cast<uint32_t>( | 5445 reinterpret_cast<uint32_t>( |
5446 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5446 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5447 return OSR_AFTER_STACK_CHECK; | 5447 return OSR_AFTER_STACK_CHECK; |
5448 } | 5448 } |
5449 | 5449 |
5450 | 5450 |
5451 } } // namespace v8::internal | 5451 } } // namespace v8::internal |
5452 | 5452 |
5453 #endif // V8_TARGET_ARCH_MIPS | 5453 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |