| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Class for intrinsifying functions. | 4 // Class for intrinsifying functions. |
| 5 | 5 |
| 6 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
| 7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
| 8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
| 9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
| 10 #include "vm/flow_graph.h" | 10 #include "vm/flow_graph.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 #endif | 159 #endif |
| 160 | 160 |
| 161 | 161 |
| 162 bool Intrinsifier::GraphIntrinsify(const ParsedFunction& parsed_function, | 162 bool Intrinsifier::GraphIntrinsify(const ParsedFunction& parsed_function, |
| 163 FlowGraphCompiler* compiler) { | 163 FlowGraphCompiler* compiler) { |
| 164 #if !defined(TARGET_ARCH_DBC) | 164 #if !defined(TARGET_ARCH_DBC) |
| 165 ZoneGrowableArray<const ICData*>* ic_data_array = | 165 ZoneGrowableArray<const ICData*>* ic_data_array = |
| 166 new ZoneGrowableArray<const ICData*>(); | 166 new ZoneGrowableArray<const ICData*>(); |
| 167 FlowGraphBuilder builder(parsed_function, *ic_data_array, | 167 FlowGraphBuilder builder(parsed_function, *ic_data_array, |
| 168 NULL, // NULL = not inlining. | 168 /* not building var desc */ NULL, |
| 169 Compiler::kNoOSRDeoptId); | 169 /* not inlining */ NULL, Compiler::kNoOSRDeoptId); |
| 170 | 170 |
| 171 intptr_t block_id = builder.AllocateBlockId(); | 171 intptr_t block_id = builder.AllocateBlockId(); |
| 172 TargetEntryInstr* normal_entry = | 172 TargetEntryInstr* normal_entry = |
| 173 new TargetEntryInstr(block_id, CatchClauseNode::kInvalidTryIndex, | 173 new TargetEntryInstr(block_id, CatchClauseNode::kInvalidTryIndex, |
| 174 Thread::Current()->GetNextDeoptId()); | 174 Thread::Current()->GetNextDeoptId()); |
| 175 GraphEntryInstr* graph_entry = new GraphEntryInstr( | 175 GraphEntryInstr* graph_entry = new GraphEntryInstr( |
| 176 parsed_function, normal_entry, Compiler::kNoOSRDeoptId); | 176 parsed_function, normal_entry, Compiler::kNoOSRDeoptId); |
| 177 FlowGraph* graph = new FlowGraph(parsed_function, graph_entry, block_id); | 177 FlowGraph* graph = new FlowGraph(parsed_function, graph_entry, block_id); |
| 178 const Function& function = parsed_function.function(); | 178 const Function& function = parsed_function.function(); |
| 179 switch (function.recognized_kind()) { | 179 switch (function.recognized_kind()) { |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 | 1175 |
| 1176 void Intrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler) { | 1176 void Intrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler) { |
| 1177 IntrinsifyRegExpExecuteMatch(assembler, /*sticky=*/true); | 1177 IntrinsifyRegExpExecuteMatch(assembler, /*sticky=*/true); |
| 1178 } | 1178 } |
| 1179 #endif // !defined(TARGET_ARCH_DBC) | 1179 #endif // !defined(TARGET_ARCH_DBC) |
| 1180 | 1180 |
| 1181 | 1181 |
| 1182 } // namespace dart | 1182 } // namespace dart |
| OLD | NEW |