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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 // Pass function as argument. | 1037 // Pass function as argument. |
1038 __ push(a0); | 1038 __ push(a0); |
1039 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); | 1039 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); |
1040 } | 1040 } |
1041 | 1041 |
1042 // If the code object is null, just return to the unoptimized code. | 1042 // If the code object is null, just return to the unoptimized code. |
1043 __ Ret(eq, v0, Operand(Smi::FromInt(0))); | 1043 __ Ret(eq, v0, Operand(Smi::FromInt(0))); |
1044 | 1044 |
1045 // Load deoptimization data from the code object. | 1045 // Load deoptimization data from the code object. |
1046 // <deopt_data> = <code>[#deoptimization_data_offset] | 1046 // <deopt_data> = <code>[#deoptimization_data_offset] |
1047 __ Uld(a1, MemOperand(v0, Code::kDeoptimizationDataOffset - kHeapObjectTag)); | 1047 __ ld(a1, MemOperand(v0, Code::kDeoptimizationDataOffset - kHeapObjectTag)); |
1048 | 1048 |
1049 // Load the OSR entrypoint offset from the deoptimization data. | 1049 // Load the OSR entrypoint offset from the deoptimization data. |
1050 // <osr_offset> = <deopt_data>[#header_size + #osr_pc_offset] | 1050 // <osr_offset> = <deopt_data>[#header_size + #osr_pc_offset] |
1051 __ ld(a1, MemOperand(a1, FixedArray::OffsetOfElementAt( | 1051 __ ld(a1, MemOperand(a1, FixedArray::OffsetOfElementAt( |
1052 DeoptimizationInputData::kOsrPcOffsetIndex) - kHeapObjectTag)); | 1052 DeoptimizationInputData::kOsrPcOffsetIndex) - kHeapObjectTag)); |
1053 __ SmiUntag(a1); | 1053 __ SmiUntag(a1); |
1054 | 1054 |
1055 // Compute the target address = code_obj + header_size + osr_offset | 1055 // Compute the target address = code_obj + header_size + osr_offset |
1056 // <entry_addr> = <code_obj> + #header_size + <osr_offset> | 1056 // <entry_addr> = <code_obj> + #header_size + <osr_offset> |
1057 __ daddu(v0, v0, a1); | 1057 __ daddu(v0, v0, a1); |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 __ break_(0xCC); | 1587 __ break_(0xCC); |
1588 } | 1588 } |
1589 } | 1589 } |
1590 | 1590 |
1591 | 1591 |
1592 #undef __ | 1592 #undef __ |
1593 | 1593 |
1594 } } // namespace v8::internal | 1594 } } // namespace v8::internal |
1595 | 1595 |
1596 #endif // V8_TARGET_ARCH_MIPS64 | 1596 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |