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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 // variables. | 1522 // variables. |
1523 switch (var->location()) { | 1523 switch (var->location()) { |
1524 case Variable::UNALLOCATED: { | 1524 case Variable::UNALLOCATED: { |
1525 Comment cmnt(masm_, "[ Global variable"); | 1525 Comment cmnt(masm_, "[ Global variable"); |
1526 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1526 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
1527 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1527 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1528 if (FLAG_vector_ics) { | 1528 if (FLAG_vector_ics) { |
1529 __ mov(VectorLoadICDescriptor::SlotRegister(), | 1529 __ mov(VectorLoadICDescriptor::SlotRegister(), |
1530 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1530 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1531 } | 1531 } |
1532 CallLoadIC(CONTEXTUAL); | 1532 CallGlobalLoadIC(var->name()); |
1533 context()->Plug(r0); | 1533 context()->Plug(r0); |
1534 break; | 1534 break; |
1535 } | 1535 } |
1536 | 1536 |
1537 case Variable::PARAMETER: | 1537 case Variable::PARAMETER: |
1538 case Variable::LOCAL: | 1538 case Variable::LOCAL: |
1539 case Variable::CONTEXT: { | 1539 case Variable::CONTEXT: { |
1540 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1540 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
1541 : "[ Stack variable"); | 1541 : "[ Stack variable"); |
1542 if (var->binding_needs_init()) { | 1542 if (var->binding_needs_init()) { |
(...skipping 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5502 | 5502 |
5503 DCHECK(interrupt_address == | 5503 DCHECK(interrupt_address == |
5504 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5504 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5505 return OSR_AFTER_STACK_CHECK; | 5505 return OSR_AFTER_STACK_CHECK; |
5506 } | 5506 } |
5507 | 5507 |
5508 | 5508 |
5509 } } // namespace v8::internal | 5509 } } // namespace v8::internal |
5510 | 5510 |
5511 #endif // V8_TARGET_ARCH_ARM | 5511 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |