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

Side by Side Diff: src/builtins/arm/builtins-arm.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 | « no previous file | src/builtins/arm64/builtins-arm64.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 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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 1350
1351 __ push(argument_count); 1351 __ push(argument_count);
1352 __ push(new_target); 1352 __ push(new_target);
1353 __ push(closure); 1353 __ push(closure);
1354 1354
1355 __ ldr(map, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1355 __ ldr(map, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1356 __ ldr(map, 1356 __ ldr(map,
1357 FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); 1357 FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset));
1358 __ ldr(index, FieldMemOperand(map, FixedArray::kLengthOffset)); 1358 __ ldr(index, FieldMemOperand(map, FixedArray::kLengthOffset));
1359 __ cmp(index, Operand(Smi::FromInt(2))); 1359 __ cmp(index, Operand(Smi::FromInt(2)));
1360 __ b(lt, &try_shared); 1360 __ b(lt, &gotta_call_runtime);
1361 1361
1362 // r3 : native context 1362 // r3 : native context
1363 // r2 : length / index 1363 // r2 : length / index
1364 // r0 : optimized code map 1364 // r0 : optimized code map
1365 // stack[0] : new target 1365 // stack[0] : new target
1366 // stack[4] : closure 1366 // stack[4] : closure
1367 Register native_context = r3; 1367 Register native_context = r3;
1368 __ ldr(native_context, NativeContextMemOperand()); 1368 __ ldr(native_context, NativeContextMemOperand());
1369 1369
1370 __ bind(&loop_top); 1370 __ bind(&loop_top);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 __ mov(closure, r5); 1415 __ mov(closure, r5);
1416 __ pop(new_target); 1416 __ pop(new_target);
1417 __ pop(argument_count); 1417 __ pop(argument_count);
1418 __ Jump(entry); 1418 __ Jump(entry);
1419 1419
1420 __ bind(&loop_bottom); 1420 __ bind(&loop_bottom);
1421 __ sub(index, index, Operand(Smi::FromInt(SharedFunctionInfo::kEntryLength))); 1421 __ sub(index, index, Operand(Smi::FromInt(SharedFunctionInfo::kEntryLength)));
1422 __ cmp(index, Operand(Smi::FromInt(1))); 1422 __ cmp(index, Operand(Smi::FromInt(1)));
1423 __ b(gt, &loop_top); 1423 __ b(gt, &loop_top);
1424 1424
1425 // We found no code. Try the SharedFunctionInfo. 1425 // We found no code.
1426 __ jmp(&gotta_call_runtime);
1427
1426 __ bind(&try_shared); 1428 __ bind(&try_shared);
1427 __ pop(closure); 1429 __ pop(closure);
1428 __ pop(new_target); 1430 __ pop(new_target);
1429 __ pop(argument_count); 1431 __ pop(argument_count);
1430 __ ldr(entry, 1432 __ ldr(entry,
1431 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1433 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1432 // Is the shared function marked for tier up? 1434 // Is the shared function marked for tier up?
1433 __ ldrb(r5, FieldMemOperand(entry, 1435 __ ldrb(r5, FieldMemOperand(entry,
1434 SharedFunctionInfo::kMarkedForTierUpByteOffset)); 1436 SharedFunctionInfo::kMarkedForTierUpByteOffset));
1435 __ tst(r5, Operand(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte)); 1437 __ tst(r5, Operand(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte));
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
3022 __ bkpt(0); 3024 __ bkpt(0);
3023 } 3025 }
3024 } 3026 }
3025 3027
3026 #undef __ 3028 #undef __
3027 3029
3028 } // namespace internal 3030 } // namespace internal
3029 } // namespace v8 3031 } // namespace v8
3030 3032
3031 #endif // V8_TARGET_ARCH_ARM 3033 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698