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

Unified Diff: runtime/vm/assembler_x64.h

Issue 14682020: Optimize functions containing try-catch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed Srdjan's comments Created 7 years, 7 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/assembler_x64.h
===================================================================
--- runtime/vm/assembler_x64.h (revision 22436)
+++ runtime/vm/assembler_x64.h (working copy)
@@ -91,6 +91,15 @@
return *this;
}
+ bool Equals(const Operand& other) {
+ if (length_ != other.length_) return false;
+ if (rex_ != other.rex_) return false;
+ for (uint8_t i = 0; i < length_; i++) {
+ if (encoding_[i] != other.encoding_[i]) return false;
+ }
+ return true;
+ }
+
protected:
Operand() : length_(0), rex_(REX_NONE) { } // Needed by subclass Address.
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/compiler.cc » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698