Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index e0a437ac6de8419a777a631772a828796080f763..92ec9ed6c4ff40cac5dbd507481187cef00d738f 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -80,6 +80,12 @@ class CompilationInfo BASE_EMBEDDED { |
ASSERT(is_lazy()); |
flags_ |= IsInLoop::encode(true); |
} |
+ void MarkAsAllowingNativesSyntax() { |
+ flags_ |= IsNativesSyntaxAllowed::encode(true); |
+ } |
+ bool allows_natives_syntax() const { |
+ return IsNativesSyntaxAllowed::decode(flags_); |
+ } |
void SetFunction(FunctionLiteral* literal) { |
ASSERT(function_ == NULL); |
function_ = literal; |
@@ -174,6 +180,8 @@ class CompilationInfo BASE_EMBEDDED { |
class IsInLoop: public BitField<bool, 3, 1> {}; |
// Strict mode - used in eager compilation. |
class IsStrict: public BitField<bool, 4, 1> {}; |
+ // Native syntax (%-stuff) allowed? |
+ class IsNativesSyntaxAllowed: public BitField<bool, 5, 1> {}; |
unsigned flags_; |