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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10826285: Optimize equality for case when all targets are Object.equals. (Closed) Base URL: http://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
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 10611)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -686,7 +686,7 @@
: ComparisonComp(kind, left, right),
token_pos_(token_pos),
try_index_(try_index),
- receiver_class_id_(kObjectCid) {
+ receiver_class_id_(kIllegalCid) {
ASSERT((kind == Token::kEQ) || (kind == Token::kNE));
}
@@ -695,8 +695,10 @@
intptr_t token_pos() const { return token_pos_; }
intptr_t try_index() const { return try_index_; }
+ // Receiver class id is computed from collected ICData.
void set_receiver_class_id(intptr_t value) { receiver_class_id_ = value; }
intptr_t receiver_class_id() const { return receiver_class_id_; }
+
virtual void PrintOperandsTo(BufferFormatter* f) const;
virtual bool CanDeoptimize() const { return true; }
@@ -720,7 +722,7 @@
: ComparisonComp(kind, left, right),
token_pos_(token_pos),
try_index_(try_index),
- operands_class_id_(kObjectCid) {
+ operands_class_id_(kIllegalCid) {
ASSERT(Token::IsRelationalOperator(kind));
}

Powered by Google App Engine
This is Rietveld 408576698