| 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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 4191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4202 | 4202 |
| 4203 | 4203 |
| 4204 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4204 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
| 4205 Isolate* isolate, | 4205 Isolate* isolate, |
| 4206 Code* unoptimized_code, | 4206 Code* unoptimized_code, |
| 4207 Address pc) { | 4207 Address pc) { |
| 4208 DCHECK(Assembler::IsBlxIp(Memory::int32_at(pc - Assembler::kInstrSize))); | 4208 DCHECK(Assembler::IsBlxIp(Memory::int32_at(pc - Assembler::kInstrSize))); |
| 4209 | 4209 |
| 4210 Address pc_immediate_load_address = GetInterruptImmediateLoadAddress(pc); | 4210 Address pc_immediate_load_address = GetInterruptImmediateLoadAddress(pc); |
| 4211 Address branch_address = pc_immediate_load_address - Assembler::kInstrSize; | 4211 Address branch_address = pc_immediate_load_address - Assembler::kInstrSize; |
| 4212 #ifdef DEBUG |
| 4212 Address interrupt_address = Assembler::target_address_at( | 4213 Address interrupt_address = Assembler::target_address_at( |
| 4213 pc_immediate_load_address, unoptimized_code); | 4214 pc_immediate_load_address, unoptimized_code); |
| 4215 #endif |
| 4214 | 4216 |
| 4215 if (Assembler::IsBranch(Assembler::instr_at(branch_address))) { | 4217 if (Assembler::IsBranch(Assembler::instr_at(branch_address))) { |
| 4216 DCHECK(interrupt_address == | 4218 DCHECK(interrupt_address == |
| 4217 isolate->builtins()->InterruptCheck()->entry()); | 4219 isolate->builtins()->InterruptCheck()->entry()); |
| 4218 return INTERRUPT; | 4220 return INTERRUPT; |
| 4219 } | 4221 } |
| 4220 | 4222 |
| 4221 DCHECK(Assembler::IsNop(Assembler::instr_at(branch_address))); | 4223 DCHECK(Assembler::IsNop(Assembler::instr_at(branch_address))); |
| 4222 | 4224 |
| 4223 DCHECK(interrupt_address == | 4225 DCHECK(interrupt_address == |
| 4224 isolate->builtins()->OnStackReplacement()->entry()); | 4226 isolate->builtins()->OnStackReplacement()->entry()); |
| 4225 return ON_STACK_REPLACEMENT; | 4227 return ON_STACK_REPLACEMENT; |
| 4226 } | 4228 } |
| 4227 | 4229 |
| 4228 | 4230 |
| 4229 } // namespace internal | 4231 } // namespace internal |
| 4230 } // namespace v8 | 4232 } // namespace v8 |
| 4231 | 4233 |
| 4232 #endif // V8_TARGET_ARCH_ARM | 4234 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |