OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 // variables. | 1501 // variables. |
1502 switch (var->location()) { | 1502 switch (var->location()) { |
1503 case Variable::UNALLOCATED: { | 1503 case Variable::UNALLOCATED: { |
1504 Comment cmnt(masm_, "Global variable"); | 1504 Comment cmnt(masm_, "Global variable"); |
1505 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); | 1505 __ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); |
1506 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1506 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1507 if (FLAG_vector_ics) { | 1507 if (FLAG_vector_ics) { |
1508 __ Mov(VectorLoadICDescriptor::SlotRegister(), | 1508 __ Mov(VectorLoadICDescriptor::SlotRegister(), |
1509 SmiFromSlot(proxy->VariableFeedbackSlot())); | 1509 SmiFromSlot(proxy->VariableFeedbackSlot())); |
1510 } | 1510 } |
1511 CallLoadIC(CONTEXTUAL); | 1511 CallGlobalLoadIC(var->name()); |
1512 context()->Plug(x0); | 1512 context()->Plug(x0); |
1513 break; | 1513 break; |
1514 } | 1514 } |
1515 | 1515 |
1516 case Variable::PARAMETER: | 1516 case Variable::PARAMETER: |
1517 case Variable::LOCAL: | 1517 case Variable::LOCAL: |
1518 case Variable::CONTEXT: { | 1518 case Variable::CONTEXT: { |
1519 Comment cmnt(masm_, var->IsContextSlot() | 1519 Comment cmnt(masm_, var->IsContextSlot() |
1520 ? "Context variable" | 1520 ? "Context variable" |
1521 : "Stack variable"); | 1521 : "Stack variable"); |
(...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5480 return previous_; | 5480 return previous_; |
5481 } | 5481 } |
5482 | 5482 |
5483 | 5483 |
5484 #undef __ | 5484 #undef __ |
5485 | 5485 |
5486 | 5486 |
5487 } } // namespace v8::internal | 5487 } } // namespace v8::internal |
5488 | 5488 |
5489 #endif // V8_TARGET_ARCH_ARM64 | 5489 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |