| 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 "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/base/flags.h" | 10 #include "src/base/flags.h" |
| (...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 | 1233 |
| 1234 // Machine code version of Map::GetConstructor(). | 1234 // Machine code version of Map::GetConstructor(). |
| 1235 // |temp| holds |result|'s map when done. | 1235 // |temp| holds |result|'s map when done. |
| 1236 void GetMapConstructor(Register result, Register map, Register temp); | 1236 void GetMapConstructor(Register result, Register map, Register temp); |
| 1237 | 1237 |
| 1238 // Try to get function prototype of a function and puts the value in | 1238 // Try to get function prototype of a function and puts the value in |
| 1239 // the result register. Checks that the function really is a | 1239 // the result register. Checks that the function really is a |
| 1240 // function and jumps to the miss label if the fast checks fail. The | 1240 // function and jumps to the miss label if the fast checks fail. The |
| 1241 // function register will be untouched; the other register may be | 1241 // function register will be untouched; the other register may be |
| 1242 // clobbered. | 1242 // clobbered. |
| 1243 void TryGetFunctionPrototype(Register function, | 1243 void TryGetFunctionPrototype(Register function, Register result, Label* miss); |
| 1244 Register result, | |
| 1245 Label* miss, | |
| 1246 bool miss_on_bound_function = false); | |
| 1247 | 1244 |
| 1248 // Picks out an array index from the hash field. | 1245 // Picks out an array index from the hash field. |
| 1249 // Register use: | 1246 // Register use: |
| 1250 // hash - holds the index's hash. Clobbered. | 1247 // hash - holds the index's hash. Clobbered. |
| 1251 // index - holds the overwritten index on exit. | 1248 // index - holds the overwritten index on exit. |
| 1252 void IndexFromHash(Register hash, Register index); | 1249 void IndexFromHash(Register hash, Register index); |
| 1253 | 1250 |
| 1254 // Find the function context up the context chain. | 1251 // Find the function context up the context chain. |
| 1255 void LoadContext(Register dst, int context_chain_length); | 1252 void LoadContext(Register dst, int context_chain_length); |
| 1256 | 1253 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 masm->popfq(); \ | 1621 masm->popfq(); \ |
| 1625 } \ | 1622 } \ |
| 1626 masm-> | 1623 masm-> |
| 1627 #else | 1624 #else |
| 1628 #define ACCESS_MASM(masm) masm-> | 1625 #define ACCESS_MASM(masm) masm-> |
| 1629 #endif | 1626 #endif |
| 1630 | 1627 |
| 1631 } } // namespace v8::internal | 1628 } } // namespace v8::internal |
| 1632 | 1629 |
| 1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1630 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |