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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 4810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4821 // sub <profiling_counter>, <delta> ;; Not changed | 4821 // sub <profiling_counter>, <delta> ;; Not changed |
4822 // nop | 4822 // nop |
4823 // nop | 4823 // nop |
4824 // call <on-stack replacment> | 4824 // call <on-stack replacment> |
4825 // ok: | 4825 // ok: |
4826 *jns_instr_address = kNopByteOne; | 4826 *jns_instr_address = kNopByteOne; |
4827 *jns_offset_address = kNopByteTwo; | 4827 *jns_offset_address = kNopByteTwo; |
4828 break; | 4828 break; |
4829 } | 4829 } |
4830 | 4830 |
4831 Assembler::set_target_address_at(call_target_address, | 4831 Assembler::set_target_address_at(unoptimized_code->GetIsolate(), |
4832 unoptimized_code, | 4832 call_target_address, unoptimized_code, |
4833 replacement_code->entry()); | 4833 replacement_code->entry()); |
4834 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( | 4834 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
4835 unoptimized_code, call_target_address, replacement_code); | 4835 unoptimized_code, call_target_address, replacement_code); |
4836 } | 4836 } |
4837 | 4837 |
4838 | 4838 |
4839 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4839 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
4840 Isolate* isolate, | 4840 Isolate* isolate, |
4841 Code* unoptimized_code, | 4841 Code* unoptimized_code, |
4842 Address pc) { | 4842 Address pc) { |
(...skipping 21 matching lines...) Expand all Loading... |
4864 Assembler::target_address_at(call_target_address, | 4864 Assembler::target_address_at(call_target_address, |
4865 unoptimized_code)); | 4865 unoptimized_code)); |
4866 return OSR_AFTER_STACK_CHECK; | 4866 return OSR_AFTER_STACK_CHECK; |
4867 } | 4867 } |
4868 | 4868 |
4869 | 4869 |
4870 } // namespace internal | 4870 } // namespace internal |
4871 } // namespace v8 | 4871 } // namespace v8 |
4872 | 4872 |
4873 #endif // V8_TARGET_ARCH_X87 | 4873 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |