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 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 // Initialize fields with filler values. Fields starting at |start_offset| | 1021 // Initialize fields with filler values. Fields starting at |start_offset| |
1022 // not including end_offset are overwritten with the value in |filler|. At | 1022 // not including end_offset are overwritten with the value in |filler|. At |
1023 // the end the loop, |start_offset| takes the value of |end_offset|. | 1023 // the end the loop, |start_offset| takes the value of |end_offset|. |
1024 void InitializeFieldsWithFiller(Register start_offset, | 1024 void InitializeFieldsWithFiller(Register start_offset, |
1025 Register end_offset, | 1025 Register end_offset, |
1026 Register filler); | 1026 Register filler); |
1027 | 1027 |
1028 // ------------------------------------------------------------------------- | 1028 // ------------------------------------------------------------------------- |
1029 // Support functions. | 1029 // Support functions. |
1030 | 1030 |
| 1031 // Machine code version of Map::GetConstructor(). |
| 1032 // |temp| holds |result|'s map when done, and |temp2| its instance type. |
| 1033 void GetMapConstructor(Register result, Register map, Register temp, |
| 1034 Register temp2); |
| 1035 |
1031 // Try to get function prototype of a function and puts the value in | 1036 // Try to get function prototype of a function and puts the value in |
1032 // the result register. Checks that the function really is a | 1037 // the result register. Checks that the function really is a |
1033 // function and jumps to the miss label if the fast checks fail. The | 1038 // function and jumps to the miss label if the fast checks fail. The |
1034 // function register will be untouched; the other registers may be | 1039 // function register will be untouched; the other registers may be |
1035 // clobbered. | 1040 // clobbered. |
1036 void TryGetFunctionPrototype(Register function, | 1041 void TryGetFunctionPrototype(Register function, |
1037 Register result, | 1042 Register result, |
1038 Register scratch, | 1043 Register scratch, |
1039 Label* miss, | 1044 Label* miss, |
1040 bool miss_on_bound_function = false); | 1045 bool miss_on_bound_function = false); |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1788 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1784 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1789 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1785 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1790 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1786 #else | 1791 #else |
1787 #define ACCESS_MASM(masm) masm-> | 1792 #define ACCESS_MASM(masm) masm-> |
1788 #endif | 1793 #endif |
1789 | 1794 |
1790 } } // namespace v8::internal | 1795 } } // namespace v8::internal |
1791 | 1796 |
1792 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1797 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |