Index: src/full-codegen.h |
diff --git a/src/full-codegen.h b/src/full-codegen.h |
index 87951ebffce478f8e391b2bebe7a6cc329aa1010..4b63172656050201eb7a956f77f4bd1bbdb6977b 100644 |
--- a/src/full-codegen.h |
+++ b/src/full-codegen.h |
@@ -362,13 +362,26 @@ class FullCodeGenerator: public AstVisitor { |
// Try to perform a comparison as a fast inlined literal compare if |
// the operands allow it. Returns true if the compare operations |
// has been matched and all code generated; false otherwise. |
- bool TryLiteralCompare(Token::Value op, |
- Expression* left, |
- Expression* right, |
+ bool TryLiteralCompare(CompareOperation* compare, |
Label* if_true, |
Label* if_false, |
Label* fall_through); |
+ // Platform-specific code for comparing the type of a value with |
+ // a given literal string. |
+ void EmitLiteralCompareTypeof(Expression* expr, |
+ Handle<String> check, |
+ Label* if_true, |
+ Label* if_false, |
+ Label* fall_through); |
+ |
+ // Platform-specific code for strict equality comparison with |
+ // the undefined value. |
+ void EmitLiteralCompareUndefined(Expression* expr, |
+ Label* if_true, |
+ Label* if_false, |
+ Label* fall_through); |
+ |
// Bailout support. |
void PrepareForBailout(Expression* node, State state); |
void PrepareForBailoutForId(int id, State state); |