Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2973)

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10855053: Align AllocateObjectComp and AllocateObjectWithBoundsCheckComp with ssa allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index f0f1319608529f945c1d63103c819961c2e7a02a..e2c37a814b1e34dd5e31529a766315b788fd8609 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -179,16 +179,6 @@ bool Value::StaticTypeIsMoreSpecificThan(const AbstractType& dst_type) const {
}
-intptr_t AllocateObjectComp::InputCount() const {
- return arguments().length();
-}
-
-
-intptr_t AllocateObjectWithBoundsCheckComp::InputCount() const {
- return arguments().length();
-}
-
-
RawAbstractType* PhiInstr::StaticType() const {
// TODO(regis): Return the least upper bound of the input static types.
// It is much simpler to compute the least specific of the input static types,
@@ -1139,7 +1129,7 @@ void AllocateObjectComp::EmitNativeCode(FlowGraphCompiler* compiler) {
try_index(),
&label,
PcDescriptors::kOther);
- __ Drop(arguments().length()); // Discard arguments.
+ __ Drop(ArgumentCount()); // Discard arguments.
}
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698