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

Unified Diff: src/arm/lithium-arm.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: Add regression test, change test status. 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
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/lithium-arm.h
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h
index 70f47c4734d70d39cbca2f486d6d092eae0ec01f..0ac3510f40ffc36086c30e370b673f8d579f12f7 100644
--- a/src/arm/lithium-arm.h
+++ b/src/arm/lithium-arm.h
@@ -1656,11 +1656,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_; }
fschneider 2011/06/09 10:57:22 I think you can change this to { return hydrogen(
+
DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
fschneider 2011/06/09 10:57:22 Add DECLARE_HYDROGEN_ACCESSOR(Change) here. The s
William Hesse 2011/06/09 12:26:32 Done.
+
+ private:
+ bool deoptimize_on_undefined_;
};
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698