| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 bool FlowGraphCompiler::SupportsUnboxedSimd128() { | 47 bool FlowGraphCompiler::SupportsUnboxedSimd128() { |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 bool FlowGraphCompiler::SupportsSinCos() { | 52 bool FlowGraphCompiler::SupportsSinCos() { |
| 53 return false; | 53 return false; |
| 54 } | 54 } |
| 55 | 55 |
| 56 | 56 |
| 57 void FlowGraphCompiler::EnterIntrinsicMode() { |
| 58 ASSERT(!intrinsic_mode()); |
| 59 intrinsic_mode_ = true; |
| 60 assembler()->set_allow_constant_pool(false); |
| 61 } |
| 62 |
| 63 |
| 64 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 65 ASSERT(intrinsic_mode()); |
| 66 intrinsic_mode_ = false; |
| 67 assembler()->set_allow_constant_pool(true); |
| 68 } |
| 69 |
| 70 |
| 57 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 71 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 58 DeoptInfoBuilder* builder, | 72 DeoptInfoBuilder* builder, |
| 59 const Array& deopt_table) { | 73 const Array& deopt_table) { |
| 60 if (deopt_env_ == NULL) { | 74 if (deopt_env_ == NULL) { |
| 61 return DeoptInfo::null(); | 75 return DeoptInfo::null(); |
| 62 } | 76 } |
| 63 | 77 |
| 64 intptr_t stack_height = compiler->StackSize(); | 78 intptr_t stack_height = compiler->StackSize(); |
| 65 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 79 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 66 | 80 |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1785 __ AddImmediate(SP, kDoubleSize); | 1799 __ AddImmediate(SP, kDoubleSize); |
| 1786 } | 1800 } |
| 1787 | 1801 |
| 1788 | 1802 |
| 1789 #undef __ | 1803 #undef __ |
| 1790 | 1804 |
| 1791 | 1805 |
| 1792 } // namespace dart | 1806 } // namespace dart |
| 1793 | 1807 |
| 1794 #endif // defined TARGET_ARCH_MIPS | 1808 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |