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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 4832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4843 // sub <profiling_counter>, <delta> ;; Not changed | 4843 // sub <profiling_counter>, <delta> ;; Not changed |
4844 // nop | 4844 // nop |
4845 // nop | 4845 // nop |
4846 // call <on-stack replacment> | 4846 // call <on-stack replacment> |
4847 // ok: | 4847 // ok: |
4848 *jns_instr_address = kNopByteOne; | 4848 *jns_instr_address = kNopByteOne; |
4849 *jns_offset_address = kNopByteTwo; | 4849 *jns_offset_address = kNopByteTwo; |
4850 break; | 4850 break; |
4851 } | 4851 } |
4852 | 4852 |
4853 Assembler::set_target_address_at(call_target_address, | 4853 Assembler::set_target_address_at(unoptimized_code->GetIsolate(), |
4854 unoptimized_code, | 4854 call_target_address, unoptimized_code, |
4855 replacement_code->entry()); | 4855 replacement_code->entry()); |
4856 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( | 4856 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
4857 unoptimized_code, call_target_address, replacement_code); | 4857 unoptimized_code, call_target_address, replacement_code); |
4858 } | 4858 } |
4859 | 4859 |
4860 | 4860 |
4861 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4861 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
4862 Isolate* isolate, | 4862 Isolate* isolate, |
4863 Code* unoptimized_code, | 4863 Code* unoptimized_code, |
4864 Address pc) { | 4864 Address pc) { |
(...skipping 22 matching lines...) Expand all Loading... |
4887 Assembler::target_address_at(call_target_address, | 4887 Assembler::target_address_at(call_target_address, |
4888 unoptimized_code)); | 4888 unoptimized_code)); |
4889 return OSR_AFTER_STACK_CHECK; | 4889 return OSR_AFTER_STACK_CHECK; |
4890 } | 4890 } |
4891 | 4891 |
4892 | 4892 |
4893 } // namespace internal | 4893 } // namespace internal |
4894 } // namespace v8 | 4894 } // namespace v8 |
4895 | 4895 |
4896 #endif // V8_TARGET_ARCH_X64 | 4896 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |