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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 void BooleanBitTest(Register object, int field_offset, int bit_index); | 676 void BooleanBitTest(Register object, int field_offset, int bit_index); |
677 | 677 |
678 // Check if result is zero and op is negative. | 678 // Check if result is zero and op is negative. |
679 void NegativeZeroTest(Register result, Register op, Label* then_label); | 679 void NegativeZeroTest(Register result, Register op, Label* then_label); |
680 | 680 |
681 // Check if result is zero and any of op1 and op2 are negative. | 681 // Check if result is zero and any of op1 and op2 are negative. |
682 // Register scratch is destroyed, and it must be different from op2. | 682 // Register scratch is destroyed, and it must be different from op2. |
683 void NegativeZeroTest(Register result, Register op1, Register op2, | 683 void NegativeZeroTest(Register result, Register op1, Register op2, |
684 Register scratch, Label* then_label); | 684 Register scratch, Label* then_label); |
685 | 685 |
| 686 // Machine code version of Map::GetConstructor(). |
| 687 // |temp| holds |result|'s map when done. |
| 688 void GetMapConstructor(Register result, Register map, Register temp); |
| 689 |
686 // Try to get function prototype of a function and puts the value in | 690 // Try to get function prototype of a function and puts the value in |
687 // the result register. Checks that the function really is a | 691 // the result register. Checks that the function really is a |
688 // function and jumps to the miss label if the fast checks fail. The | 692 // function and jumps to the miss label if the fast checks fail. The |
689 // function register will be untouched; the other registers may be | 693 // function register will be untouched; the other registers may be |
690 // clobbered. | 694 // clobbered. |
691 void TryGetFunctionPrototype(Register function, | 695 void TryGetFunctionPrototype(Register function, |
692 Register result, | 696 Register result, |
693 Register scratch, | 697 Register scratch, |
694 Label* miss, | 698 Label* miss, |
695 bool miss_on_bound_function = false); | 699 bool miss_on_bound_function = false); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 } \ | 1058 } \ |
1055 masm-> | 1059 masm-> |
1056 #else | 1060 #else |
1057 #define ACCESS_MASM(masm) masm-> | 1061 #define ACCESS_MASM(masm) masm-> |
1058 #endif | 1062 #endif |
1059 | 1063 |
1060 | 1064 |
1061 } } // namespace v8::internal | 1065 } } // namespace v8::internal |
1062 | 1066 |
1063 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1067 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |