| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 Register temp = x5; | 1367 Register temp = x5; |
| 1368 Register array_pointer = x6; | 1368 Register array_pointer = x6; |
| 1369 | 1369 |
| 1370 // Does the native context match? | 1370 // Does the native context match? |
| 1371 __ Add(array_pointer, map, Operand(index, LSL, kPointerSizeLog2)); | 1371 __ Add(array_pointer, map, Operand(index, LSL, kPointerSizeLog2)); |
| 1372 __ Ldr(temp, FieldMemOperand(array_pointer, | 1372 __ Ldr(temp, FieldMemOperand(array_pointer, |
| 1373 SharedFunctionInfo::kOffsetToPreviousContext)); | 1373 SharedFunctionInfo::kOffsetToPreviousContext)); |
| 1374 __ Ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1374 __ Ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
| 1375 __ Cmp(temp, native_context); | 1375 __ Cmp(temp, native_context); |
| 1376 __ B(ne, &loop_bottom); | 1376 __ B(ne, &loop_bottom); |
| 1377 // OSR id set to none? | |
| 1378 __ Ldr(temp, FieldMemOperand(array_pointer, | |
| 1379 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); | |
| 1380 const int bailout_id = BailoutId::None().ToInt(); | |
| 1381 __ Cmp(temp, Operand(Smi::FromInt(bailout_id))); | |
| 1382 __ B(ne, &loop_bottom); | |
| 1383 // Literals available? | 1377 // Literals available? |
| 1384 __ Ldr(temp, FieldMemOperand(array_pointer, | 1378 __ Ldr(temp, FieldMemOperand(array_pointer, |
| 1385 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1379 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
| 1386 __ Ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1380 __ Ldr(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
| 1387 __ JumpIfSmi(temp, &gotta_call_runtime); | 1381 __ JumpIfSmi(temp, &gotta_call_runtime); |
| 1388 | 1382 |
| 1389 // Save the literals in the closure. | 1383 // Save the literals in the closure. |
| 1390 __ Str(temp, FieldMemOperand(closure, JSFunction::kLiteralsOffset)); | 1384 __ Str(temp, FieldMemOperand(closure, JSFunction::kLiteralsOffset)); |
| 1391 __ RecordWriteField(closure, JSFunction::kLiteralsOffset, temp, x7, | 1385 __ RecordWriteField(closure, JSFunction::kLiteralsOffset, temp, x7, |
| 1392 kLRHasNotBeenSaved, kDontSaveFPRegs, EMIT_REMEMBERED_SET, | 1386 kLRHasNotBeenSaved, kDontSaveFPRegs, EMIT_REMEMBERED_SET, |
| (...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3004 __ Unreachable(); | 2998 __ Unreachable(); |
| 3005 } | 2999 } |
| 3006 } | 3000 } |
| 3007 | 3001 |
| 3008 #undef __ | 3002 #undef __ |
| 3009 | 3003 |
| 3010 } // namespace internal | 3004 } // namespace internal |
| 3011 } // namespace v8 | 3005 } // namespace v8 |
| 3012 | 3006 |
| 3013 #endif // V8_TARGET_ARCH_ARM | 3007 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |