Index: src/full-codegen.h |
diff --git a/src/full-codegen.h b/src/full-codegen.h |
index 9e126b848356b642f84b3c587c63bd795193f034..201507b2af338ea6e32b59d36c6a8cc145e22e0a 100644 |
--- a/src/full-codegen.h |
+++ b/src/full-codegen.h |
@@ -604,6 +604,15 @@ class FullCodeGenerator: public AstVisitor { |
false_label_(false_label), |
fall_through_(fall_through) { } |
+ static const TestContext* cast(const ExpressionContext* context) { |
+ ASSERT(context->IsTest()); |
+ return reinterpret_cast<const TestContext*>(context); |
+ } |
+ |
+ Label* true_label() const { return true_label_; } |
+ Label* false_label() const { return false_label_; } |
+ Label* fall_through() const { return fall_through_; } |
+ |
virtual void Plug(bool flag) const; |
virtual void Plug(Register reg) const; |
virtual void Plug(Label* materialize_true, Label* materialize_false) const; |