| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 bool FlowGraphCompiler::SupportsUnboxedSimd128() { | 52 bool FlowGraphCompiler::SupportsUnboxedSimd128() { |
| 53 return FLAG_enable_simd_inline; | 53 return FLAG_enable_simd_inline; |
| 54 } | 54 } |
| 55 | 55 |
| 56 | 56 |
| 57 bool FlowGraphCompiler::SupportsSinCos() { | 57 bool FlowGraphCompiler::SupportsSinCos() { |
| 58 return true; | 58 return true; |
| 59 } | 59 } |
| 60 | 60 |
| 61 | 61 |
| 62 void FlowGraphCompiler::EnterIntrinsicMode() { |
| 63 ASSERT(!intrinsic_mode()); |
| 64 intrinsic_mode_ = true; |
| 65 } |
| 66 |
| 67 |
| 68 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 69 ASSERT(intrinsic_mode()); |
| 70 intrinsic_mode_ = false; |
| 71 } |
| 72 |
| 73 |
| 62 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 74 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 63 DeoptInfoBuilder* builder, | 75 DeoptInfoBuilder* builder, |
| 64 const Array& deopt_table) { | 76 const Array& deopt_table) { |
| 65 if (deopt_env_ == NULL) { | 77 if (deopt_env_ == NULL) { |
| 66 return DeoptInfo::null(); | 78 return DeoptInfo::null(); |
| 67 } | 79 } |
| 68 | 80 |
| 69 intptr_t stack_height = compiler->StackSize(); | 81 intptr_t stack_height = compiler->StackSize(); |
| 70 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 82 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 71 | 83 |
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 __ movups(reg, Address(ESP, 0)); | 1768 __ movups(reg, Address(ESP, 0)); |
| 1757 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1769 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1758 } | 1770 } |
| 1759 | 1771 |
| 1760 | 1772 |
| 1761 #undef __ | 1773 #undef __ |
| 1762 | 1774 |
| 1763 } // namespace dart | 1775 } // namespace dart |
| 1764 | 1776 |
| 1765 #endif // defined TARGET_ARCH_IA32 | 1777 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |