| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 4919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4930 // ori t9, <on-stack replacement address> lower | 4930 // ori t9, <on-stack replacement address> lower |
| 4931 // jalr t9 ;; Not changed | 4931 // jalr t9 ;; Not changed |
| 4932 // nop ;; Not changed | 4932 // nop ;; Not changed |
| 4933 // ok-label ----- pc_after points here | 4933 // ok-label ----- pc_after points here |
| 4934 patcher.masm()->addiu(at, zero_reg, 1); | 4934 patcher.masm()->addiu(at, zero_reg, 1); |
| 4935 break; | 4935 break; |
| 4936 } | 4936 } |
| 4937 Address pc_immediate_load_address = pc - 4 * kInstrSize; | 4937 Address pc_immediate_load_address = pc - 4 * kInstrSize; |
| 4938 // Replace the stack check address in the load-immediate (lui/ori pair) | 4938 // Replace the stack check address in the load-immediate (lui/ori pair) |
| 4939 // with the entry address of the replacement code. | 4939 // with the entry address of the replacement code. |
| 4940 Assembler::set_target_address_at(pc_immediate_load_address, | 4940 Assembler::set_target_address_at(unoptimized_code->GetIsolate(), |
| 4941 pc_immediate_load_address, |
| 4941 replacement_code->entry()); | 4942 replacement_code->entry()); |
| 4942 | 4943 |
| 4943 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( | 4944 unoptimized_code->GetHeap()->incremental_marking()->RecordCodeTargetPatch( |
| 4944 unoptimized_code, pc_immediate_load_address, replacement_code); | 4945 unoptimized_code, pc_immediate_load_address, replacement_code); |
| 4945 } | 4946 } |
| 4946 | 4947 |
| 4947 | 4948 |
| 4948 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( | 4949 BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
| 4949 Isolate* isolate, | 4950 Isolate* isolate, |
| 4950 Code* unoptimized_code, | 4951 Code* unoptimized_code, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4976 reinterpret_cast<uint32_t>( | 4977 reinterpret_cast<uint32_t>( |
| 4977 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4978 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4978 return OSR_AFTER_STACK_CHECK; | 4979 return OSR_AFTER_STACK_CHECK; |
| 4979 } | 4980 } |
| 4980 | 4981 |
| 4981 | 4982 |
| 4982 } // namespace internal | 4983 } // namespace internal |
| 4983 } // namespace v8 | 4984 } // namespace v8 |
| 4984 | 4985 |
| 4985 #endif // V8_TARGET_ARCH_MIPS | 4986 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |