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/frames.h" | 10 #include "src/frames.h" |
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 void NegativeZeroTest(CodeGenerator* cgen, | 1239 void NegativeZeroTest(CodeGenerator* cgen, |
1240 Register result, | 1240 Register result, |
1241 Register op, | 1241 Register op, |
1242 JumpTarget* then_target); | 1242 JumpTarget* then_target); |
1243 | 1243 |
1244 // Check if result is zero and any of op1 and op2 are negative. | 1244 // Check if result is zero and any of op1 and op2 are negative. |
1245 // Register scratch is destroyed, and it must be different from op2. | 1245 // Register scratch is destroyed, and it must be different from op2. |
1246 void NegativeZeroTest(Register result, Register op1, Register op2, | 1246 void NegativeZeroTest(Register result, Register op1, Register op2, |
1247 Register scratch, Label* then_label); | 1247 Register scratch, Label* then_label); |
1248 | 1248 |
| 1249 // Machine code version of Map::GetConstructor(). |
| 1250 // |temp| holds |result|'s map when done. |
| 1251 void GetMapConstructor(Register result, Register map, Register temp); |
| 1252 |
1249 // Try to get function prototype of a function and puts the value in | 1253 // Try to get function prototype of a function and puts the value in |
1250 // the result register. Checks that the function really is a | 1254 // the result register. Checks that the function really is a |
1251 // function and jumps to the miss label if the fast checks fail. The | 1255 // function and jumps to the miss label if the fast checks fail. The |
1252 // function register will be untouched; the other register may be | 1256 // function register will be untouched; the other register may be |
1253 // clobbered. | 1257 // clobbered. |
1254 void TryGetFunctionPrototype(Register function, | 1258 void TryGetFunctionPrototype(Register function, |
1255 Register result, | 1259 Register result, |
1256 Label* miss, | 1260 Label* miss, |
1257 bool miss_on_bound_function = false); | 1261 bool miss_on_bound_function = false); |
1258 | 1262 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 masm->popfq(); \ | 1638 masm->popfq(); \ |
1635 } \ | 1639 } \ |
1636 masm-> | 1640 masm-> |
1637 #else | 1641 #else |
1638 #define ACCESS_MASM(masm) masm-> | 1642 #define ACCESS_MASM(masm) masm-> |
1639 #endif | 1643 #endif |
1640 | 1644 |
1641 } } // namespace v8::internal | 1645 } } // namespace v8::internal |
1642 | 1646 |
1643 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1647 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |