| 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 4891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4902 | 4902 |
| 4903 #undef __ | 4903 #undef __ |
| 4904 | 4904 |
| 4905 | 4905 |
| 4906 void BackEdgeTable::PatchAt(Code* unoptimized_code, | 4906 void BackEdgeTable::PatchAt(Code* unoptimized_code, |
| 4907 Address pc, | 4907 Address pc, |
| 4908 BackEdgeState target_state, | 4908 BackEdgeState target_state, |
| 4909 Code* replacement_code) { | 4909 Code* replacement_code) { |
| 4910 static const int kInstrSize = Assembler::kInstrSize; | 4910 static const int kInstrSize = Assembler::kInstrSize; |
| 4911 Address branch_address = pc - 6 * kInstrSize; | 4911 Address branch_address = pc - 6 * kInstrSize; |
| 4912 CodePatcher patcher(branch_address, 1); | 4912 CodePatcher patcher(unoptimized_code->GetIsolate(), branch_address, 1); |
| 4913 | 4913 |
| 4914 switch (target_state) { | 4914 switch (target_state) { |
| 4915 case INTERRUPT: | 4915 case INTERRUPT: |
| 4916 // slt at, a3, zero_reg (in case of count based interrupts) | 4916 // slt at, a3, zero_reg (in case of count based interrupts) |
| 4917 // beq at, zero_reg, ok | 4917 // beq at, zero_reg, ok |
| 4918 // lui t9, <interrupt stub address> upper | 4918 // lui t9, <interrupt stub address> upper |
| 4919 // ori t9, <interrupt stub address> lower | 4919 // ori t9, <interrupt stub address> lower |
| 4920 // jalr t9 | 4920 // jalr t9 |
| 4921 // nop | 4921 // nop |
| 4922 // ok-label ----- pc_after points here | 4922 // ok-label ----- pc_after points here |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4976 reinterpret_cast<uint32_t>( | 4976 reinterpret_cast<uint32_t>( |
| 4977 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4977 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4978 return OSR_AFTER_STACK_CHECK; | 4978 return OSR_AFTER_STACK_CHECK; |
| 4979 } | 4979 } |
| 4980 | 4980 |
| 4981 | 4981 |
| 4982 } // namespace internal | 4982 } // namespace internal |
| 4983 } // namespace v8 | 4983 } // namespace v8 |
| 4984 | 4984 |
| 4985 #endif // V8_TARGET_ARCH_MIPS | 4985 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |