| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 66 } |
| 67 | 67 |
| 68 | 68 |
| 69 void FlowGraphCompiler::ExitIntrinsicMode() { | 69 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 70 ASSERT(intrinsic_mode()); | 70 ASSERT(intrinsic_mode()); |
| 71 intrinsic_mode_ = false; | 71 intrinsic_mode_ = false; |
| 72 assembler()->set_allow_constant_pool(true); | 72 assembler()->set_allow_constant_pool(true); |
| 73 } | 73 } |
| 74 | 74 |
| 75 | 75 |
| 76 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 76 RawTypedData* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 77 DeoptInfoBuilder* builder, | 77 DeoptInfoBuilder* builder, |
| 78 const Array& deopt_table) { | 78 const Array& deopt_table) { |
| 79 if (deopt_env_ == NULL) { | 79 if (deopt_env_ == NULL) { |
| 80 ++builder->current_info_number_; | 80 ++builder->current_info_number_; |
| 81 return DeoptInfo::null(); | 81 return TypedData::null(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 intptr_t stack_height = compiler->StackSize(); | 84 intptr_t stack_height = compiler->StackSize(); |
| 85 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); | 85 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); |
| 86 | 86 |
| 87 intptr_t slot_ix = 0; | 87 intptr_t slot_ix = 0; |
| 88 Environment* current = deopt_env_; | 88 Environment* current = deopt_env_; |
| 89 | 89 |
| 90 // Emit all kMaterializeObject instructions describing objects to be | 90 // Emit all kMaterializeObject instructions describing objects to be |
| 91 // materialized on the deoptimization as a prefix to the deoptimization info. | 91 // materialized on the deoptimization as a prefix to the deoptimization info. |
| (...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 __ AddImmediate(SP, kDoubleSize); | 1869 __ AddImmediate(SP, kDoubleSize); |
| 1870 } | 1870 } |
| 1871 | 1871 |
| 1872 | 1872 |
| 1873 #undef __ | 1873 #undef __ |
| 1874 | 1874 |
| 1875 | 1875 |
| 1876 } // namespace dart | 1876 } // namespace dart |
| 1877 | 1877 |
| 1878 #endif // defined TARGET_ARCH_MIPS | 1878 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |