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

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

Issue 2448933002: [compiler] Make SFI "optimize" flag a "tier up" flag (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 __ Cmp(index, Operand(1)); 1468 __ Cmp(index, Operand(1));
1469 __ B(gt, &loop_top); 1469 __ B(gt, &loop_top);
1470 1470
1471 // We found neither literals nor code. 1471 // We found neither literals nor code.
1472 __ B(&gotta_call_runtime); 1472 __ B(&gotta_call_runtime);
1473 1473
1474 __ Bind(&try_shared); 1474 __ Bind(&try_shared);
1475 __ Ldr(entry, 1475 __ Ldr(entry,
1476 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1476 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1477 // Is the shared function marked for optimization? 1477 // Is the shared function marked for optimization?
1478 __ Ldrb(temp, 1478 __ Ldrb(temp, FieldMemOperand(
1479 FieldMemOperand( 1479 entry, SharedFunctionInfo::kWasMarkedForTierUpByteOffset));
1480 entry, SharedFunctionInfo::kWasMarkedForOptimizationByteOffset));
1481 __ TestAndBranchIfAnySet( 1480 __ TestAndBranchIfAnySet(
1482 temp, 1 << SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte, 1481 temp, 1 << SharedFunctionInfo::kWasMarkedForTierUpBitWithinByte,
1483 &gotta_call_runtime); 1482 &gotta_call_runtime);
1484 // Is the full code valid? 1483 // Is the full code valid?
1485 __ Ldr(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); 1484 __ Ldr(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
1486 __ Ldr(x5, FieldMemOperand(entry, Code::kFlagsOffset)); 1485 __ Ldr(x5, FieldMemOperand(entry, Code::kFlagsOffset));
1487 __ and_(x5, x5, Operand(Code::KindField::kMask)); 1486 __ and_(x5, x5, Operand(Code::KindField::kMask));
1488 __ Mov(x5, Operand(x5, LSR, Code::KindField::kShift)); 1487 __ Mov(x5, Operand(x5, LSR, Code::KindField::kShift));
1489 __ Cmp(x5, Operand(Code::BUILTIN)); 1488 __ Cmp(x5, Operand(Code::BUILTIN));
1490 __ B(eq, &gotta_call_runtime); 1489 __ B(eq, &gotta_call_runtime);
1491 // Yes, install the full code. 1490 // Yes, install the full code.
1492 __ Add(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); 1491 __ Add(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag));
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
3012 __ Unreachable(); 3011 __ Unreachable();
3013 } 3012 }
3014 } 3013 }
3015 3014
3016 #undef __ 3015 #undef __
3017 3016
3018 } // namespace internal 3017 } // namespace internal
3019 } // namespace v8 3018 } // namespace v8
3020 3019
3021 #endif // V8_TARGET_ARCH_ARM 3020 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698