| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 | 836 |
| 837 // Emit call to the code we are currently generating. | 837 // Emit call to the code we are currently generating. |
| 838 void CallSelf() { | 838 void CallSelf() { |
| 839 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 839 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
| 840 call(self, RelocInfo::CODE_TARGET); | 840 call(self, RelocInfo::CODE_TARGET); |
| 841 } | 841 } |
| 842 | 842 |
| 843 // Move if the registers are not identical. | 843 // Move if the registers are not identical. |
| 844 void Move(Register target, Register source); | 844 void Move(Register target, Register source); |
| 845 | 845 |
| 846 // Move a constant into a register using the most efficient encoding. |
| 847 void Move(Register dst, Immediate imm); |
| 848 |
| 846 // Push a handle value. | 849 // Push a handle value. |
| 847 void Push(Handle<Object> handle) { push(Immediate(handle)); } | 850 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
| 848 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } | 851 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } |
| 849 | 852 |
| 850 Handle<Object> CodeObject() { | 853 Handle<Object> CodeObject() { |
| 851 ASSERT(!code_object_.is_null()); | 854 ASSERT(!code_object_.is_null()); |
| 852 return code_object_; | 855 return code_object_; |
| 853 } | 856 } |
| 854 | 857 |
| 855 // Insert code to verify that the x87 stack has the specified depth (0-7) | 858 // Insert code to verify that the x87 stack has the specified depth (0-7) |
| 856 void VerifyX87StackDepth(uint32_t depth); | 859 void VerifyX87StackDepth(uint32_t depth); |
| 857 | 860 |
| 861 // Emit code for a flooring division by a constant. The dividend register is |
| 862 // unchanged, the result is in edx, and eax gets clobbered. |
| 863 void FlooringDiv(Register dividend, int32_t divisor); |
| 864 |
| 858 // --------------------------------------------------------------------------- | 865 // --------------------------------------------------------------------------- |
| 859 // StatsCounter support | 866 // StatsCounter support |
| 860 | 867 |
| 861 void SetCounter(StatsCounter* counter, int value); | 868 void SetCounter(StatsCounter* counter, int value); |
| 862 void IncrementCounter(StatsCounter* counter, int value); | 869 void IncrementCounter(StatsCounter* counter, int value); |
| 863 void DecrementCounter(StatsCounter* counter, int value); | 870 void DecrementCounter(StatsCounter* counter, int value); |
| 864 void IncrementCounter(Condition cc, StatsCounter* counter, int value); | 871 void IncrementCounter(Condition cc, StatsCounter* counter, int value); |
| 865 void DecrementCounter(Condition cc, StatsCounter* counter, int value); | 872 void DecrementCounter(Condition cc, StatsCounter* counter, int value); |
| 866 | 873 |
| 867 | 874 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 } \ | 1121 } \ |
| 1115 masm-> | 1122 masm-> |
| 1116 #else | 1123 #else |
| 1117 #define ACCESS_MASM(masm) masm-> | 1124 #define ACCESS_MASM(masm) masm-> |
| 1118 #endif | 1125 #endif |
| 1119 | 1126 |
| 1120 | 1127 |
| 1121 } } // namespace v8::internal | 1128 } } // namespace v8::internal |
| 1122 | 1129 |
| 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1130 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |