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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
7 | 7 |
8 #include "assembler.h" | 8 #include "assembler.h" |
9 #include "frames.h" | 9 #include "frames.h" |
10 #include "v8globals.h" | 10 #include "v8globals.h" |
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 // Try to get function prototype of a function and puts the value in | 1198 // Try to get function prototype of a function and puts the value in |
1199 // the result register. Checks that the function really is a | 1199 // the result register. Checks that the function really is a |
1200 // function and jumps to the miss label if the fast checks fail. The | 1200 // function and jumps to the miss label if the fast checks fail. The |
1201 // function register will be untouched; the other register may be | 1201 // function register will be untouched; the other register may be |
1202 // clobbered. | 1202 // clobbered. |
1203 void TryGetFunctionPrototype(Register function, | 1203 void TryGetFunctionPrototype(Register function, |
1204 Register result, | 1204 Register result, |
1205 Label* miss, | 1205 Label* miss, |
1206 bool miss_on_bound_function = false); | 1206 bool miss_on_bound_function = false); |
1207 | 1207 |
1208 // Generates code for reporting that an illegal operation has | |
1209 // occurred. | |
1210 void IllegalOperation(int num_arguments); | |
1211 | |
1212 // Picks out an array index from the hash field. | 1208 // Picks out an array index from the hash field. |
1213 // Register use: | 1209 // Register use: |
1214 // hash - holds the index's hash. Clobbered. | 1210 // hash - holds the index's hash. Clobbered. |
1215 // index - holds the overwritten index on exit. | 1211 // index - holds the overwritten index on exit. |
1216 void IndexFromHash(Register hash, Register index); | 1212 void IndexFromHash(Register hash, Register index); |
1217 | 1213 |
1218 // Find the function context up the context chain. | 1214 // Find the function context up the context chain. |
1219 void LoadContext(Register dst, int context_chain_length); | 1215 void LoadContext(Register dst, int context_chain_length); |
1220 | 1216 |
1221 // Conditionally load the cached Array transitioned map of type | 1217 // Conditionally load the cached Array transitioned map of type |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 masm->popfq(); \ | 1595 masm->popfq(); \ |
1600 } \ | 1596 } \ |
1601 masm-> | 1597 masm-> |
1602 #else | 1598 #else |
1603 #define ACCESS_MASM(masm) masm-> | 1599 #define ACCESS_MASM(masm) masm-> |
1604 #endif | 1600 #endif |
1605 | 1601 |
1606 } } // namespace v8::internal | 1602 } } // namespace v8::internal |
1607 | 1603 |
1608 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1604 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |