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

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

Issue 2475203003: [compiler] Remove --ignition-preserve-bytecode flag. (Closed)
Patch Set: 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 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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 __ bind(&switch_to_different_code_kind); 1169 __ bind(&switch_to_different_code_kind);
1170 __ LeaveFrame(StackFrame::JAVA_SCRIPT); 1170 __ LeaveFrame(StackFrame::JAVA_SCRIPT);
1171 __ LoadP(r6, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); 1171 __ LoadP(r6, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset));
1172 __ LoadP(r6, FieldMemOperand(r6, SharedFunctionInfo::kCodeOffset)); 1172 __ LoadP(r6, FieldMemOperand(r6, SharedFunctionInfo::kCodeOffset));
1173 __ AddP(r6, r6, Operand(Code::kHeaderSize - kHeapObjectTag)); 1173 __ AddP(r6, r6, Operand(Code::kHeaderSize - kHeapObjectTag));
1174 __ StoreP(r6, FieldMemOperand(r3, JSFunction::kCodeEntryOffset), r0); 1174 __ StoreP(r6, FieldMemOperand(r3, JSFunction::kCodeEntryOffset), r0);
1175 __ RecordWriteCodeEntryField(r3, r6, r7); 1175 __ RecordWriteCodeEntryField(r3, r6, r7);
1176 __ JumpToJSEntry(r6); 1176 __ JumpToJSEntry(r6);
1177 } 1177 }
1178 1178
1179 void Builtins::Generate_InterpreterMarkBaselineOnReturn(MacroAssembler* masm) {
1180 // Save the function and context for call to CompileBaseline.
1181 __ LoadP(r3, MemOperand(fp, StandardFrameConstants::kFunctionOffset));
1182 __ LoadP(kContextRegister,
1183 MemOperand(fp, StandardFrameConstants::kContextOffset));
1184
1185 // Leave the frame before recompiling for baseline so that we don't count as
1186 // an activation on the stack.
1187 LeaveInterpreterFrame(masm, r4);
1188
1189 {
1190 FrameScope frame_scope(masm, StackFrame::INTERNAL);
1191 // Push return value.
1192 __ push(r2);
1193
1194 // Push function as argument and compile for baseline.
1195 __ push(r3);
1196 __ CallRuntime(Runtime::kCompileBaseline);
1197
1198 // Restore return value.
1199 __ pop(r2);
1200 }
1201 __ Ret();
1202 }
1203
1204 static void Generate_StackOverflowCheck(MacroAssembler* masm, Register num_args, 1179 static void Generate_StackOverflowCheck(MacroAssembler* masm, Register num_args,
1205 Register scratch, 1180 Register scratch,
1206 Label* stack_overflow) { 1181 Label* stack_overflow) {
1207 // Check the stack for overflow. We are not trying to catch 1182 // Check the stack for overflow. We are not trying to catch
1208 // interruptions (e.g. debug break and preemption) here, so the "real stack 1183 // interruptions (e.g. debug break and preemption) here, so the "real stack
1209 // limit" is checked. 1184 // limit" is checked.
1210 __ LoadRoot(scratch, Heap::kRealStackLimitRootIndex); 1185 __ LoadRoot(scratch, Heap::kRealStackLimitRootIndex);
1211 // Make scratch the space we have left. The stack might already be overflowed 1186 // Make scratch the space we have left. The stack might already be overflowed
1212 // here which will cause scratch to become negative. 1187 // here which will cause scratch to become negative.
1213 __ SubP(scratch, sp, scratch); 1188 __ SubP(scratch, sp, scratch);
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3012 __ bkpt(0); 2987 __ bkpt(0);
3013 } 2988 }
3014 } 2989 }
3015 2990
3016 #undef __ 2991 #undef __
3017 2992
3018 } // namespace internal 2993 } // namespace internal
3019 } // namespace v8 2994 } // namespace v8
3020 2995
3021 #endif // V8_TARGET_ARCH_S390 2996 #endif // V8_TARGET_ARCH_S390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698