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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 DCHECK((type == -1) || | 502 DCHECK((type == -1) || |
503 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); | 503 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); |
504 return type; | 504 return type; |
505 } | 505 } |
506 | 506 |
507 | 507 |
508 | 508 |
509 // --------------------------------------------------------------------------- | 509 // --------------------------------------------------------------------------- |
510 // Allocation support. | 510 // Allocation support. |
511 | 511 |
512 // Allocate an object in new space or old pointer space. The object_size is | 512 // Allocate an object in new space or old space. The object_size is |
513 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS | 513 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS |
514 // is passed. If the space is exhausted control continues at the gc_required | 514 // is passed. If the space is exhausted control continues at the gc_required |
515 // label. The allocated object is returned in result. If the flag | 515 // label. The allocated object is returned in result. If the flag |
516 // tag_allocated_object is true the result is tagged as as a heap object. | 516 // tag_allocated_object is true the result is tagged as as a heap object. |
517 // All registers are clobbered also when control continues at the gc_required | 517 // All registers are clobbered also when control continues at the gc_required |
518 // label. | 518 // label. |
519 void Allocate(int object_size, | 519 void Allocate(int object_size, |
520 Register result, | 520 Register result, |
521 Register scratch1, | 521 Register scratch1, |
522 Register scratch2, | 522 Register scratch2, |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1805 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1805 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1806 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1806 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1807 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1807 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1808 #else | 1808 #else |
1809 #define ACCESS_MASM(masm) masm-> | 1809 #define ACCESS_MASM(masm) masm-> |
1810 #endif | 1810 #endif |
1811 | 1811 |
1812 } } // namespace v8::internal | 1812 } } // namespace v8::internal |
1813 | 1813 |
1814 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1814 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |