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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 // Yes, install the full code. | 1374 // Yes, install the full code. |
1375 __ addi(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1375 __ addi(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); |
1376 __ StoreP(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset), r0); | 1376 __ StoreP(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset), r0); |
1377 __ RecordWriteCodeEntryField(closure, entry, r8); | 1377 __ RecordWriteCodeEntryField(closure, entry, r8); |
1378 __ JumpToJSEntry(entry); | 1378 __ JumpToJSEntry(entry); |
1379 | 1379 |
1380 __ bind(&gotta_call_runtime); | 1380 __ bind(&gotta_call_runtime); |
1381 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); | 1381 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); |
1382 } | 1382 } |
1383 | 1383 |
| 1384 void Builtins::Generate_CompileBaseline(MacroAssembler* masm) { |
| 1385 GenerateTailCallToReturnedCode(masm, Runtime::kCompileBaseline); |
| 1386 } |
1384 | 1387 |
1385 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { | 1388 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { |
1386 GenerateTailCallToReturnedCode(masm, | 1389 GenerateTailCallToReturnedCode(masm, |
1387 Runtime::kCompileOptimized_NotConcurrent); | 1390 Runtime::kCompileOptimized_NotConcurrent); |
1388 } | 1391 } |
1389 | 1392 |
1390 | 1393 |
1391 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { | 1394 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { |
1392 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); | 1395 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); |
1393 } | 1396 } |
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2852 __ bkpt(0); | 2855 __ bkpt(0); |
2853 } | 2856 } |
2854 } | 2857 } |
2855 | 2858 |
2856 | 2859 |
2857 #undef __ | 2860 #undef __ |
2858 } // namespace internal | 2861 } // namespace internal |
2859 } // namespace v8 | 2862 } // namespace v8 |
2860 | 2863 |
2861 #endif // V8_TARGET_ARCH_PPC | 2864 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |