| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 // variables. | 1435 // variables. |
| 1436 switch (var->location()) { | 1436 switch (var->location()) { |
| 1437 case Variable::UNALLOCATED: { | 1437 case Variable::UNALLOCATED: { |
| 1438 Comment cmnt(masm_, "[ Global variable"); | 1438 Comment cmnt(masm_, "[ Global variable"); |
| 1439 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1439 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
| 1440 __ mov(LoadDescriptor::NameRegister(), var->name()); | 1440 __ mov(LoadDescriptor::NameRegister(), var->name()); |
| 1441 if (FLAG_vector_ics) { | 1441 if (FLAG_vector_ics) { |
| 1442 __ mov(VectorLoadICDescriptor::SlotRegister(), | 1442 __ mov(VectorLoadICDescriptor::SlotRegister(), |
| 1443 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1443 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
| 1444 } | 1444 } |
| 1445 CallLoadIC(CONTEXTUAL); | 1445 CallGlobalLoadIC(var->name()); |
| 1446 context()->Plug(eax); | 1446 context()->Plug(eax); |
| 1447 break; | 1447 break; |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 case Variable::PARAMETER: | 1450 case Variable::PARAMETER: |
| 1451 case Variable::LOCAL: | 1451 case Variable::LOCAL: |
| 1452 case Variable::CONTEXT: { | 1452 case Variable::CONTEXT: { |
| 1453 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1453 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
| 1454 : "[ Stack variable"); | 1454 : "[ Stack variable"); |
| 1455 if (var->binding_needs_init()) { | 1455 if (var->binding_needs_init()) { |
| (...skipping 3894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5351 Assembler::target_address_at(call_target_address, | 5351 Assembler::target_address_at(call_target_address, |
| 5352 unoptimized_code)); | 5352 unoptimized_code)); |
| 5353 return OSR_AFTER_STACK_CHECK; | 5353 return OSR_AFTER_STACK_CHECK; |
| 5354 } | 5354 } |
| 5355 | 5355 |
| 5356 | 5356 |
| 5357 } } // namespace v8::internal | 5357 } } // namespace v8::internal |
| 5358 | 5358 |
| 5359 #endif // V8_TARGET_ARCH_X87 | 5359 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |