| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 4397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4408 } | 4408 } |
| 4409 | 4409 |
| 4410 | 4410 |
| 4411 bool CEntryStub::IsPregenerated() { | 4411 bool CEntryStub::IsPregenerated() { |
| 4412 return (!save_doubles_ || ISOLATE->fp_stubs_generated()) && | 4412 return (!save_doubles_ || ISOLATE->fp_stubs_generated()) && |
| 4413 result_size_ == 1; | 4413 result_size_ == 1; |
| 4414 } | 4414 } |
| 4415 | 4415 |
| 4416 | 4416 |
| 4417 void CodeStub::GenerateStubsAheadOfTime() { | 4417 void CodeStub::GenerateStubsAheadOfTime() { |
| 4418 CEntryStub::GenerateFixedRegStubsAheadOfTime(); |
| 4418 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); | 4419 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); |
| 4419 // It is important that the store buffer overflow stubs are generated first. | 4420 // It is important that the store buffer overflow stubs are generated first. |
| 4420 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); | 4421 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); |
| 4421 } | 4422 } |
| 4422 | 4423 |
| 4423 | 4424 |
| 4424 void CodeStub::GenerateFPStubs() { | 4425 void CodeStub::GenerateFPStubs() { |
| 4425 CEntryStub save_doubles(1, kSaveFPRegs); | 4426 CEntryStub save_doubles(1, kSaveFPRegs); |
| 4426 Handle<Code> code = save_doubles.GetCode(); | 4427 Handle<Code> code = save_doubles.GetCode(); |
| 4427 code->set_is_pregenerated(true); | 4428 code->set_is_pregenerated(true); |
| 4428 code->GetIsolate()->set_fp_stubs_generated(true); | 4429 code->GetIsolate()->set_fp_stubs_generated(true); |
| 4429 } | 4430 } |
| 4430 | 4431 |
| 4431 | 4432 |
| 4433 void CEntryStub::GenerateFixedRegStubsAheadOfTime() { |
| 4434 CEntryStub stub(1, kDontSaveFPRegs); |
| 4435 Handle<Code> code = stub.GetCode(); |
| 4436 code->set_is_pregenerated(true); |
| 4437 } |
| 4438 |
| 4439 |
| 4432 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { | 4440 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { |
| 4433 __ Throw(eax); | 4441 __ Throw(eax); |
| 4434 } | 4442 } |
| 4435 | 4443 |
| 4436 | 4444 |
| 4437 void CEntryStub::GenerateCore(MacroAssembler* masm, | 4445 void CEntryStub::GenerateCore(MacroAssembler* masm, |
| 4438 Label* throw_normal_exception, | 4446 Label* throw_normal_exception, |
| 4439 Label* throw_termination_exception, | 4447 Label* throw_termination_exception, |
| 4440 Label* throw_out_of_memory_exception, | 4448 Label* throw_out_of_memory_exception, |
| 4441 bool do_gc, | 4449 bool do_gc, |
| (...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6923 | 6931 |
| 6924 // Fall through when we need to inform the incremental marker. | 6932 // Fall through when we need to inform the incremental marker. |
| 6925 } | 6933 } |
| 6926 | 6934 |
| 6927 | 6935 |
| 6928 #undef __ | 6936 #undef __ |
| 6929 | 6937 |
| 6930 } } // namespace v8::internal | 6938 } } // namespace v8::internal |
| 6931 | 6939 |
| 6932 #endif // V8_TARGET_ARCH_IA32 | 6940 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |