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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 215363004: Support for multiple register values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | 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 7b4d3853473e7bdbf4a41ae00f126bc9f9374024..993a61495cc6bb7fe9407c9ad1ce91db8a246675 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -805,7 +805,9 @@ void Definition::ReplaceWith(Definition* other,
ReplaceUsesWith(other);
// Reuse this instruction's SSA name for other.
ASSERT(!other->HasSSATemp());
- if (HasSSATemp()) other->set_ssa_temp_index(ssa_temp_index());
+ if (HasSSATemp()) {
+ other->set_ssa_temp_index(ssa_temp_index());
+ }
// Finally insert the other definition in place of this one in the graph.
previous()->LinkTo(other);
@@ -3228,16 +3230,16 @@ MergedMathInstr::MergedMathInstr(ZoneGrowableArray<Value*>* inputs,
}
-intptr_t MergedMathInstr::ResultIndexOf(MethodRecognizer::Kind kind) {
+intptr_t MergedMathInstr::OutputIndexOf(intptr_t kind) {
switch (kind) {
- case MethodRecognizer::kMathSin: return 0;
- case MethodRecognizer::kMathCos: return 1;
+ case MethodRecognizer::kMathSin: return 1;
+ case MethodRecognizer::kMathCos: return 0;
default: UNIMPLEMENTED(); return -1;
}
}
-intptr_t MergedMathInstr::ResultIndexOf(Token::Kind token) {
+intptr_t MergedMathInstr::OutputIndexOf(Token::Kind token) {
switch (token) {
case Token::kTRUNCDIV: return 0;
case Token::kMOD: return 1;
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698