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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 630 |
631 // Check if result is zero and any of op1 and op2 are negative. | 631 // Check if result is zero and any of op1 and op2 are negative. |
632 // Register scratch is destroyed, and it must be different from op2. | 632 // Register scratch is destroyed, and it must be different from op2. |
633 void NegativeZeroTest(Register result, Register op1, Register op2, | 633 void NegativeZeroTest(Register result, Register op1, Register op2, |
634 Register scratch, Label* then_label); | 634 Register scratch, Label* then_label); |
635 | 635 |
636 // Machine code version of Map::GetConstructor(). | 636 // Machine code version of Map::GetConstructor(). |
637 // |temp| holds |result|'s map when done. | 637 // |temp| holds |result|'s map when done. |
638 void GetMapConstructor(Register result, Register map, Register temp); | 638 void GetMapConstructor(Register result, Register map, Register temp); |
639 | 639 |
640 // Try to get function prototype of a function and puts the value in | |
641 // the result register. Checks that the function really is a | |
642 // function and jumps to the miss label if the fast checks fail. The | |
643 // function register will be untouched; the other registers may be | |
644 // clobbered. | |
645 void TryGetFunctionPrototype(Register function, Register result, | |
646 Register scratch, Label* miss); | |
647 | |
648 // --------------------------------------------------------------------------- | 640 // --------------------------------------------------------------------------- |
649 // Runtime calls | 641 // Runtime calls |
650 | 642 |
651 // Call a code stub. Generate the code if necessary. | 643 // Call a code stub. Generate the code if necessary. |
652 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); | 644 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); |
653 | 645 |
654 // Tail call a code stub (jump). Generate the code if necessary. | 646 // Tail call a code stub (jump). Generate the code if necessary. |
655 void TailCallStub(CodeStub* stub); | 647 void TailCallStub(CodeStub* stub); |
656 | 648 |
657 // Return from a code stub after popping its arguments. | 649 // Return from a code stub after popping its arguments. |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 inline Operand NativeContextOperand() { | 957 inline Operand NativeContextOperand() { |
966 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); | 958 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); |
967 } | 959 } |
968 | 960 |
969 #define ACCESS_MASM(masm) masm-> | 961 #define ACCESS_MASM(masm) masm-> |
970 | 962 |
971 } // namespace internal | 963 } // namespace internal |
972 } // namespace v8 | 964 } // namespace v8 |
973 | 965 |
974 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 966 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |