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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 Label* gc_required, | 502 Label* gc_required, |
503 AllocationFlags flags); | 503 AllocationFlags flags); |
504 | 504 |
505 void Allocate(Register object_size, | 505 void Allocate(Register object_size, |
506 Register result, | 506 Register result, |
507 Register scratch1, | 507 Register scratch1, |
508 Register scratch2, | 508 Register scratch2, |
509 Label* gc_required, | 509 Label* gc_required, |
510 AllocationFlags flags); | 510 AllocationFlags flags); |
511 | 511 |
512 // Undo allocation in new space. The object passed and objects allocated after | |
513 // it will no longer be allocated. The caller must make sure that no pointers | |
514 // are left to the object(s) no longer allocated as they would be invalid when | |
515 // allocation is undone. | |
516 void UndoAllocationInNewSpace(Register object, Register scratch); | |
517 | |
518 | |
519 void AllocateTwoByteString(Register result, | 512 void AllocateTwoByteString(Register result, |
520 Register length, | 513 Register length, |
521 Register scratch1, | 514 Register scratch1, |
522 Register scratch2, | 515 Register scratch2, |
523 Register scratch3, | 516 Register scratch3, |
524 Label* gc_required); | 517 Label* gc_required); |
525 void AllocateOneByteString(Register result, Register length, | 518 void AllocateOneByteString(Register result, Register length, |
526 Register scratch1, Register scratch2, | 519 Register scratch1, Register scratch2, |
527 Register scratch3, Label* gc_required); | 520 Register scratch3, Label* gc_required); |
528 void AllocateTwoByteConsString(Register result, | 521 void AllocateTwoByteConsString(Register result, |
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1732 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1740 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1733 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1741 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1734 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1742 #else | 1735 #else |
1743 #define ACCESS_MASM(masm) masm-> | 1736 #define ACCESS_MASM(masm) masm-> |
1744 #endif | 1737 #endif |
1745 | 1738 |
1746 } } // namespace v8::internal | 1739 } } // namespace v8::internal |
1747 | 1740 |
1748 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1741 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |