| OLD | NEW |
| 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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 // Yes, install the full code. | 1355 // Yes, install the full code. |
| 1356 __ AddP(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1356 __ AddP(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 1357 __ StoreP(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset), r0); | 1357 __ StoreP(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset), r0); |
| 1358 __ RecordWriteCodeEntryField(closure, entry, r7); | 1358 __ RecordWriteCodeEntryField(closure, entry, r7); |
| 1359 __ JumpToJSEntry(entry); | 1359 __ JumpToJSEntry(entry); |
| 1360 | 1360 |
| 1361 __ bind(&gotta_call_runtime); | 1361 __ bind(&gotta_call_runtime); |
| 1362 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); | 1362 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); |
| 1363 } | 1363 } |
| 1364 | 1364 |
| 1365 void Builtins::Generate_CompileBaseline(MacroAssembler* masm) { |
| 1366 GenerateTailCallToReturnedCode(masm, Runtime::kCompileBaseline); |
| 1367 } |
| 1368 |
| 1365 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { | 1369 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { |
| 1366 GenerateTailCallToReturnedCode(masm, | 1370 GenerateTailCallToReturnedCode(masm, |
| 1367 Runtime::kCompileOptimized_NotConcurrent); | 1371 Runtime::kCompileOptimized_NotConcurrent); |
| 1368 } | 1372 } |
| 1369 | 1373 |
| 1370 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { | 1374 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { |
| 1371 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); | 1375 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); |
| 1372 } | 1376 } |
| 1373 | 1377 |
| 1374 static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) { | 1378 static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) { |
| (...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2805 __ bkpt(0); | 2809 __ bkpt(0); |
| 2806 } | 2810 } |
| 2807 } | 2811 } |
| 2808 | 2812 |
| 2809 #undef __ | 2813 #undef __ |
| 2810 | 2814 |
| 2811 } // namespace internal | 2815 } // namespace internal |
| 2812 } // namespace v8 | 2816 } // namespace v8 |
| 2813 | 2817 |
| 2814 #endif // V8_TARGET_ARCH_S390 | 2818 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |