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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 } | 1486 } |
1487 } | 1487 } |
1488 __ jmp(done); | 1488 __ jmp(done); |
1489 } | 1489 } |
1490 } | 1490 } |
1491 | 1491 |
1492 | 1492 |
1493 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { | 1493 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
1494 // Record position before possible IC call. | 1494 // Record position before possible IC call. |
1495 SetSourcePosition(proxy->position()); | 1495 SetSourcePosition(proxy->position()); |
| 1496 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
1496 Variable* var = proxy->var(); | 1497 Variable* var = proxy->var(); |
1497 | 1498 |
1498 // Three cases: global variables, lookup variables, and all other types of | 1499 // Three cases: global variables, lookup variables, and all other types of |
1499 // variables. | 1500 // variables. |
1500 switch (var->location()) { | 1501 switch (var->location()) { |
1501 case Variable::UNALLOCATED: { | 1502 case Variable::UNALLOCATED: { |
1502 Comment cmnt(masm_, "[ Global variable"); | 1503 Comment cmnt(masm_, "[ Global variable"); |
1503 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1504 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
1504 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1505 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1505 if (FLAG_vector_ics) { | 1506 if (FLAG_vector_ics) { |
(...skipping 4004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5510 | 5511 |
5511 DCHECK(interrupt_address == | 5512 DCHECK(interrupt_address == |
5512 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5513 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5513 return OSR_AFTER_STACK_CHECK; | 5514 return OSR_AFTER_STACK_CHECK; |
5514 } | 5515 } |
5515 | 5516 |
5516 | 5517 |
5517 } } // namespace v8::internal | 5518 } } // namespace v8::internal |
5518 | 5519 |
5519 #endif // V8_TARGET_ARCH_ARM | 5520 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |