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

Unified Diff: runtime/vm/intermediate_language.h

Issue 11414136: Implement proposed new identity spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 15270)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -2223,10 +2223,7 @@
class StrictCompareInstr : public ComparisonInstr {
public:
- StrictCompareInstr(Token::Kind kind, Value* left, Value* right)
- : ComparisonInstr(kind, left, right) {
- ASSERT((kind == Token::kEQ_STRICT) || (kind == Token::kNE_STRICT));
- }
+ StrictCompareInstr(Token::Kind kind, Value* left, Value* right);
DECLARE_INSTRUCTION(StrictCompare)
virtual RawAbstractType* CompileType() const;
@@ -2247,7 +2244,14 @@
virtual void EmitBranchCode(FlowGraphCompiler* compiler,
BranchInstr* branch);
+ bool needs_number_check() const { return needs_number_check_; }
+ void set_needs_number_check(bool value) { needs_number_check_ = value; }
+
private:
+ // True if the comparison must check for double, Mint or Bigint and
+ // use value comparison instead.
+ bool needs_number_check_;
+
DISALLOW_COPY_AND_ASSIGN(StrictCompareInstr);
};

Powered by Google App Engine
This is Rietveld 408576698