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

Side by Side Diff: src/builtins/s390/builtins-s390.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/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_S390 5 #if V8_TARGET_ARCH_S390
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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 __ LoadP(index, FieldMemOperand(closure, JSFunction::kLiteralsOffset)); 1373 __ LoadP(index, FieldMemOperand(closure, JSFunction::kLiteralsOffset));
1374 __ LoadP(index, FieldMemOperand(index, LiteralsArray::kFeedbackVectorOffset)); 1374 __ LoadP(index, FieldMemOperand(index, LiteralsArray::kFeedbackVectorOffset));
1375 __ JumpIfRoot(index, Heap::kUndefinedValueRootIndex, &gotta_call_runtime); 1375 __ JumpIfRoot(index, Heap::kUndefinedValueRootIndex, &gotta_call_runtime);
1376 1376
1377 __ LoadP(map, 1377 __ LoadP(map,
1378 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1378 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1379 __ LoadP(map, 1379 __ LoadP(map,
1380 FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); 1380 FieldMemOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset));
1381 __ LoadP(index, FieldMemOperand(map, FixedArray::kLengthOffset)); 1381 __ LoadP(index, FieldMemOperand(map, FixedArray::kLengthOffset));
1382 __ CmpSmiLiteral(index, Smi::FromInt(2), r0); 1382 __ CmpSmiLiteral(index, Smi::FromInt(2), r0);
1383 __ blt(&try_shared); 1383 __ blt(&gotta_call_runtime);
1384 1384
1385 // Find literals. 1385 // Find literals.
1386 // r9 : native context 1386 // r9 : native context
1387 // r4 : length / index 1387 // r4 : length / index
1388 // r8 : optimized code map 1388 // r8 : optimized code map
1389 // r5 : new target 1389 // r5 : new target
1390 // r3 : closure 1390 // r3 : closure
1391 Register native_context = r9; 1391 Register native_context = r9;
1392 __ LoadP(native_context, NativeContextMemOperand()); 1392 __ LoadP(native_context, NativeContextMemOperand());
1393 1393
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 __ RecordWriteContextSlot(native_context, function_list_offset, r7, temp, 1439 __ RecordWriteContextSlot(native_context, function_list_offset, r7, temp,
1440 kLRHasNotBeenSaved, kDontSaveFPRegs); 1440 kLRHasNotBeenSaved, kDontSaveFPRegs);
1441 __ JumpToJSEntry(entry); 1441 __ JumpToJSEntry(entry);
1442 1442
1443 __ bind(&loop_bottom); 1443 __ bind(&loop_bottom);
1444 __ SubSmiLiteral(index, index, Smi::FromInt(SharedFunctionInfo::kEntryLength), 1444 __ SubSmiLiteral(index, index, Smi::FromInt(SharedFunctionInfo::kEntryLength),
1445 r0); 1445 r0);
1446 __ CmpSmiLiteral(index, Smi::FromInt(1), r0); 1446 __ CmpSmiLiteral(index, Smi::FromInt(1), r0);
1447 __ bgt(&loop_top); 1447 __ bgt(&loop_top);
1448 1448
1449 // We found no code. Try the SharedFunctionInfo. 1449 // We found no code.
1450 __ b(&gotta_call_runtime);
1451
1450 __ bind(&try_shared); 1452 __ bind(&try_shared);
1451 __ LoadP(entry, 1453 __ LoadP(entry,
1452 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1454 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1453 // Is the shared function marked for tier up? 1455 // Is the shared function marked for tier up?
1454 __ LoadlB(temp, FieldMemOperand( 1456 __ LoadlB(temp, FieldMemOperand(
1455 entry, SharedFunctionInfo::kMarkedForTierUpByteOffset)); 1457 entry, SharedFunctionInfo::kMarkedForTierUpByteOffset));
1456 __ TestBit(temp, SharedFunctionInfo::kMarkedForTierUpBitWithinByte, r0); 1458 __ TestBit(temp, SharedFunctionInfo::kMarkedForTierUpBitWithinByte, r0);
1457 __ bne(&gotta_call_runtime); 1459 __ bne(&gotta_call_runtime);
1458 1460
1459 // If SFI points to anything other than CompileLazy, install that. 1461 // If SFI points to anything other than CompileLazy, install that.
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2979 __ bkpt(0); 2981 __ bkpt(0);
2980 } 2982 }
2981 } 2983 }
2982 2984
2983 #undef __ 2985 #undef __
2984 2986
2985 } // namespace internal 2987 } // namespace internal
2986 } // namespace v8 2988 } // namespace v8
2987 2989
2988 #endif // V8_TARGET_ARCH_S390 2990 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698