| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 // variables. | 1482 // variables. |
| 1483 switch (var->location()) { | 1483 switch (var->location()) { |
| 1484 case Variable::UNALLOCATED: { | 1484 case Variable::UNALLOCATED: { |
| 1485 Comment cmnt(masm_, "[ Global variable"); | 1485 Comment cmnt(masm_, "[ Global variable"); |
| 1486 __ Move(LoadDescriptor::NameRegister(), var->name()); | 1486 __ Move(LoadDescriptor::NameRegister(), var->name()); |
| 1487 __ movp(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1487 __ movp(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
| 1488 if (FLAG_vector_ics) { | 1488 if (FLAG_vector_ics) { |
| 1489 __ Move(VectorLoadICDescriptor::SlotRegister(), | 1489 __ Move(VectorLoadICDescriptor::SlotRegister(), |
| 1490 SmiFromSlot(proxy->VariableFeedbackSlot())); | 1490 SmiFromSlot(proxy->VariableFeedbackSlot())); |
| 1491 } | 1491 } |
| 1492 CallLoadIC(CONTEXTUAL); | 1492 CallGlobalLoadIC(var->name()); |
| 1493 context()->Plug(rax); | 1493 context()->Plug(rax); |
| 1494 break; | 1494 break; |
| 1495 } | 1495 } |
| 1496 | 1496 |
| 1497 case Variable::PARAMETER: | 1497 case Variable::PARAMETER: |
| 1498 case Variable::LOCAL: | 1498 case Variable::LOCAL: |
| 1499 case Variable::CONTEXT: { | 1499 case Variable::CONTEXT: { |
| 1500 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context slot" | 1500 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context slot" |
| 1501 : "[ Stack slot"); | 1501 : "[ Stack slot"); |
| 1502 if (var->binding_needs_init()) { | 1502 if (var->binding_needs_init()) { |
| (...skipping 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5387 Assembler::target_address_at(call_target_address, | 5387 Assembler::target_address_at(call_target_address, |
| 5388 unoptimized_code)); | 5388 unoptimized_code)); |
| 5389 return OSR_AFTER_STACK_CHECK; | 5389 return OSR_AFTER_STACK_CHECK; |
| 5390 } | 5390 } |
| 5391 | 5391 |
| 5392 | 5392 |
| 5393 } } // namespace v8::internal | 5393 } } // namespace v8::internal |
| 5394 | 5394 |
| 5395 #endif // V8_TARGET_ARCH_X64 | 5395 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |