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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/frames.h" | 9 #include "src/frames.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 void Move(const Operand& dst, const Immediate& x); | 850 void Move(const Operand& dst, const Immediate& x); |
851 | 851 |
852 // Move an immediate into an XMM register. | 852 // Move an immediate into an XMM register. |
853 void Move(XMMRegister dst, double val); | 853 void Move(XMMRegister dst, double val); |
854 | 854 |
855 // Push a handle value. | 855 // Push a handle value. |
856 void Push(Handle<Object> handle) { push(Immediate(handle)); } | 856 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
857 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } | 857 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } |
858 | 858 |
859 Handle<Object> CodeObject() { | 859 Handle<Object> CodeObject() { |
860 ASSERT(!code_object_.is_null()); | 860 DCHECK(!code_object_.is_null()); |
861 return code_object_; | 861 return code_object_; |
862 } | 862 } |
863 | 863 |
864 // Emit code for a truncating division by a constant. The dividend register is | 864 // Emit code for a truncating division by a constant. The dividend register is |
865 // unchanged, the result is in edx, and eax gets clobbered. | 865 // unchanged, the result is in edx, and eax gets clobbered. |
866 void TruncatingDiv(Register dividend, int32_t divisor); | 866 void TruncatingDiv(Register dividend, int32_t divisor); |
867 | 867 |
868 // --------------------------------------------------------------------------- | 868 // --------------------------------------------------------------------------- |
869 // StatsCounter support | 869 // StatsCounter support |
870 | 870 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 } \ | 1117 } \ |
1118 masm-> | 1118 masm-> |
1119 #else | 1119 #else |
1120 #define ACCESS_MASM(masm) masm-> | 1120 #define ACCESS_MASM(masm) masm-> |
1121 #endif | 1121 #endif |
1122 | 1122 |
1123 | 1123 |
1124 } } // namespace v8::internal | 1124 } } // namespace v8::internal |
1125 | 1125 |
1126 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1126 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |