| 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 space. The object_size is | 512 // Allocate an object in new space or old pointer 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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1783 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1784 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1784 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1785 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1785 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1786 #else | 1786 #else |
| 1787 #define ACCESS_MASM(masm) masm-> | 1787 #define ACCESS_MASM(masm) masm-> |
| 1788 #endif | 1788 #endif |
| 1789 | 1789 |
| 1790 } } // namespace v8::internal | 1790 } } // namespace v8::internal |
| 1791 | 1791 |
| 1792 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1792 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |