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/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 RestoreRegistersStateStub stub(isolate); | 864 RestoreRegistersStateStub stub(isolate); |
865 stub.GetCode(); | 865 stub.GetCode(); |
866 } | 866 } |
867 | 867 |
868 | 868 |
869 void CodeStub::GenerateFPStubs(Isolate* isolate) { | 869 void CodeStub::GenerateFPStubs(Isolate* isolate) { |
870 // Generate if not already in cache. | 870 // Generate if not already in cache. |
871 SaveFPRegsMode mode = kSaveFPRegs; | 871 SaveFPRegsMode mode = kSaveFPRegs; |
872 CEntryStub(isolate, 1, mode).GetCode(); | 872 CEntryStub(isolate, 1, mode).GetCode(); |
873 StoreBufferOverflowStub(isolate, mode).GetCode(); | 873 StoreBufferOverflowStub(isolate, mode).GetCode(); |
874 isolate->set_fp_stubs_generated(true); | |
875 } | 874 } |
876 | 875 |
877 | 876 |
878 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { | 877 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { |
879 CEntryStub stub(isolate, 1, kDontSaveFPRegs); | 878 CEntryStub stub(isolate, 1, kDontSaveFPRegs); |
880 stub.GetCode(); | 879 stub.GetCode(); |
881 } | 880 } |
882 | 881 |
883 | 882 |
884 void CEntryStub::Generate(MacroAssembler* masm) { | 883 void CEntryStub::Generate(MacroAssembler* masm) { |
(...skipping 3459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4344 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 4343 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
4345 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 4344 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
4346 kStackUnwindSpace, NULL, return_value_operand, NULL); | 4345 kStackUnwindSpace, NULL, return_value_operand, NULL); |
4347 } | 4346 } |
4348 | 4347 |
4349 #undef __ | 4348 #undef __ |
4350 } // namespace internal | 4349 } // namespace internal |
4351 } // namespace v8 | 4350 } // namespace v8 |
4352 | 4351 |
4353 #endif // V8_TARGET_ARCH_PPC | 4352 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |