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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 Label* gc_required, | 523 Label* gc_required, |
524 AllocationFlags flags); | 524 AllocationFlags flags); |
525 | 525 |
526 void Allocate(Register object_size, | 526 void Allocate(Register object_size, |
527 Register result, | 527 Register result, |
528 Register scratch1, | 528 Register scratch1, |
529 Register scratch2, | 529 Register scratch2, |
530 Label* gc_required, | 530 Label* gc_required, |
531 AllocationFlags flags); | 531 AllocationFlags flags); |
532 | 532 |
533 // Undo allocation in new space. The object passed and objects allocated after | |
534 // it will no longer be allocated. The caller must make sure that no pointers | |
535 // are left to the object(s) no longer allocated as they would be invalid when | |
536 // allocation is undone. | |
537 void UndoAllocationInNewSpace(Register object, Register scratch); | |
538 | |
539 | |
540 void AllocateTwoByteString(Register result, | 533 void AllocateTwoByteString(Register result, |
541 Register length, | 534 Register length, |
542 Register scratch1, | 535 Register scratch1, |
543 Register scratch2, | 536 Register scratch2, |
544 Register scratch3, | 537 Register scratch3, |
545 Label* gc_required); | 538 Label* gc_required); |
546 void AllocateOneByteString(Register result, Register length, | 539 void AllocateOneByteString(Register result, Register length, |
547 Register scratch1, Register scratch2, | 540 Register scratch1, Register scratch2, |
548 Register scratch3, Label* gc_required); | 541 Register scratch3, Label* gc_required); |
549 void AllocateTwoByteConsString(Register result, | 542 void AllocateTwoByteConsString(Register result, |
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1825 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1818 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1826 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1827 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1828 #else | 1821 #else |
1829 #define ACCESS_MASM(masm) masm-> | 1822 #define ACCESS_MASM(masm) masm-> |
1830 #endif | 1823 #endif |
1831 | 1824 |
1832 } } // namespace v8::internal | 1825 } } // namespace v8::internal |
1833 | 1826 |
1834 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1827 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |