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

Unified Diff: src/hydrogen.h

Issue 12220074: Compile FastCloneShallowObjectStub using Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index e9b8a2fa836c01e2316a3c884614c497657b7709..8b278b21b504d64f852fb30e0b4ee19db5d8afcc 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -912,6 +912,28 @@ class HGraphBuilder {
HInstruction* BuildStoreMap(HValue* object, HValue* map, BailoutId id);
HInstruction* BuildStoreMap(HValue* object, Handle<Map> map, BailoutId id);
+ class CheckBuilder {
+ public:
+ CheckBuilder(HGraphBuilder* builder,
+ BailoutId id = BailoutId::StubEntry());
+ ~CheckBuilder() {
+ if (!finished_) End();
+ }
+
+ void CheckNotUndefined(HValue* value);
+ void CheckIntegerEq(HValue* left, HValue* right);
+ void End();
+
+ private:
+ HGraphBuilder* builder_;
+ bool finished_;
+ HBasicBlock* failure_block_;
+ HBasicBlock* merge_block_;
+ BailoutId id_;
+
+ Zone* zone() { return builder_->zone(); }
Jakob Kummerow 2013/02/08 12:45:49 nit: methods before properties
Michael Starzinger 2013/02/11 12:13:22 Done (also for the other builders below).
+ };
+
class IfBuilder {
public:
IfBuilder(HGraphBuilder* builder,

Powered by Google App Engine
This is Rietveld 408576698