OLD | NEW |
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_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 void Allocate(int object_size, | 548 void Allocate(int object_size, |
549 Register result, | 549 Register result, |
550 Register scratch1, | 550 Register scratch1, |
551 Register scratch2, | 551 Register scratch2, |
552 Label* gc_required, | 552 Label* gc_required, |
553 AllocationFlags flags); | 553 AllocationFlags flags); |
554 | 554 |
555 void Allocate(Register object_size, Register result, Register result_new, | 555 void Allocate(Register object_size, Register result, Register result_new, |
556 Register scratch, Label* gc_required, AllocationFlags flags); | 556 Register scratch, Label* gc_required, AllocationFlags flags); |
557 | 557 |
| 558 // FastAllocate is right now only used for folded allocations. It just |
| 559 // increments the top pointer without checking against limit. This can only |
| 560 // be done if it was proved earlier that the allocation will succeed. |
| 561 void FastAllocate(int object_size, Register result, Register scratch1, |
| 562 Register scratch2, AllocationFlags flags); |
| 563 |
| 564 void FastAllocate(Register object_size, Register result, Register result_new, |
| 565 Register scratch, AllocationFlags flags); |
| 566 |
558 void AllocateTwoByteString(Register result, | 567 void AllocateTwoByteString(Register result, |
559 Register length, | 568 Register length, |
560 Register scratch1, | 569 Register scratch1, |
561 Register scratch2, | 570 Register scratch2, |
562 Register scratch3, | 571 Register scratch3, |
563 Label* gc_required); | 572 Label* gc_required); |
564 void AllocateOneByteString(Register result, Register length, | 573 void AllocateOneByteString(Register result, Register length, |
565 Register scratch1, Register scratch2, | 574 Register scratch1, Register scratch2, |
566 Register scratch3, Label* gc_required); | 575 Register scratch3, Label* gc_required); |
567 void AllocateTwoByteConsString(Register result, | 576 void AllocateTwoByteConsString(Register result, |
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1887 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1879 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1888 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1880 #else | 1889 #else |
1881 #define ACCESS_MASM(masm) masm-> | 1890 #define ACCESS_MASM(masm) masm-> |
1882 #endif | 1891 #endif |
1883 | 1892 |
1884 } // namespace internal | 1893 } // namespace internal |
1885 } // namespace v8 | 1894 } // namespace v8 |
1886 | 1895 |
1887 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1896 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |