Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: src/builtins/arm64/builtins-arm64.cc

Issue 2645543002: Back strongly rooted literals CLs out of the tree for branch cut (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/arm/builtins-arm.cc ('k') | src/builtins/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 // Do we have a valid feedback vector? 1354 // Do we have a valid feedback vector?
1355 __ Ldr(index, FieldMemOperand(closure, JSFunction::kLiteralsOffset)); 1355 __ Ldr(index, FieldMemOperand(closure, JSFunction::kLiteralsOffset));
1356 __ Ldr(index, FieldMemOperand(index, LiteralsArray::kFeedbackVectorOffset)); 1356 __ Ldr(index, FieldMemOperand(index, LiteralsArray::kFeedbackVectorOffset));
1357 __ JumpIfRoot(index, Heap::kUndefinedValueRootIndex, &gotta_call_runtime); 1357 __ JumpIfRoot(index, Heap::kUndefinedValueRootIndex, &gotta_call_runtime);
1358 1358
1359 __ Ldr(map, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1359 __ Ldr(map, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1360 __ Ldr(map, 1360 __ Ldr(map,
1361 FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); 1361 FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset));
1362 __ Ldrsw(index, UntagSmiFieldMemOperand(map, FixedArray::kLengthOffset)); 1362 __ Ldrsw(index, UntagSmiFieldMemOperand(map, FixedArray::kLengthOffset));
1363 __ Cmp(index, Operand(2)); 1363 __ Cmp(index, Operand(2));
1364 __ B(lt, &try_shared); 1364 __ B(lt, &gotta_call_runtime);
1365 1365
1366 // x3 : native context 1366 // x3 : native context
1367 // x2 : length / index 1367 // x2 : length / index
1368 // x13 : optimized code map 1368 // x13 : optimized code map
1369 // stack[0] : new target 1369 // stack[0] : new target
1370 // stack[4] : closure 1370 // stack[4] : closure
1371 Register native_context = x4; 1371 Register native_context = x4;
1372 __ Ldr(native_context, NativeContextMemOperand()); 1372 __ Ldr(native_context, NativeContextMemOperand());
1373 1373
1374 __ Bind(&loop_top); 1374 __ Bind(&loop_top);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 __ Mov(x5, closure); 1413 __ Mov(x5, closure);
1414 __ RecordWriteContextSlot(native_context, function_list_offset, x5, x13, 1414 __ RecordWriteContextSlot(native_context, function_list_offset, x5, x13,
1415 kLRHasNotBeenSaved, kDontSaveFPRegs); 1415 kLRHasNotBeenSaved, kDontSaveFPRegs);
1416 __ Jump(entry); 1416 __ Jump(entry);
1417 1417
1418 __ Bind(&loop_bottom); 1418 __ Bind(&loop_bottom);
1419 __ Sub(index, index, Operand(SharedFunctionInfo::kEntryLength)); 1419 __ Sub(index, index, Operand(SharedFunctionInfo::kEntryLength));
1420 __ Cmp(index, Operand(1)); 1420 __ Cmp(index, Operand(1));
1421 __ B(gt, &loop_top); 1421 __ B(gt, &loop_top);
1422 1422
1423 // We found no code. Try the SharedFunctionInfo. 1423 // We found no code.
1424 __ B(&gotta_call_runtime);
1425
1424 __ Bind(&try_shared); 1426 __ Bind(&try_shared);
1425 __ Ldr(entry, 1427 __ Ldr(entry,
1426 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1428 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1427 // Is the shared function marked for tier up? 1429 // Is the shared function marked for tier up?
1428 __ Ldrb(temp, FieldMemOperand( 1430 __ Ldrb(temp, FieldMemOperand(
1429 entry, SharedFunctionInfo::kMarkedForTierUpByteOffset)); 1431 entry, SharedFunctionInfo::kMarkedForTierUpByteOffset));
1430 __ TestAndBranchIfAnySet( 1432 __ TestAndBranchIfAnySet(
1431 temp, 1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte, 1433 temp, 1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte,
1432 &gotta_call_runtime); 1434 &gotta_call_runtime);
1433 1435
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
3131 __ Unreachable(); 3133 __ Unreachable();
3132 } 3134 }
3133 } 3135 }
3134 3136
3135 #undef __ 3137 #undef __
3136 3138
3137 } // namespace internal 3139 } // namespace internal
3138 } // namespace v8 3140 } // namespace v8
3139 3141
3140 #endif // V8_TARGET_ARCH_ARM 3142 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/builtins/arm/builtins-arm.cc ('k') | src/builtins/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698