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

Unified Diff: src/ia32/lithium-ia32.h

Issue 7044049: Add boolean flag to HChange and LNumberUntagD to not convert undefined to NaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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: src/ia32/lithium-ia32.h
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
index a0660b84095ff8924693592d25e726bf9acc1b9c..eaab52e2f17bf96f4a87adaf83008591b99fac7f 100644
--- a/src/ia32/lithium-ia32.h
+++ b/src/ia32/lithium-ia32.h
@@ -1700,11 +1700,17 @@ class LSmiTag: public LTemplateInstruction<1, 1, 0> {
class LNumberUntagD: public LTemplateInstruction<1, 1, 0> {
public:
- explicit LNumberUntagD(LOperand* value) {
+ LNumberUntagD(LOperand* value, bool deoptimize_on_undefined)
+ : deoptimize_on_undefined_(deoptimize_on_undefined) {
inputs_[0] = value;
}
+ bool deoptimize_on_undefined() { return deoptimize_on_undefined_; }
+
DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
+
+ private:
+ bool deoptimize_on_undefined_;
};

Powered by Google App Engine
This is Rietveld 408576698