| Index: src/compiler.h
|
| ===================================================================
|
| --- src/compiler.h (revision 7180)
|
| +++ src/compiler.h (working copy)
|
| @@ -80,6 +80,12 @@
|
| 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 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_;
|
|
|
| @@ -265,9 +273,8 @@
|
| #endif
|
|
|
| static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
|
| - Handle<String> name,
|
| - int start_position,
|
| - CompilationInfo* info);
|
| + CompilationInfo* info,
|
| + Handle<SharedFunctionInfo> shared);
|
| };
|
|
|
|
|
|
|