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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 Register temp = r1; | 1363 Register temp = r1; |
1364 Register array_pointer = r5; | 1364 Register array_pointer = r5; |
1365 | 1365 |
1366 // Does the native context match? | 1366 // Does the native context match? |
1367 __ add(array_pointer, map, Operand::PointerOffsetFromSmiKey(index)); | 1367 __ add(array_pointer, map, Operand::PointerOffsetFromSmiKey(index)); |
1368 __ ldr(temp, FieldMemOperand(array_pointer, | 1368 __ ldr(temp, FieldMemOperand(array_pointer, |
1369 SharedFunctionInfo::kOffsetToPreviousContext)); | 1369 SharedFunctionInfo::kOffsetToPreviousContext)); |
1370 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1370 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
1371 __ cmp(temp, native_context); | 1371 __ cmp(temp, native_context); |
1372 __ b(ne, &loop_bottom); | 1372 __ b(ne, &loop_bottom); |
1373 // OSR id set to none? | |
1374 __ ldr(temp, FieldMemOperand(array_pointer, | |
1375 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); | |
1376 const int bailout_id = BailoutId::None().ToInt(); | |
1377 __ cmp(temp, Operand(Smi::FromInt(bailout_id))); | |
1378 __ b(ne, &loop_bottom); | |
1379 // Literals available? | 1373 // Literals available? |
1380 __ ldr(temp, FieldMemOperand(array_pointer, | 1374 __ ldr(temp, FieldMemOperand(array_pointer, |
1381 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1375 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
1382 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1376 __ ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
1383 __ JumpIfSmi(temp, &gotta_call_runtime); | 1377 __ JumpIfSmi(temp, &gotta_call_runtime); |
1384 | 1378 |
1385 // Save the literals in the closure. | 1379 // Save the literals in the closure. |
1386 __ ldr(r4, MemOperand(sp, 0)); | 1380 __ ldr(r4, MemOperand(sp, 0)); |
1387 __ str(temp, FieldMemOperand(r4, JSFunction::kLiteralsOffset)); | 1381 __ str(temp, FieldMemOperand(r4, JSFunction::kLiteralsOffset)); |
1388 __ push(index); | 1382 __ push(index); |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2893 __ bkpt(0); | 2887 __ bkpt(0); |
2894 } | 2888 } |
2895 } | 2889 } |
2896 | 2890 |
2897 #undef __ | 2891 #undef __ |
2898 | 2892 |
2899 } // namespace internal | 2893 } // namespace internal |
2900 } // namespace v8 | 2894 } // namespace v8 |
2901 | 2895 |
2902 #endif // V8_TARGET_ARCH_ARM | 2896 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |