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

Unified Diff: src/hydrogen-instructions.h

Issue 23866016: Implement local check elimination on basic blocks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 8cb2f591742aebec491d57d4ab9305b51cc1eeb4..022a7a143118d4de304f987989e2f4e176db181f 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -3482,6 +3482,13 @@ class HConstant V8_FINAL : public HTemplateInstruction<0> {
return Unique<Object>(raw_address, handle_);
}
+ template<typename T>
+ Unique<T> GetCastedUnique() const {
+ // TODO(titzer): store a Unique<HeapObject> inside the HConstant.
+ Address raw_address = reinterpret_cast<Address>(unique_id_.Hashcode());
+ return Unique<T>(raw_address, Handle<T>::cast(handle_));
+ }
+
#ifdef DEBUG
virtual void Verify() V8_OVERRIDE { }
#endif

Powered by Google App Engine
This is Rietveld 408576698