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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 // Machine code version of Map::GetConstructor(). | 1034 // Machine code version of Map::GetConstructor(). |
1035 // |temp| holds |result|'s map when done, and |temp2| its instance type. | 1035 // |temp| holds |result|'s map when done, and |temp2| its instance type. |
1036 void GetMapConstructor(Register result, Register map, Register temp, | 1036 void GetMapConstructor(Register result, Register map, Register temp, |
1037 Register temp2); | 1037 Register temp2); |
1038 | 1038 |
1039 // Try to get function prototype of a function and puts the value in | 1039 // Try to get function prototype of a function and puts the value in |
1040 // the result register. Checks that the function really is a | 1040 // the result register. Checks that the function really is a |
1041 // function and jumps to the miss label if the fast checks fail. The | 1041 // function and jumps to the miss label if the fast checks fail. The |
1042 // function register will be untouched; the other registers may be | 1042 // function register will be untouched; the other registers may be |
1043 // clobbered. | 1043 // clobbered. |
1044 void TryGetFunctionPrototype(Register function, | 1044 void TryGetFunctionPrototype(Register function, Register result, |
1045 Register result, | 1045 Register scratch, Label* miss); |
1046 Register scratch, | |
1047 Label* miss, | |
1048 bool miss_on_bound_function = false); | |
1049 | 1046 |
1050 void GetObjectType(Register function, | 1047 void GetObjectType(Register function, |
1051 Register map, | 1048 Register map, |
1052 Register type_reg); | 1049 Register type_reg); |
1053 | 1050 |
1054 // Check if a map for a JSObject indicates that the object has fast elements. | 1051 // Check if a map for a JSObject indicates that the object has fast elements. |
1055 // Jump to the specified label if it does not. | 1052 // Jump to the specified label if it does not. |
1056 void CheckFastElements(Register map, | 1053 void CheckFastElements(Register map, |
1057 Register scratch, | 1054 Register scratch, |
1058 Label* fail); | 1055 Label* fail); |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1753 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1757 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1754 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1758 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1755 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1759 #else | 1756 #else |
1760 #define ACCESS_MASM(masm) masm-> | 1757 #define ACCESS_MASM(masm) masm-> |
1761 #endif | 1758 #endif |
1762 | 1759 |
1763 } } // namespace v8::internal | 1760 } } // namespace v8::internal |
1764 | 1761 |
1765 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1762 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |