| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool FlowGraphCompiler::SupportsUnboxedSimd128() { | 51 bool FlowGraphCompiler::SupportsUnboxedSimd128() { |
| 52 return TargetCPUFeatures::neon_supported() && FLAG_enable_simd_inline; | 52 return TargetCPUFeatures::neon_supported() && FLAG_enable_simd_inline; |
| 53 } | 53 } |
| 54 | 54 |
| 55 | 55 |
| 56 bool FlowGraphCompiler::SupportsSinCos() { | 56 bool FlowGraphCompiler::SupportsSinCos() { |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 | 60 |
| 61 void FlowGraphCompiler::EnterIntrinsicMode() { |
| 62 ASSERT(!intrinsic_mode()); |
| 63 intrinsic_mode_ = true; |
| 64 assembler()->set_allow_constant_pool(false); |
| 65 } |
| 66 |
| 67 |
| 68 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 69 ASSERT(intrinsic_mode()); |
| 70 intrinsic_mode_ = false; |
| 71 assembler()->set_allow_constant_pool(true); |
| 72 } |
| 73 |
| 74 |
| 61 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 75 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 62 DeoptInfoBuilder* builder, | 76 DeoptInfoBuilder* builder, |
| 63 const Array& deopt_table) { | 77 const Array& deopt_table) { |
| 64 if (deopt_env_ == NULL) { | 78 if (deopt_env_ == NULL) { |
| 65 return DeoptInfo::null(); | 79 return DeoptInfo::null(); |
| 66 } | 80 } |
| 67 | 81 |
| 68 intptr_t stack_height = compiler->StackSize(); | 82 intptr_t stack_height = compiler->StackSize(); |
| 69 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 83 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 70 | 84 |
| (...skipping 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 DRegister dreg = EvenDRegisterOf(reg); | 1802 DRegister dreg = EvenDRegisterOf(reg); |
| 1789 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1803 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1790 } | 1804 } |
| 1791 | 1805 |
| 1792 | 1806 |
| 1793 #undef __ | 1807 #undef __ |
| 1794 | 1808 |
| 1795 } // namespace dart | 1809 } // namespace dart |
| 1796 | 1810 |
| 1797 #endif // defined TARGET_ARCH_ARM | 1811 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |