| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 bool FlowGraphCompiler::SupportsUnboxedSimd128() { | 54 bool FlowGraphCompiler::SupportsUnboxedSimd128() { |
| 55 return FLAG_enable_simd_inline; | 55 return FLAG_enable_simd_inline; |
| 56 } | 56 } |
| 57 | 57 |
| 58 | 58 |
| 59 bool FlowGraphCompiler::SupportsSinCos() { | 59 bool FlowGraphCompiler::SupportsSinCos() { |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 | 63 |
| 64 void FlowGraphCompiler::EnterIntrinsicMode() { |
| 65 ASSERT(!intrinsic_mode()); |
| 66 intrinsic_mode_ = true; |
| 67 } |
| 68 |
| 69 |
| 70 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 71 ASSERT(intrinsic_mode()); |
| 72 intrinsic_mode_ = false; |
| 73 } |
| 74 |
| 75 |
| 64 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 76 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 65 DeoptInfoBuilder* builder, | 77 DeoptInfoBuilder* builder, |
| 66 const Array& deopt_table) { | 78 const Array& deopt_table) { |
| 67 if (deopt_env_ == NULL) { | 79 if (deopt_env_ == NULL) { |
| 68 return DeoptInfo::null(); | 80 return DeoptInfo::null(); |
| 69 } | 81 } |
| 70 | 82 |
| 71 intptr_t stack_height = compiler->StackSize(); | 83 intptr_t stack_height = compiler->StackSize(); |
| 72 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 84 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 73 | 85 |
| (...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { | 1747 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { |
| 1736 ScratchRegisterScope ensure_scratch1(this, kNoRegister); | 1748 ScratchRegisterScope ensure_scratch1(this, kNoRegister); |
| 1737 ScratchRegisterScope ensure_scratch2(this, ensure_scratch1.reg()); | 1749 ScratchRegisterScope ensure_scratch2(this, ensure_scratch1.reg()); |
| 1738 __ movl(ensure_scratch1.reg(), mem1); | 1750 __ movl(ensure_scratch1.reg(), mem1); |
| 1739 __ movl(ensure_scratch2.reg(), mem2); | 1751 __ movl(ensure_scratch2.reg(), mem2); |
| 1740 __ movl(mem2, ensure_scratch1.reg()); | 1752 __ movl(mem2, ensure_scratch1.reg()); |
| 1741 __ movl(mem1, ensure_scratch2.reg()); | 1753 __ movl(mem1, ensure_scratch2.reg()); |
| 1742 } | 1754 } |
| 1743 | 1755 |
| 1744 | 1756 |
| 1745 void ParallelMoveResolver::Exchange(Register reg, intptr_t stack_offset) { | 1757 void ParallelMoveResolver::Exchange(Register reg, |
| 1758 Register base_reg, |
| 1759 intptr_t stack_offset) { |
| 1746 UNREACHABLE(); | 1760 UNREACHABLE(); |
| 1747 } | 1761 } |
| 1748 | 1762 |
| 1749 | 1763 |
| 1750 void ParallelMoveResolver::Exchange(intptr_t stack_offset1, | 1764 void ParallelMoveResolver::Exchange(Register base_reg1, |
| 1765 intptr_t stack_offset1, |
| 1766 Register base_reg2, |
| 1751 intptr_t stack_offset2) { | 1767 intptr_t stack_offset2) { |
| 1752 UNREACHABLE(); | 1768 UNREACHABLE(); |
| 1753 } | 1769 } |
| 1754 | 1770 |
| 1755 | 1771 |
| 1756 void ParallelMoveResolver::SpillScratch(Register reg) { | 1772 void ParallelMoveResolver::SpillScratch(Register reg) { |
| 1757 __ pushl(reg); | 1773 __ pushl(reg); |
| 1758 } | 1774 } |
| 1759 | 1775 |
| 1760 | 1776 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1773 __ movups(reg, Address(ESP, 0)); | 1789 __ movups(reg, Address(ESP, 0)); |
| 1774 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1790 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1775 } | 1791 } |
| 1776 | 1792 |
| 1777 | 1793 |
| 1778 #undef __ | 1794 #undef __ |
| 1779 | 1795 |
| 1780 } // namespace dart | 1796 } // namespace dart |
| 1781 | 1797 |
| 1782 #endif // defined TARGET_ARCH_IA32 | 1798 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |