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 #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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 Register temp = a1; | 1373 Register temp = a1; |
1374 Register array_pointer = t1; | 1374 Register array_pointer = t1; |
1375 | 1375 |
1376 // Does the native context match? | 1376 // Does the native context match? |
1377 __ sll(at, index, kPointerSizeLog2 - kSmiTagSize); | 1377 __ sll(at, index, kPointerSizeLog2 - kSmiTagSize); |
1378 __ Addu(array_pointer, map, Operand(at)); | 1378 __ Addu(array_pointer, map, Operand(at)); |
1379 __ lw(temp, FieldMemOperand(array_pointer, | 1379 __ lw(temp, FieldMemOperand(array_pointer, |
1380 SharedFunctionInfo::kOffsetToPreviousContext)); | 1380 SharedFunctionInfo::kOffsetToPreviousContext)); |
1381 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1381 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
1382 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); | 1382 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); |
| 1383 // OSR id set to none? |
| 1384 __ lw(temp, FieldMemOperand(array_pointer, |
| 1385 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); |
| 1386 const int bailout_id = BailoutId::None().ToInt(); |
| 1387 __ Branch(&loop_bottom, ne, temp, Operand(Smi::FromInt(bailout_id))); |
1383 // Literals available? | 1388 // Literals available? |
1384 __ lw(temp, FieldMemOperand(array_pointer, | 1389 __ lw(temp, FieldMemOperand(array_pointer, |
1385 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1390 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
1386 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1391 __ lw(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
1387 __ JumpIfSmi(temp, &gotta_call_runtime); | 1392 __ JumpIfSmi(temp, &gotta_call_runtime); |
1388 | 1393 |
1389 // Save the literals in the closure. | 1394 // Save the literals in the closure. |
1390 __ lw(t0, MemOperand(sp, 0)); | 1395 __ lw(t0, MemOperand(sp, 0)); |
1391 __ sw(temp, FieldMemOperand(t0, JSFunction::kLiteralsOffset)); | 1396 __ sw(temp, FieldMemOperand(t0, JSFunction::kLiteralsOffset)); |
1392 __ push(index); | 1397 __ push(index); |
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2971 __ break_(0xCC); | 2976 __ break_(0xCC); |
2972 } | 2977 } |
2973 } | 2978 } |
2974 | 2979 |
2975 #undef __ | 2980 #undef __ |
2976 | 2981 |
2977 } // namespace internal | 2982 } // namespace internal |
2978 } // namespace v8 | 2983 } // namespace v8 |
2979 | 2984 |
2980 #endif // V8_TARGET_ARCH_MIPS | 2985 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |