| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 intrinsic_mode_ = true; | 71 intrinsic_mode_ = true; |
| 72 } | 72 } |
| 73 | 73 |
| 74 | 74 |
| 75 void FlowGraphCompiler::ExitIntrinsicMode() { | 75 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 76 ASSERT(intrinsic_mode()); | 76 ASSERT(intrinsic_mode()); |
| 77 intrinsic_mode_ = false; | 77 intrinsic_mode_ = false; |
| 78 } | 78 } |
| 79 | 79 |
| 80 | 80 |
| 81 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 81 RawTypedData* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 82 DeoptInfoBuilder* builder, | 82 DeoptInfoBuilder* builder, |
| 83 const Array& deopt_table) { | 83 const Array& deopt_table) { |
| 84 if (deopt_env_ == NULL) { | 84 if (deopt_env_ == NULL) { |
| 85 ++builder->current_info_number_; | 85 ++builder->current_info_number_; |
| 86 return DeoptInfo::null(); | 86 return TypedData::null(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 intptr_t stack_height = compiler->StackSize(); | 89 intptr_t stack_height = compiler->StackSize(); |
| 90 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 90 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 91 | 91 |
| 92 intptr_t slot_ix = 0; | 92 intptr_t slot_ix = 0; |
| 93 Environment* current = deopt_env_; | 93 Environment* current = deopt_env_; |
| 94 | 94 |
| 95 // Emit all kMaterializeObject instructions describing objects to be | 95 // Emit all kMaterializeObject instructions describing objects to be |
| 96 // materialized on the deoptimization as a prefix to the deoptimization info. | 96 // materialized on the deoptimization as a prefix to the deoptimization info. |
| (...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 __ movups(reg, Address(ESP, 0)); | 1849 __ movups(reg, Address(ESP, 0)); |
| 1850 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1850 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1851 } | 1851 } |
| 1852 | 1852 |
| 1853 | 1853 |
| 1854 #undef __ | 1854 #undef __ |
| 1855 | 1855 |
| 1856 } // namespace dart | 1856 } // namespace dart |
| 1857 | 1857 |
| 1858 #endif // defined TARGET_ARCH_IA32 | 1858 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |