| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 25 matching lines...) Expand all Loading... |
| 36 ASSERT(!block_info_[i]->jump_label()->HasNear()); | 36 ASSERT(!block_info_[i]->jump_label()->HasNear()); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 | 40 |
| 41 bool FlowGraphCompiler::SupportsUnboxedMints() { | 41 bool FlowGraphCompiler::SupportsUnboxedMints() { |
| 42 return false; | 42 return false; |
| 43 } | 43 } |
| 44 | 44 |
| 45 | 45 |
| 46 bool FlowGraphCompiler::SupportsSinCos() { |
| 47 return true; |
| 48 } |
| 49 |
| 50 |
| 46 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 51 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 47 DeoptInfoBuilder* builder, | 52 DeoptInfoBuilder* builder, |
| 48 const Array& deopt_table) { | 53 const Array& deopt_table) { |
| 49 if (deopt_env_ == NULL) return DeoptInfo::null(); | 54 if (deopt_env_ == NULL) return DeoptInfo::null(); |
| 50 | 55 |
| 51 intptr_t stack_height = compiler->StackSize(); | 56 intptr_t stack_height = compiler->StackSize(); |
| 52 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 57 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 53 | 58 |
| 54 intptr_t slot_ix = 0; | 59 intptr_t slot_ix = 0; |
| 55 Environment* current = deopt_env_; | 60 Environment* current = deopt_env_; |
| (...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 __ movups(reg, Address(RSP, 0)); | 1907 __ movups(reg, Address(RSP, 0)); |
| 1903 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1908 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1904 } | 1909 } |
| 1905 | 1910 |
| 1906 | 1911 |
| 1907 #undef __ | 1912 #undef __ |
| 1908 | 1913 |
| 1909 } // namespace dart | 1914 } // namespace dart |
| 1910 | 1915 |
| 1911 #endif // defined TARGET_ARCH_X64 | 1916 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |