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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 // Store code entry in the closure. | 1350 // Store code entry in the closure. |
1351 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1351 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); |
1352 __ jmp(&install_optimized_code_and_tailcall); | 1352 __ jmp(&install_optimized_code_and_tailcall); |
1353 | 1353 |
1354 __ bind(&try_shared); | 1354 __ bind(&try_shared); |
1355 __ pop(new_target); | 1355 __ pop(new_target); |
1356 __ pop(argument_count); | 1356 __ pop(argument_count); |
1357 // Is the full code valid? | 1357 // Is the full code valid? |
1358 __ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); | 1358 __ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); |
1359 __ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); | 1359 __ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); |
1360 __ ld(a5, FieldMemOperand(entry, Code::kFlagsOffset)); | 1360 __ lw(a5, FieldMemOperand(entry, Code::kFlagsOffset)); |
1361 __ And(a5, a5, Operand(Code::KindField::kMask)); | 1361 __ And(a5, a5, Operand(Code::KindField::kMask)); |
1362 __ dsrl(a5, a5, Code::KindField::kShift); | 1362 __ dsrl(a5, a5, Code::KindField::kShift); |
1363 __ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN)); | 1363 __ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN)); |
1364 // Yes, install the full code. | 1364 // Yes, install the full code. |
1365 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1365 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); |
1366 __ sd(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset)); | 1366 __ sd(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset)); |
1367 __ RecordWriteCodeEntryField(closure, entry, a5); | 1367 __ RecordWriteCodeEntryField(closure, entry, a5); |
1368 __ Jump(entry); | 1368 __ Jump(entry); |
1369 | 1369 |
1370 __ bind(&gotta_call_runtime); | 1370 __ bind(&gotta_call_runtime); |
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2892 } | 2892 } |
2893 } | 2893 } |
2894 | 2894 |
2895 | 2895 |
2896 #undef __ | 2896 #undef __ |
2897 | 2897 |
2898 } // namespace internal | 2898 } // namespace internal |
2899 } // namespace v8 | 2899 } // namespace v8 |
2900 | 2900 |
2901 #endif // V8_TARGET_ARCH_MIPS64 | 2901 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |