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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 258563004: Copy of Issue 231383002 after hard disk crash: First step in improving instance of test for a fixed… (Closed) Base URL: http://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
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 35442)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -2691,6 +2691,35 @@
}
+
+ComparisonInstr* TestCidsInstr::CopyWithNewOperands(Value* new_left,
+ Value* new_right) {
+ return new TestCidsInstr(token_pos(),
+ kind(),
+ new_left,
+ cid_results(),
+ deopt_id());
+}
+
+
+bool TestCidsInstr::AttributesEqual(Instruction* other) const {
+ TestCidsInstr* other_instr = other->AsTestCids();
+ ASSERT(other != NULL);
+ if (kind() != other_instr->kind()) {
+ return false;
+ }
+ if (cid_results().length() != other_instr->cid_results().length()) {
+ return false;
+ }
+ for (intptr_t i = 0; i < cid_results().length(); i++) {
+ if (cid_results()[i] != other_instr->cid_results()[i]) {
+ return false;
+ }
+ }
+ return true;
+}
+
+
bool IfThenElseInstr::Supports(ComparisonInstr* comparison,
Value* v1,
Value* v2) {

Powered by Google App Engine
This is Rietveld 408576698