| 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 intptr_t FlowGraphCompiler::PlatformBlockedRegisterMask() { |
| 63 COMPILE_ASSERT(TMP == kNoRegister); |
| 64 COMPILE_ASSERT(TMP2 == kNoRegister); |
| 65 COMPILE_ASSERT(PP == kNoRegister); |
| 66 return 1 << CTX | 1 << SPREG | 1 << FPREG; |
| 67 } |
| 68 |
| 69 |
| 62 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 70 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 63 DeoptInfoBuilder* builder, | 71 DeoptInfoBuilder* builder, |
| 64 const Array& deopt_table) { | 72 const Array& deopt_table) { |
| 65 if (deopt_env_ == NULL) { | 73 if (deopt_env_ == NULL) { |
| 66 return DeoptInfo::null(); | 74 return DeoptInfo::null(); |
| 67 } | 75 } |
| 68 | 76 |
| 69 intptr_t stack_height = compiler->StackSize(); | 77 intptr_t stack_height = compiler->StackSize(); |
| 70 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 78 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 71 | 79 |
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 __ movups(reg, Address(ESP, 0)); | 1764 __ movups(reg, Address(ESP, 0)); |
| 1757 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1765 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1758 } | 1766 } |
| 1759 | 1767 |
| 1760 | 1768 |
| 1761 #undef __ | 1769 #undef __ |
| 1762 | 1770 |
| 1763 } // namespace dart | 1771 } // namespace dart |
| 1764 | 1772 |
| 1765 #endif // defined TARGET_ARCH_IA32 | 1773 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |