Chromium Code Reviews| 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, |