OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4423 __ SetCallKind(ecx, CALL_AS_METHOD); | 4423 __ SetCallKind(ecx, CALL_AS_METHOD); |
4424 __ jmp(arguments_adaptor, RelocInfo::CODE_TARGET); | 4424 __ jmp(arguments_adaptor, RelocInfo::CODE_TARGET); |
4425 } | 4425 } |
4426 | 4426 |
4427 | 4427 |
4428 bool CEntryStub::NeedsImmovableCode() { | 4428 bool CEntryStub::NeedsImmovableCode() { |
4429 return false; | 4429 return false; |
4430 } | 4430 } |
4431 | 4431 |
4432 | 4432 |
4433 bool CEntryStub::IsPregenerated() { | 4433 bool CEntryStub::IsPregenerated(Isolate* isolate) { |
4434 return (!save_doubles_ || Isolate::Current()->fp_stubs_generated()) && | 4434 return (!save_doubles_ || isolate->fp_stubs_generated()) && |
4435 result_size_ == 1; | 4435 result_size_ == 1; |
4436 } | 4436 } |
4437 | 4437 |
4438 | 4438 |
4439 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { | 4439 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
4440 CEntryStub::GenerateAheadOfTime(isolate); | 4440 CEntryStub::GenerateAheadOfTime(isolate); |
4441 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); | 4441 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); |
4442 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); | 4442 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); |
4443 // It is important that the store buffer overflow stubs are generated first. | 4443 // It is important that the store buffer overflow stubs are generated first. |
4444 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); | 4444 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); |
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6840 // FastNewClosureStub and StringAddStub::Generate | 6840 // FastNewClosureStub and StringAddStub::Generate |
6841 { REG(ecx), REG(edx), REG(ebx), EMIT_REMEMBERED_SET}, | 6841 { REG(ecx), REG(edx), REG(ebx), EMIT_REMEMBERED_SET}, |
6842 // StringAddStub::Generate | 6842 // StringAddStub::Generate |
6843 { REG(ecx), REG(eax), REG(ebx), EMIT_REMEMBERED_SET}, | 6843 { REG(ecx), REG(eax), REG(ebx), EMIT_REMEMBERED_SET}, |
6844 // Null termination. | 6844 // Null termination. |
6845 { REG(no_reg), REG(no_reg), REG(no_reg), EMIT_REMEMBERED_SET} | 6845 { REG(no_reg), REG(no_reg), REG(no_reg), EMIT_REMEMBERED_SET} |
6846 }; | 6846 }; |
6847 | 6847 |
6848 #undef REG | 6848 #undef REG |
6849 | 6849 |
6850 bool RecordWriteStub::IsPregenerated() { | 6850 bool RecordWriteStub::IsPregenerated(Isolate* isolate) { |
6851 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; | 6851 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; |
6852 !entry->object.is(no_reg); | 6852 !entry->object.is(no_reg); |
6853 entry++) { | 6853 entry++) { |
6854 if (object_.is(entry->object) && | 6854 if (object_.is(entry->object) && |
6855 value_.is(entry->value) && | 6855 value_.is(entry->value) && |
6856 address_.is(entry->address) && | 6856 address_.is(entry->address) && |
6857 remembered_set_action_ == entry->action && | 6857 remembered_set_action_ == entry->action && |
6858 save_fp_regs_mode_ == kDontSaveFPRegs) { | 6858 save_fp_regs_mode_ == kDontSaveFPRegs) { |
6859 return true; | 6859 return true; |
6860 } | 6860 } |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7530 __ bind(&fast_elements_case); | 7530 __ bind(&fast_elements_case); |
7531 GenerateCase(masm, FAST_ELEMENTS); | 7531 GenerateCase(masm, FAST_ELEMENTS); |
7532 } | 7532 } |
7533 | 7533 |
7534 | 7534 |
7535 #undef __ | 7535 #undef __ |
7536 | 7536 |
7537 } } // namespace v8::internal | 7537 } } // namespace v8::internal |
7538 | 7538 |
7539 #endif // V8_TARGET_ARCH_IA32 | 7539 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |