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

Side by Side Diff: src/builtins/mips64/builtins-mips64.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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 1466
1467 // We found neither literals nor code. 1467 // We found neither literals nor code.
1468 __ jmp(&gotta_call_runtime); 1468 __ jmp(&gotta_call_runtime);
1469 1469
1470 __ bind(&try_shared); 1470 __ bind(&try_shared);
1471 __ pop(closure); 1471 __ pop(closure);
1472 __ pop(new_target); 1472 __ pop(new_target);
1473 __ pop(argument_count); 1473 __ pop(argument_count);
1474 __ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1474 __ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1475 // Is the shared function marked for optimization? 1475 // Is the shared function marked for optimization?
1476 __ lbu(a5, 1476 __ lbu(a5, FieldMemOperand(
1477 FieldMemOperand( 1477 entry, SharedFunctionInfo::kWasMarkedForTierUpByteOffset));
1478 entry, SharedFunctionInfo::kWasMarkedForOptimizationByteOffset)); 1478 __ And(a5, a5,
1479 __ And( 1479 Operand(1 << SharedFunctionInfo::kWasMarkedForTierUpBitWithinByte));
1480 a5, a5,
1481 Operand(1 << SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte));
1482 __ Branch(&gotta_call_runtime_no_stack, ne, a5, Operand(zero_reg)); 1480 __ Branch(&gotta_call_runtime_no_stack, ne, a5, Operand(zero_reg));
1483 // Is the full code valid? 1481 // Is the full code valid?
1484 __ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); 1482 __ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
1485 __ lw(a5, FieldMemOperand(entry, Code::kFlagsOffset)); 1483 __ lw(a5, FieldMemOperand(entry, Code::kFlagsOffset));
1486 __ And(a5, a5, Operand(Code::KindField::kMask)); 1484 __ And(a5, a5, Operand(Code::KindField::kMask));
1487 __ dsrl(a5, a5, Code::KindField::kShift); 1485 __ dsrl(a5, a5, Code::KindField::kShift);
1488 __ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN)); 1486 __ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN));
1489 // Yes, install the full code. 1487 // Yes, install the full code.
1490 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); 1488 __ Daddu(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag));
1491 __ sd(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset)); 1489 __ sd(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset));
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2985 __ break_(0xCC); 2983 __ break_(0xCC);
2986 } 2984 }
2987 } 2985 }
2988 2986
2989 #undef __ 2987 #undef __
2990 2988
2991 } // namespace internal 2989 } // namespace internal
2992 } // namespace v8 2990 } // namespace v8
2993 2991
2994 #endif // V8_TARGET_ARCH_MIPS64 2992 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698