Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 9353ab515617006609013744cb2035b04d38eae1..a243ca5cc76b8cbe247b0737d400d723316fe5e0 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -1290,6 +1290,26 @@ int FullCodeGenerator::TryCatch::Exit(int stack_depth) { |
} |
+bool FullCodeGenerator::TryLiteralCompare(CompareOperation* compare, |
+ Label* if_true, |
+ Label* if_false, |
+ Label* fall_through) { |
+ Expression *expr; |
+ Handle<String> check; |
+ if (compare->IsLiteralCompareTypeof(&expr, &check)) { |
+ EmitLiteralCompareTypeof(expr, check, if_true, if_false, fall_through); |
+ return true; |
+ } |
+ |
+ if (compare->IsLiteralCompareUndefined(&expr)) { |
+ EmitLiteralCompareUndefined(expr, if_true, if_false, fall_through); |
+ return true; |
+ } |
+ |
+ return false; |
+} |
+ |
+ |
#undef __ |