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

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

Issue 1969553003: X87: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 Register scratch, Label* gc_required, AllocationFlags flags); 622 Register scratch, Label* gc_required, AllocationFlags flags);
623 623
624 void Allocate(int header_size, ScaleFactor element_size, 624 void Allocate(int header_size, ScaleFactor element_size,
625 Register element_count, RegisterValueType element_count_type, 625 Register element_count, RegisterValueType element_count_type,
626 Register result, Register result_end, Register scratch, 626 Register result, Register result_end, Register scratch,
627 Label* gc_required, AllocationFlags flags); 627 Label* gc_required, AllocationFlags flags);
628 628
629 void Allocate(Register object_size, Register result, Register result_end, 629 void Allocate(Register object_size, Register result, Register result_end,
630 Register scratch, Label* gc_required, AllocationFlags flags); 630 Register scratch, Label* gc_required, AllocationFlags flags);
631 631
632 // FastAllocate is right now only used for folded allocations. It just
633 // increments the top pointer without checking against limit. This can only
634 // be done if it was proved earlier that the allocation will succeed.
632 void FastAllocate(int object_size, Register result, Register result_end, 635 void FastAllocate(int object_size, Register result, Register result_end,
633 AllocationFlags flags); 636 AllocationFlags flags);
634 void FastAllocate(Register object_size, Register result, Register result_end, 637 void FastAllocate(Register object_size, Register result, Register result_end,
635 AllocationFlags flags); 638 AllocationFlags flags);
636 639
637 // Allocate a heap number in new space with undefined value. The 640 // Allocate a heap number in new space with undefined value. The
638 // register scratch2 can be passed as no_reg; the others must be 641 // register scratch2 can be passed as no_reg; the others must be
639 // valid registers. Returns tagged pointer in result register, or 642 // valid registers. Returns tagged pointer in result register, or
640 // jumps to gc_required if new space is full. 643 // jumps to gc_required if new space is full.
641 void AllocateHeapNumber(Register result, Register scratch1, Register scratch2, 644 void AllocateHeapNumber(Register result, Register scratch1, Register scratch2,
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 } \ 1053 } \
1051 masm-> 1054 masm->
1052 #else 1055 #else
1053 #define ACCESS_MASM(masm) masm-> 1056 #define ACCESS_MASM(masm) masm->
1054 #endif 1057 #endif
1055 1058
1056 } // namespace internal 1059 } // namespace internal
1057 } // namespace v8 1060 } // namespace v8
1058 1061
1059 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1062 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« src/crankshaft/x87/lithium-codegen-x87.cc ('K') | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698