| 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 | 4 |
| 5 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_builder.h" | 9 #include "vm/flow_graph_builder.h" |
| 10 #include "vm/flow_graph_compiler.h" | 10 #include "vm/flow_graph_compiler.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 | 113 |
| 114 intptr_t InstanceCallComp::InputCount() const { | 114 intptr_t InstanceCallComp::InputCount() const { |
| 115 return ArgumentCount(); | 115 return ArgumentCount(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 | 118 |
| 119 intptr_t StaticCallComp::InputCount() const { | |
| 120 return ArgumentCount(); | |
| 121 } | |
| 122 | |
| 123 | |
| 124 intptr_t AllocateObjectComp::InputCount() const { | 119 intptr_t AllocateObjectComp::InputCount() const { |
| 125 return arguments().length(); | 120 return arguments().length(); |
| 126 } | 121 } |
| 127 | 122 |
| 128 | 123 |
| 129 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const { | 124 intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const { |
| 130 return arguments().length(); | 125 return arguments().length(); |
| 131 } | 126 } |
| 132 | 127 |
| 133 | 128 |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 return VerifyCallComputation(this); | 1179 return VerifyCallComputation(this); |
| 1185 } | 1180 } |
| 1186 | 1181 |
| 1187 | 1182 |
| 1188 LocationSummary* StaticCallComp::MakeLocationSummary() const { | 1183 LocationSummary* StaticCallComp::MakeLocationSummary() const { |
| 1189 return MakeCallSummary(); | 1184 return MakeCallSummary(); |
| 1190 } | 1185 } |
| 1191 | 1186 |
| 1192 | 1187 |
| 1193 void StaticCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { | 1188 void StaticCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1194 ASSERT(VerifyCallComputation(this)); | |
| 1195 Label done; | 1189 Label done; |
| 1196 if (recognized() == MethodRecognizer::kMathSqrt) { | 1190 if (recognized() == MethodRecognizer::kMathSqrt) { |
| 1197 compiler->GenerateInlinedMathSqrt(&done); | 1191 compiler->GenerateInlinedMathSqrt(&done); |
| 1198 // Falls through to static call when operand type is not double or smi. | 1192 // Falls through to static call when operand type is not double or smi. |
| 1199 } | 1193 } |
| 1200 compiler->GenerateStaticCall(cid(), | 1194 compiler->GenerateStaticCall(cid(), |
| 1201 token_pos(), | 1195 token_pos(), |
| 1202 try_index(), | 1196 try_index(), |
| 1203 function(), | 1197 function(), |
| 1204 ArgumentCount(), | 1198 ArgumentCount(), |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1348 if (compiler->is_ssa()) { | 1342 if (compiler->is_ssa()) { |
| 1349 ASSERT(locs()->in(0).IsRegister()); | 1343 ASSERT(locs()->in(0).IsRegister()); |
| 1350 __ PushRegister(locs()->in(0).reg()); | 1344 __ PushRegister(locs()->in(0).reg()); |
| 1351 } | 1345 } |
| 1352 } | 1346 } |
| 1353 | 1347 |
| 1354 | 1348 |
| 1355 #undef __ | 1349 #undef __ |
| 1356 | 1350 |
| 1357 } // namespace dart | 1351 } // namespace dart |
| OLD | NEW |