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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 } | 1470 } |
1471 } | 1471 } |
1472 __ Branch(done); | 1472 __ Branch(done); |
1473 } | 1473 } |
1474 } | 1474 } |
1475 | 1475 |
1476 | 1476 |
1477 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { | 1477 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
1478 // Record position before possible IC call. | 1478 // Record position before possible IC call. |
1479 SetSourcePosition(proxy->position()); | 1479 SetSourcePosition(proxy->position()); |
| 1480 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
1480 Variable* var = proxy->var(); | 1481 Variable* var = proxy->var(); |
1481 | 1482 |
1482 // Three cases: global variables, lookup variables, and all other types of | 1483 // Three cases: global variables, lookup variables, and all other types of |
1483 // variables. | 1484 // variables. |
1484 switch (var->location()) { | 1485 switch (var->location()) { |
1485 case Variable::UNALLOCATED: { | 1486 case Variable::UNALLOCATED: { |
1486 Comment cmnt(masm_, "[ Global variable"); | 1487 Comment cmnt(masm_, "[ Global variable"); |
1487 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1488 __ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
1488 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); | 1489 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); |
1489 if (FLAG_vector_ics) { | 1490 if (FLAG_vector_ics) { |
(...skipping 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5449 Assembler::target_address_at(pc_immediate_load_address)) == | 5450 Assembler::target_address_at(pc_immediate_load_address)) == |
5450 reinterpret_cast<uint32_t>( | 5451 reinterpret_cast<uint32_t>( |
5451 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5452 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5452 return OSR_AFTER_STACK_CHECK; | 5453 return OSR_AFTER_STACK_CHECK; |
5453 } | 5454 } |
5454 | 5455 |
5455 | 5456 |
5456 } } // namespace v8::internal | 5457 } } // namespace v8::internal |
5457 | 5458 |
5458 #endif // V8_TARGET_ARCH_MIPS | 5459 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |