| 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->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 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6805 | 6805 |
| 6806 | 6806 |
| 6807 #define REG(Name) { kRegister_ ## Name ## _Code } | 6807 #define REG(Name) { kRegister_ ## Name ## _Code } |
| 6808 | 6808 |
| 6809 static const AheadOfTimeWriteBarrierStubList kAheadOfTime[] = { | 6809 static const AheadOfTimeWriteBarrierStubList kAheadOfTime[] = { |
| 6810 // Used in RegExpExecStub. | 6810 // Used in RegExpExecStub. |
| 6811 { REG(ebx), REG(eax), REG(edi), EMIT_REMEMBERED_SET }, | 6811 { REG(ebx), REG(eax), REG(edi), EMIT_REMEMBERED_SET }, |
| 6812 // Used in CompileArrayPushCall. | 6812 // Used in CompileArrayPushCall. |
| 6813 { REG(ebx), REG(ecx), REG(edx), EMIT_REMEMBERED_SET }, | 6813 { REG(ebx), REG(ecx), REG(edx), EMIT_REMEMBERED_SET }, |
| 6814 { REG(ebx), REG(edi), REG(edx), OMIT_REMEMBERED_SET }, | 6814 { REG(ebx), REG(edi), REG(edx), OMIT_REMEMBERED_SET }, |
| 6815 // Used in CompileStoreGlobal and CallFunctionStub. | |
| 6816 { REG(ebx), REG(ecx), REG(edx), OMIT_REMEMBERED_SET }, | |
| 6817 // Used in StoreStubCompiler::CompileStoreField and | 6815 // Used in StoreStubCompiler::CompileStoreField and |
| 6818 // KeyedStoreStubCompiler::CompileStoreField via GenerateStoreField. | 6816 // KeyedStoreStubCompiler::CompileStoreField via GenerateStoreField. |
| 6819 { REG(edx), REG(ecx), REG(ebx), EMIT_REMEMBERED_SET }, | 6817 { REG(edx), REG(ecx), REG(ebx), EMIT_REMEMBERED_SET }, |
| 6820 // GenerateStoreField calls the stub with two different permutations of | 6818 // GenerateStoreField calls the stub with two different permutations of |
| 6821 // registers. This is the second. | 6819 // registers. This is the second. |
| 6822 { REG(ebx), REG(ecx), REG(edx), EMIT_REMEMBERED_SET }, | 6820 { REG(ebx), REG(ecx), REG(edx), EMIT_REMEMBERED_SET }, |
| 6823 // StoreIC::GenerateNormal via GenerateDictionaryStore | 6821 // StoreIC::GenerateNormal via GenerateDictionaryStore |
| 6824 { REG(ebx), REG(edi), REG(edx), EMIT_REMEMBERED_SET }, | 6822 { REG(ebx), REG(edi), REG(edx), EMIT_REMEMBERED_SET }, |
| 6825 // KeyedStoreIC::GenerateGeneric. | 6823 // KeyedStoreIC::GenerateGeneric. |
| 6826 { REG(ebx), REG(edx), REG(ecx), EMIT_REMEMBERED_SET}, | 6824 { REG(ebx), REG(edx), REG(ecx), EMIT_REMEMBERED_SET}, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6840 // FastNewClosureStub and StringAddStub::Generate | 6838 // FastNewClosureStub and StringAddStub::Generate |
| 6841 { REG(ecx), REG(edx), REG(ebx), EMIT_REMEMBERED_SET}, | 6839 { REG(ecx), REG(edx), REG(ebx), EMIT_REMEMBERED_SET}, |
| 6842 // StringAddStub::Generate | 6840 // StringAddStub::Generate |
| 6843 { REG(ecx), REG(eax), REG(ebx), EMIT_REMEMBERED_SET}, | 6841 { REG(ecx), REG(eax), REG(ebx), EMIT_REMEMBERED_SET}, |
| 6844 // Null termination. | 6842 // Null termination. |
| 6845 { REG(no_reg), REG(no_reg), REG(no_reg), EMIT_REMEMBERED_SET} | 6843 { REG(no_reg), REG(no_reg), REG(no_reg), EMIT_REMEMBERED_SET} |
| 6846 }; | 6844 }; |
| 6847 | 6845 |
| 6848 #undef REG | 6846 #undef REG |
| 6849 | 6847 |
| 6850 bool RecordWriteStub::IsPregenerated() { | 6848 bool RecordWriteStub::IsPregenerated(Isolate* isolate) { |
| 6851 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; | 6849 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; |
| 6852 !entry->object.is(no_reg); | 6850 !entry->object.is(no_reg); |
| 6853 entry++) { | 6851 entry++) { |
| 6854 if (object_.is(entry->object) && | 6852 if (object_.is(entry->object) && |
| 6855 value_.is(entry->value) && | 6853 value_.is(entry->value) && |
| 6856 address_.is(entry->address) && | 6854 address_.is(entry->address) && |
| 6857 remembered_set_action_ == entry->action && | 6855 remembered_set_action_ == entry->action && |
| 6858 save_fp_regs_mode_ == kDontSaveFPRegs) { | 6856 save_fp_regs_mode_ == kDontSaveFPRegs) { |
| 6859 return true; | 6857 return true; |
| 6860 } | 6858 } |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7530 __ bind(&fast_elements_case); | 7528 __ bind(&fast_elements_case); |
| 7531 GenerateCase(masm, FAST_ELEMENTS); | 7529 GenerateCase(masm, FAST_ELEMENTS); |
| 7532 } | 7530 } |
| 7533 | 7531 |
| 7534 | 7532 |
| 7535 #undef __ | 7533 #undef __ |
| 7536 | 7534 |
| 7537 } } // namespace v8::internal | 7535 } } // namespace v8::internal |
| 7538 | 7536 |
| 7539 #endif // V8_TARGET_ARCH_IA32 | 7537 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |