Chromium Code Reviews| 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 4959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4970 // | orr ip, ip, #imm> | orr ip, ip, #imm | 4970 // | orr ip, ip, #imm> | orr ip, ip, #imm |
| 4971 // | orr ip, ip, #imm> | orr ip, ip, #imm | 4971 // | orr ip, ip, #imm> | orr ip, ip, #imm |
| 4972 // blx ip | 4972 // blx ip |
| 4973 // <reset profiling counter> | 4973 // <reset profiling counter> |
| 4974 // ok-label | 4974 // ok-label |
| 4975 patcher.masm()->nop(); | 4975 patcher.masm()->nop(); |
| 4976 break; | 4976 break; |
| 4977 } | 4977 } |
| 4978 | 4978 |
| 4979 // Replace the call address. | 4979 // Replace the call address. |
| 4980 Assembler::set_target_address_at(pc_immediate_load_address, unoptimized_code, | 4980 Assembler::set_target_address_at(unoptimized_code->GetIsolate(), |
|
Jakob Kummerow
2015/11/27 12:51:53
I'm not overly fond of calling ->GetIsolate() twic
| |
| 4981 replacement_code->entry()); | 4981 pc_immediate_load_address, unoptimized_code, |
| 4982 replacement_code->entry()); | |
| 4982 | 4983 |
| 4983 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( | 4984 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
| 4984 unoptimized_code, pc_immediate_load_address, replacement_code); | 4985 unoptimized_code, pc_immediate_load_address, replacement_code); |
| 4985 } | 4986 } |
| 4986 | 4987 |
| 4987 | 4988 |
| 4988 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4989 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
| 4989 Isolate* isolate, | 4990 Isolate* isolate, |
| 4990 Code* unoptimized_code, | 4991 Code* unoptimized_code, |
| 4991 Address pc) { | 4992 Address pc) { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 5012 DCHECK(interrupt_address == | 5013 DCHECK(interrupt_address == |
| 5013 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5014 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5014 return OSR_AFTER_STACK_CHECK; | 5015 return OSR_AFTER_STACK_CHECK; |
| 5015 } | 5016 } |
| 5016 | 5017 |
| 5017 | 5018 |
| 5018 } // namespace internal | 5019 } // namespace internal |
| 5019 } // namespace v8 | 5020 } // namespace v8 |
| 5020 | 5021 |
| 5021 #endif // V8_TARGET_ARCH_ARM | 5022 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |