| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 // variables. | 1446 // variables. |
| 1447 switch (var->location()) { | 1447 switch (var->location()) { |
| 1448 case Variable::UNALLOCATED: { | 1448 case Variable::UNALLOCATED: { |
| 1449 Comment cmnt(masm_, "[ Global variable"); | 1449 Comment cmnt(masm_, "[ Global variable"); |
| 1450 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1450 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
| 1451 __ mov(LoadDescriptor::NameRegister(), var->name()); | 1451 __ mov(LoadDescriptor::NameRegister(), var->name()); |
| 1452 if (FLAG_vector_ics) { | 1452 if (FLAG_vector_ics) { |
| 1453 __ mov(VectorLoadICDescriptor::SlotRegister(), | 1453 __ mov(VectorLoadICDescriptor::SlotRegister(), |
| 1454 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1454 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
| 1455 } | 1455 } |
| 1456 CallLoadIC(CONTEXTUAL); | 1456 CallGlobalLoadIC(var->name()); |
| 1457 context()->Plug(eax); | 1457 context()->Plug(eax); |
| 1458 break; | 1458 break; |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 case Variable::PARAMETER: | 1461 case Variable::PARAMETER: |
| 1462 case Variable::LOCAL: | 1462 case Variable::LOCAL: |
| 1463 case Variable::CONTEXT: { | 1463 case Variable::CONTEXT: { |
| 1464 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1464 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
| 1465 : "[ Stack variable"); | 1465 : "[ Stack variable"); |
| 1466 if (var->binding_needs_init()) { | 1466 if (var->binding_needs_init()) { |
| (...skipping 3897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5364 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5364 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5365 Assembler::target_address_at(call_target_address, | 5365 Assembler::target_address_at(call_target_address, |
| 5366 unoptimized_code)); | 5366 unoptimized_code)); |
| 5367 return OSR_AFTER_STACK_CHECK; | 5367 return OSR_AFTER_STACK_CHECK; |
| 5368 } | 5368 } |
| 5369 | 5369 |
| 5370 | 5370 |
| 5371 } } // namespace v8::internal | 5371 } } // namespace v8::internal |
| 5372 | 5372 |
| 5373 #endif // V8_TARGET_ARCH_IA32 | 5373 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |