| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 4916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4927 // <reset profiling counter> | 4927 // <reset profiling counter> |
| 4928 // ok-label ----- pc_after points here | 4928 // ok-label ----- pc_after points here |
| 4929 | 4929 |
| 4930 // Set the LT bit such that bge is a NOP | 4930 // Set the LT bit such that bge is a NOP |
| 4931 patcher.masm()->crset(Assembler::encode_crbit(cr7, CR_LT)); | 4931 patcher.masm()->crset(Assembler::encode_crbit(cr7, CR_LT)); |
| 4932 break; | 4932 break; |
| 4933 } | 4933 } |
| 4934 | 4934 |
| 4935 // Replace the stack check address in the mov sequence with the | 4935 // Replace the stack check address in the mov sequence with the |
| 4936 // entry address of the replacement code. | 4936 // entry address of the replacement code. |
| 4937 Assembler::set_target_address_at(mov_address, unoptimized_code, | 4937 Assembler::set_target_address_at(unoptimized_code->GetIsolate(), mov_address, |
| 4938 replacement_code->entry()); | 4938 unoptimized_code, replacement_code->entry()); |
| 4939 | 4939 |
| 4940 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( | 4940 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
| 4941 unoptimized_code, mov_address, replacement_code); | 4941 unoptimized_code, mov_address, replacement_code); |
| 4942 } | 4942 } |
| 4943 | 4943 |
| 4944 | 4944 |
| 4945 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4945 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
| 4946 Isolate* isolate, Code* unoptimized_code, Address pc) { | 4946 Isolate* isolate, Code* unoptimized_code, Address pc) { |
| 4947 Address mov_address = Assembler::target_address_from_return_address(pc); | 4947 Address mov_address = Assembler::target_address_from_return_address(pc); |
| 4948 Address cmp_address = mov_address - 2 * Assembler::kInstrSize; | 4948 Address cmp_address = mov_address - 2 * Assembler::kInstrSize; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4960 return ON_STACK_REPLACEMENT; | 4960 return ON_STACK_REPLACEMENT; |
| 4961 } | 4961 } |
| 4962 | 4962 |
| 4963 DCHECK(interrupt_address == | 4963 DCHECK(interrupt_address == |
| 4964 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4964 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4965 return OSR_AFTER_STACK_CHECK; | 4965 return OSR_AFTER_STACK_CHECK; |
| 4966 } | 4966 } |
| 4967 } // namespace internal | 4967 } // namespace internal |
| 4968 } // namespace v8 | 4968 } // namespace v8 |
| 4969 #endif // V8_TARGET_ARCH_PPC | 4969 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |