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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 Register temp = a1; | 1364 Register temp = a1; |
1365 Register array_pointer = a5; | 1365 Register array_pointer = a5; |
1366 | 1366 |
1367 // Does the native context match? | 1367 // Does the native context match? |
1368 __ SmiScale(at, index, kPointerSizeLog2); | 1368 __ SmiScale(at, index, kPointerSizeLog2); |
1369 __ Daddu(array_pointer, map, Operand(at)); | 1369 __ Daddu(array_pointer, map, Operand(at)); |
1370 __ ld(temp, FieldMemOperand(array_pointer, | 1370 __ ld(temp, FieldMemOperand(array_pointer, |
1371 SharedFunctionInfo::kOffsetToPreviousContext)); | 1371 SharedFunctionInfo::kOffsetToPreviousContext)); |
1372 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1372 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
1373 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); | 1373 __ Branch(&loop_bottom, ne, temp, Operand(native_context)); |
| 1374 // OSR id set to none? |
| 1375 __ ld(temp, FieldMemOperand(array_pointer, |
| 1376 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); |
| 1377 const int bailout_id = BailoutId::None().ToInt(); |
| 1378 __ Branch(&loop_bottom, ne, temp, Operand(Smi::FromInt(bailout_id))); |
1374 // Literals available? | 1379 // Literals available? |
1375 __ ld(temp, FieldMemOperand(array_pointer, | 1380 __ ld(temp, FieldMemOperand(array_pointer, |
1376 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1381 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
1377 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1382 __ ld(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
1378 __ JumpIfSmi(temp, &gotta_call_runtime); | 1383 __ JumpIfSmi(temp, &gotta_call_runtime); |
1379 | 1384 |
1380 // Save the literals in the closure. | 1385 // Save the literals in the closure. |
1381 __ ld(a4, MemOperand(sp, 0)); | 1386 __ ld(a4, MemOperand(sp, 0)); |
1382 __ sd(temp, FieldMemOperand(a4, JSFunction::kLiteralsOffset)); | 1387 __ sd(temp, FieldMemOperand(a4, JSFunction::kLiteralsOffset)); |
1383 __ push(index); | 1388 __ push(index); |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2997 __ break_(0xCC); | 3002 __ break_(0xCC); |
2998 } | 3003 } |
2999 } | 3004 } |
3000 | 3005 |
3001 #undef __ | 3006 #undef __ |
3002 | 3007 |
3003 } // namespace internal | 3008 } // namespace internal |
3004 } // namespace v8 | 3009 } // namespace v8 |
3005 | 3010 |
3006 #endif // V8_TARGET_ARCH_MIPS64 | 3011 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |