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

Side by Side Diff: src/builtins/ia32/builtins-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 // We found neither literals nor code. 1156 // We found neither literals nor code.
1157 __ jmp(&gotta_call_runtime); 1157 __ jmp(&gotta_call_runtime);
1158 1158
1159 __ bind(&try_shared); 1159 __ bind(&try_shared);
1160 __ pop(closure); 1160 __ pop(closure);
1161 __ pop(new_target); 1161 __ pop(new_target);
1162 __ pop(argument_count); 1162 __ pop(argument_count);
1163 __ mov(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1163 __ mov(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1164 // Is the shared function marked for optimization? 1164 // Is the shared function marked for optimization?
1165 __ test_b( 1165 __ test_b(
1166 FieldOperand(entry, 1166 FieldOperand(entry, SharedFunctionInfo::kWasMarkedForTierUpByteOffset),
1167 SharedFunctionInfo::kWasMarkedForOptimizationByteOffset), 1167 Immediate(1 << SharedFunctionInfo::kWasMarkedForTierUpBitWithinByte));
1168 Immediate(
1169 1 << SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte));
1170 __ j(not_zero, &gotta_call_runtime_no_stack); 1168 __ j(not_zero, &gotta_call_runtime_no_stack);
1171 // Is the full code valid? 1169 // Is the full code valid?
1172 __ mov(entry, FieldOperand(entry, SharedFunctionInfo::kCodeOffset)); 1170 __ mov(entry, FieldOperand(entry, SharedFunctionInfo::kCodeOffset));
1173 __ mov(ebx, FieldOperand(entry, Code::kFlagsOffset)); 1171 __ mov(ebx, FieldOperand(entry, Code::kFlagsOffset));
1174 __ and_(ebx, Code::KindField::kMask); 1172 __ and_(ebx, Code::KindField::kMask);
1175 __ shr(ebx, Code::KindField::kShift); 1173 __ shr(ebx, Code::KindField::kShift);
1176 __ cmp(ebx, Immediate(Code::BUILTIN)); 1174 __ cmp(ebx, Immediate(Code::BUILTIN));
1177 __ j(equal, &gotta_call_runtime_no_stack); 1175 __ j(equal, &gotta_call_runtime_no_stack);
1178 // Yes, install the full code. 1176 // Yes, install the full code.
1179 __ lea(entry, FieldOperand(entry, Code::kHeaderSize)); 1177 __ lea(entry, FieldOperand(entry, Code::kHeaderSize));
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 3131
3134 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3132 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3135 Generate_OnStackReplacementHelper(masm, true); 3133 Generate_OnStackReplacementHelper(masm, true);
3136 } 3134 }
3137 3135
3138 #undef __ 3136 #undef __
3139 } // namespace internal 3137 } // namespace internal
3140 } // namespace v8 3138 } // namespace v8
3141 3139
3142 #endif // V8_TARGET_ARCH_IA32 3140 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698