| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1700 static const struct ALIGN16 { | 1700 static const struct ALIGN16 { |
| 1701 uint64_t a; | 1701 uint64_t a; |
| 1702 uint64_t b; | 1702 uint64_t b; |
| 1703 } double_abs_constant = | 1703 } double_abs_constant = |
| 1704 {0x7FFFFFFFFFFFFFFFLL, 0x7FFFFFFFFFFFFFFFLL}; | 1704 {0x7FFFFFFFFFFFFFFFLL, 0x7FFFFFFFFFFFFFFFLL}; |
| 1705 andpd(reg, Address::Absolute(reinterpret_cast<uword>(&double_abs_constant))); | 1705 andpd(reg, Address::Absolute(reinterpret_cast<uword>(&double_abs_constant))); |
| 1706 } | 1706 } |
| 1707 | 1707 |
| 1708 | 1708 |
| 1709 void Assembler::EnterFrame(intptr_t frame_size) { | 1709 void Assembler::EnterFrame(intptr_t frame_size) { |
| 1710 if (prolog_offset_ == -1) { | 1710 if (prologue_offset_ == -1) { |
| 1711 prolog_offset_ = CodeSize(); | 1711 prologue_offset_ = CodeSize(); |
| 1712 } | 1712 } |
| 1713 pushl(EBP); | 1713 pushl(EBP); |
| 1714 movl(EBP, ESP); | 1714 movl(EBP, ESP); |
| 1715 if (frame_size != 0) { | 1715 if (frame_size != 0) { |
| 1716 Immediate frame_space(frame_size); | 1716 Immediate frame_space(frame_size); |
| 1717 subl(ESP, frame_space); | 1717 subl(ESP, frame_space); |
| 1718 } | 1718 } |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 | 1721 |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 | 2035 |
| 2036 const char* Assembler::XmmRegisterName(XmmRegister reg) { | 2036 const char* Assembler::XmmRegisterName(XmmRegister reg) { |
| 2037 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2037 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2038 return xmm_reg_names[reg]; | 2038 return xmm_reg_names[reg]; |
| 2039 } | 2039 } |
| 2040 | 2040 |
| 2041 | 2041 |
| 2042 } // namespace dart | 2042 } // namespace dart |
| 2043 | 2043 |
| 2044 #endif // defined TARGET_ARCH_IA32 | 2044 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |