Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: src/ppc/macro-assembler-ppc.h

Issue 1970633002: PPC: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updated the if-else block Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 // label. The allocated object is returned in result. If the flag 704 // label. The allocated object is returned in result. If the flag
705 // tag_allocated_object is true the result is tagged as as a heap object. 705 // tag_allocated_object is true the result is tagged as as a heap object.
706 // All registers are clobbered also when control continues at the gc_required 706 // All registers are clobbered also when control continues at the gc_required
707 // label. 707 // label.
708 void Allocate(int object_size, Register result, Register scratch1, 708 void Allocate(int object_size, Register result, Register scratch1,
709 Register scratch2, Label* gc_required, AllocationFlags flags); 709 Register scratch2, Label* gc_required, AllocationFlags flags);
710 710
711 void Allocate(Register object_size, Register result, Register result_end, 711 void Allocate(Register object_size, Register result, Register result_end,
712 Register scratch, Label* gc_required, AllocationFlags flags); 712 Register scratch, Label* gc_required, AllocationFlags flags);
713 713
714 // FastAllocate is right now only used for folded allocations. It just
715 // increments the top pointer without checking against limit. This can only
716 // be done if it was proved earlier that the allocation will succeed.
717 void FastAllocate(int object_size, Register result, Register scratch1,
718 Register scratch2, AllocationFlags flags);
719
720 void FastAllocate(Register object_size, Register result, Register result_end,
721 Register scratch, AllocationFlags flags);
722
714 void AllocateTwoByteString(Register result, Register length, 723 void AllocateTwoByteString(Register result, Register length,
715 Register scratch1, Register scratch2, 724 Register scratch1, Register scratch2,
716 Register scratch3, Label* gc_required); 725 Register scratch3, Label* gc_required);
717 void AllocateOneByteString(Register result, Register length, 726 void AllocateOneByteString(Register result, Register length,
718 Register scratch1, Register scratch2, 727 Register scratch1, Register scratch2,
719 Register scratch3, Label* gc_required); 728 Register scratch3, Label* gc_required);
720 void AllocateTwoByteConsString(Register result, Register length, 729 void AllocateTwoByteConsString(Register result, Register length,
721 Register scratch1, Register scratch2, 730 Register scratch1, Register scratch2,
722 Label* gc_required); 731 Label* gc_required);
723 void AllocateOneByteConsString(Register result, Register length, 732 void AllocateOneByteConsString(Register result, Register length,
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 #define ACCESS_MASM(masm) \ 1667 #define ACCESS_MASM(masm) \
1659 masm->stop(__FILE_LINE__); \ 1668 masm->stop(__FILE_LINE__); \
1660 masm-> 1669 masm->
1661 #else 1670 #else
1662 #define ACCESS_MASM(masm) masm-> 1671 #define ACCESS_MASM(masm) masm->
1663 #endif 1672 #endif
1664 } // namespace internal 1673 } // namespace internal
1665 } // namespace v8 1674 } // namespace v8
1666 1675
1667 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ 1676 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698