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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 } | 1467 } |
1468 } | 1468 } |
1469 __ Branch(done); | 1469 __ Branch(done); |
1470 } | 1470 } |
1471 } | 1471 } |
1472 | 1472 |
1473 | 1473 |
1474 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { | 1474 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
1475 // Record position before possible IC call. | 1475 // Record position before possible IC call. |
1476 SetSourcePosition(proxy->position()); | 1476 SetSourcePosition(proxy->position()); |
| 1477 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
1477 Variable* var = proxy->var(); | 1478 Variable* var = proxy->var(); |
1478 | 1479 |
1479 // Three cases: global variables, lookup variables, and all other types of | 1480 // Three cases: global variables, lookup variables, and all other types of |
1480 // variables. | 1481 // variables. |
1481 switch (var->location()) { | 1482 switch (var->location()) { |
1482 case Variable::UNALLOCATED: { | 1483 case Variable::UNALLOCATED: { |
1483 Comment cmnt(masm_, "[ Global variable"); | 1484 Comment cmnt(masm_, "[ Global variable"); |
1484 // Use inline caching. Variable name is passed in a2 and the global | 1485 // Use inline caching. Variable name is passed in a2 and the global |
1485 // object (receiver) in a0. | 1486 // object (receiver) in a0. |
1486 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1487 __ ld(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
(...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5456 Assembler::target_address_at(pc_immediate_load_address)) == | 5457 Assembler::target_address_at(pc_immediate_load_address)) == |
5457 reinterpret_cast<uint64_t>( | 5458 reinterpret_cast<uint64_t>( |
5458 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5459 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5459 return OSR_AFTER_STACK_CHECK; | 5460 return OSR_AFTER_STACK_CHECK; |
5460 } | 5461 } |
5461 | 5462 |
5462 | 5463 |
5463 } } // namespace v8::internal | 5464 } } // namespace v8::internal |
5464 | 5465 |
5465 #endif // V8_TARGET_ARCH_MIPS64 | 5466 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |