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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 DCHECK((type == -1) || | 481 DCHECK((type == -1) || |
482 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); | 482 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); |
483 return type; | 483 return type; |
484 } | 484 } |
485 | 485 |
486 | 486 |
487 | 487 |
488 // --------------------------------------------------------------------------- | 488 // --------------------------------------------------------------------------- |
489 // Allocation support. | 489 // Allocation support. |
490 | 490 |
491 // Allocate an object in new space or old pointer space. The object_size is | 491 // Allocate an object in new space or old space. The object_size is |
492 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS | 492 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS |
493 // is passed. If the space is exhausted control continues at the gc_required | 493 // is passed. If the space is exhausted control continues at the gc_required |
494 // label. The allocated object is returned in result. If the flag | 494 // label. The allocated object is returned in result. If the flag |
495 // tag_allocated_object is true the result is tagged as as a heap object. | 495 // tag_allocated_object is true the result is tagged as as a heap object. |
496 // All registers are clobbered also when control continues at the gc_required | 496 // All registers are clobbered also when control continues at the gc_required |
497 // label. | 497 // label. |
498 void Allocate(int object_size, | 498 void Allocate(int object_size, |
499 Register result, | 499 Register result, |
500 Register scratch1, | 500 Register scratch1, |
501 Register scratch2, | 501 Register scratch2, |
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1736 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1737 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1737 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1738 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1738 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1739 #else | 1739 #else |
1740 #define ACCESS_MASM(masm) masm-> | 1740 #define ACCESS_MASM(masm) masm-> |
1741 #endif | 1741 #endif |
1742 | 1742 |
1743 } } // namespace v8::internal | 1743 } } // namespace v8::internal |
1744 | 1744 |
1745 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1745 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |