| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 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 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 } | 1443 } |
| 1444 } | 1444 } |
| 1445 __ b(done); | 1445 __ b(done); |
| 1446 } | 1446 } |
| 1447 } | 1447 } |
| 1448 | 1448 |
| 1449 | 1449 |
| 1450 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { | 1450 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
| 1451 // Record position before possible IC call. | 1451 // Record position before possible IC call. |
| 1452 SetSourcePosition(proxy->position()); | 1452 SetSourcePosition(proxy->position()); |
| 1453 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
| 1453 Variable* var = proxy->var(); | 1454 Variable* var = proxy->var(); |
| 1454 | 1455 |
| 1455 // Three cases: global variables, lookup variables, and all other types of | 1456 // Three cases: global variables, lookup variables, and all other types of |
| 1456 // variables. | 1457 // variables. |
| 1457 switch (var->location()) { | 1458 switch (var->location()) { |
| 1458 case Variable::UNALLOCATED: { | 1459 case Variable::UNALLOCATED: { |
| 1459 Comment cmnt(masm_, "[ Global variable"); | 1460 Comment cmnt(masm_, "[ Global variable"); |
| 1460 __ LoadP(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1461 __ LoadP(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
| 1461 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1462 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
| 1462 if (FLAG_vector_ics) { | 1463 if (FLAG_vector_ics) { |
| (...skipping 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5451 return ON_STACK_REPLACEMENT; | 5452 return ON_STACK_REPLACEMENT; |
| 5452 } | 5453 } |
| 5453 | 5454 |
| 5454 DCHECK(interrupt_address == | 5455 DCHECK(interrupt_address == |
| 5455 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5456 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5456 return OSR_AFTER_STACK_CHECK; | 5457 return OSR_AFTER_STACK_CHECK; |
| 5457 } | 5458 } |
| 5458 } | 5459 } |
| 5459 } // namespace v8::internal | 5460 } // namespace v8::internal |
| 5460 #endif // V8_TARGET_ARCH_PPC | 5461 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |