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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 __ eor(result_reg, result_reg, Operand(scratch_high, ASR, 31)); | 615 __ eor(result_reg, result_reg, Operand(scratch_high, ASR, 31)); |
616 __ add(result_reg, result_reg, Operand(scratch_high, LSR, 31)); | 616 __ add(result_reg, result_reg, Operand(scratch_high, LSR, 31)); |
617 | 617 |
618 __ bind(&done); | 618 __ bind(&done); |
619 | 619 |
620 __ Pop(scratch_high, scratch_low); | 620 __ Pop(scratch_high, scratch_low); |
621 __ Ret(); | 621 __ Ret(); |
622 } | 622 } |
623 | 623 |
624 | 624 |
625 bool WriteInt32ToHeapNumberStub::IsPregenerated() { | 625 bool WriteInt32ToHeapNumberStub::IsPregenerated(Isolate* isolate) { |
626 // These variants are compiled ahead of time. See next method. | 626 // These variants are compiled ahead of time. See next method. |
627 if (the_int_.is(r1) && the_heap_number_.is(r0) && scratch_.is(r2)) { | 627 if (the_int_.is(r1) && the_heap_number_.is(r0) && scratch_.is(r2)) { |
628 return true; | 628 return true; |
629 } | 629 } |
630 if (the_int_.is(r2) && the_heap_number_.is(r0) && scratch_.is(r3)) { | 630 if (the_int_.is(r2) && the_heap_number_.is(r0) && scratch_.is(r3)) { |
631 return true; | 631 return true; |
632 } | 632 } |
633 // Other register combinations are generated as and when they are needed, | 633 // Other register combinations are generated as and when they are needed, |
634 // so it is unsafe to call them from stubs (we can't generate a stub while | 634 // so it is unsafe to call them from stubs (we can't generate a stub while |
635 // we are generating a stub). | 635 // we are generating a stub). |
(...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2687 __ Ret(); | 2687 __ Ret(); |
2688 } | 2688 } |
2689 } | 2689 } |
2690 | 2690 |
2691 | 2691 |
2692 bool CEntryStub::NeedsImmovableCode() { | 2692 bool CEntryStub::NeedsImmovableCode() { |
2693 return true; | 2693 return true; |
2694 } | 2694 } |
2695 | 2695 |
2696 | 2696 |
2697 bool CEntryStub::IsPregenerated() { | 2697 bool CEntryStub::IsPregenerated(Isolate* isolate) { |
2698 return (!save_doubles_ || Isolate::Current()->fp_stubs_generated()) && | 2698 return (!save_doubles_ || isolate->fp_stubs_generated()) && |
2699 result_size_ == 1; | 2699 result_size_ == 1; |
2700 } | 2700 } |
2701 | 2701 |
2702 | 2702 |
2703 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { | 2703 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
2704 CEntryStub::GenerateAheadOfTime(isolate); | 2704 CEntryStub::GenerateAheadOfTime(isolate); |
2705 WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(isolate); | 2705 WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(isolate); |
2706 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); | 2706 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); |
2707 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); | 2707 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); |
2708 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); | 2708 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); |
(...skipping 3741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6450 // StringAddStub::Generate | 6450 // StringAddStub::Generate |
6451 { REG(r7), REG(r1), REG(r4), EMIT_REMEMBERED_SET }, | 6451 { REG(r7), REG(r1), REG(r4), EMIT_REMEMBERED_SET }, |
6452 { REG(r7), REG(r0), REG(r4), EMIT_REMEMBERED_SET }, | 6452 { REG(r7), REG(r0), REG(r4), EMIT_REMEMBERED_SET }, |
6453 // Null termination. | 6453 // Null termination. |
6454 { REG(no_reg), REG(no_reg), REG(no_reg), EMIT_REMEMBERED_SET} | 6454 { REG(no_reg), REG(no_reg), REG(no_reg), EMIT_REMEMBERED_SET} |
6455 }; | 6455 }; |
6456 | 6456 |
6457 #undef REG | 6457 #undef REG |
6458 | 6458 |
6459 | 6459 |
6460 bool RecordWriteStub::IsPregenerated() { | 6460 bool RecordWriteStub::IsPregenerated(Isolate* isolate) { |
6461 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; | 6461 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; |
6462 !entry->object.is(no_reg); | 6462 !entry->object.is(no_reg); |
6463 entry++) { | 6463 entry++) { |
6464 if (object_.is(entry->object) && | 6464 if (object_.is(entry->object) && |
6465 value_.is(entry->value) && | 6465 value_.is(entry->value) && |
6466 address_.is(entry->address) && | 6466 address_.is(entry->address) && |
6467 remembered_set_action_ == entry->action && | 6467 remembered_set_action_ == entry->action && |
6468 save_fp_regs_mode_ == kDontSaveFPRegs) { | 6468 save_fp_regs_mode_ == kDontSaveFPRegs) { |
6469 return true; | 6469 return true; |
6470 } | 6470 } |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7134 __ bind(&fast_elements_case); | 7134 __ bind(&fast_elements_case); |
7135 GenerateCase(masm, FAST_ELEMENTS); | 7135 GenerateCase(masm, FAST_ELEMENTS); |
7136 } | 7136 } |
7137 | 7137 |
7138 | 7138 |
7139 #undef __ | 7139 #undef __ |
7140 | 7140 |
7141 } } // namespace v8::internal | 7141 } } // namespace v8::internal |
7142 | 7142 |
7143 #endif // V8_TARGET_ARCH_ARM | 7143 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |