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

Unified Diff: src/hydrogen-instructions.h

Issue 626383003: Fix representation of HLoadRoot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/hydrogen-representation-changes.cc » ('j') | src/hydrogen-representation-changes.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 695c629a7049dc051fdc33a06751ef7ecadce622..64decbf13ba6db2f7de73aa15454efbf74411a20 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -2716,6 +2716,7 @@ class HLoadRoot FINAL : public HTemplateInstruction<0> {
// TODO(bmeurer): We'll need kDependsOnRoots once we add the
// corresponding HStoreRoot instruction.
SetDependsOnFlag(kCalls);
+ set_representation(Representation::Tagged());
}
virtual bool IsDeletable() const OVERRIDE { return true; }
@@ -6376,6 +6377,7 @@ class HLoadNamedField FINAL : public HTemplateInstruction<2> {
// object must be external in case of external memory access
return Representation::External();
}
+ if (index == 1) return Representation::None();
return Representation::Tagged();
}
virtual Range* InferRange(Zone* zone) OVERRIDE;
« no previous file with comments | « no previous file | src/hydrogen-representation-changes.cc » ('j') | src/hydrogen-representation-changes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698