OLD | NEW |
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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 | 1455 |
1456 | 1456 |
1457 void CodeStub::GenerateFPStubs(Isolate* isolate) { | 1457 void CodeStub::GenerateFPStubs(Isolate* isolate) { |
1458 CEntryStub save_doubles(isolate, 1, kSaveFPRegs); | 1458 CEntryStub save_doubles(isolate, 1, kSaveFPRegs); |
1459 // Stubs might already be in the snapshot, detect that and don't regenerate, | 1459 // Stubs might already be in the snapshot, detect that and don't regenerate, |
1460 // which would lead to code stub initialization state being messed up. | 1460 // which would lead to code stub initialization state being messed up. |
1461 Code* save_doubles_code; | 1461 Code* save_doubles_code; |
1462 if (!save_doubles.FindCodeInCache(&save_doubles_code)) { | 1462 if (!save_doubles.FindCodeInCache(&save_doubles_code)) { |
1463 save_doubles_code = *(save_doubles.GetCode()); | 1463 save_doubles_code = *(save_doubles.GetCode()); |
1464 } | 1464 } |
1465 isolate->set_fp_stubs_generated(true); | |
1466 } | 1465 } |
1467 | 1466 |
1468 | 1467 |
1469 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { | 1468 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { |
1470 CEntryStub stub(isolate, 1, kDontSaveFPRegs); | 1469 CEntryStub stub(isolate, 1, kDontSaveFPRegs); |
1471 stub.GetCode(); | 1470 stub.GetCode(); |
1472 } | 1471 } |
1473 | 1472 |
1474 | 1473 |
1475 void CEntryStub::Generate(MacroAssembler* masm) { | 1474 void CEntryStub::Generate(MacroAssembler* masm) { |
(...skipping 2522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3998 kStackUnwindSpace, nullptr, return_value_operand, | 3997 kStackUnwindSpace, nullptr, return_value_operand, |
3999 NULL); | 3998 NULL); |
4000 } | 3999 } |
4001 | 4000 |
4002 #undef __ | 4001 #undef __ |
4003 | 4002 |
4004 } // namespace internal | 4003 } // namespace internal |
4005 } // namespace v8 | 4004 } // namespace v8 |
4006 | 4005 |
4007 #endif // V8_TARGET_ARCH_X87 | 4006 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |