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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 4818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4829 // sub <profiling_counter>, <delta> ;; Not changed | 4829 // sub <profiling_counter>, <delta> ;; Not changed |
4830 // nop | 4830 // nop |
4831 // nop | 4831 // nop |
4832 // call <on-stack replacment> | 4832 // call <on-stack replacment> |
4833 // ok: | 4833 // ok: |
4834 *jns_instr_address = kNopByteOne; | 4834 *jns_instr_address = kNopByteOne; |
4835 *jns_offset_address = kNopByteTwo; | 4835 *jns_offset_address = kNopByteTwo; |
4836 break; | 4836 break; |
4837 } | 4837 } |
4838 | 4838 |
4839 Assembler::set_target_address_at(call_target_address, | 4839 Assembler::set_target_address_at(unoptimized_code->GetIsolate(), |
4840 unoptimized_code, | 4840 call_target_address, unoptimized_code, |
4841 replacement_code->entry()); | 4841 replacement_code->entry()); |
4842 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( | 4842 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
4843 unoptimized_code, call_target_address, replacement_code); | 4843 unoptimized_code, call_target_address, replacement_code); |
4844 } | 4844 } |
4845 | 4845 |
4846 | 4846 |
4847 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4847 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
4848 Isolate* isolate, | 4848 Isolate* isolate, |
4849 Code* unoptimized_code, | 4849 Code* unoptimized_code, |
4850 Address pc) { | 4850 Address pc) { |
(...skipping 21 matching lines...) Expand all Loading... |
4872 Assembler::target_address_at(call_target_address, | 4872 Assembler::target_address_at(call_target_address, |
4873 unoptimized_code)); | 4873 unoptimized_code)); |
4874 return OSR_AFTER_STACK_CHECK; | 4874 return OSR_AFTER_STACK_CHECK; |
4875 } | 4875 } |
4876 | 4876 |
4877 | 4877 |
4878 } // namespace internal | 4878 } // namespace internal |
4879 } // namespace v8 | 4879 } // namespace v8 |
4880 | 4880 |
4881 #endif // V8_TARGET_ARCH_IA32 | 4881 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |