| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index c8ec2e5ef4a3b0dc02b94bc0f12318d40fdc662d..4eb33e2976f3634412a1f311015f8f700244ed04 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -89,12 +89,6 @@ class CompilationInfo BASE_EMBEDDED {
|
| bool allows_natives_syntax() const {
|
| return IsNativesSyntaxAllowed::decode(flags_);
|
| }
|
| - void MarkAsNative() {
|
| - flags_ |= IsNative::encode(true);
|
| - }
|
| - bool is_native() const {
|
| - return IsNative::decode(flags_);
|
| - }
|
| void SetFunction(FunctionLiteral* literal) {
|
| ASSERT(function_ == NULL);
|
| function_ = literal;
|
| @@ -173,11 +167,9 @@ class CompilationInfo BASE_EMBEDDED {
|
|
|
| void Initialize(Mode mode) {
|
| mode_ = V8::UseCrankshaft() ? mode : NONOPT;
|
| - if (!shared_info_.is_null()) {
|
| - if (shared_info_->strict_mode()) MarkAsStrictMode();
|
| - if (shared_info_->native()) MarkAsNative();
|
| + if (!shared_info_.is_null() && shared_info_->strict_mode()) {
|
| + MarkAsStrictMode();
|
| }
|
| -
|
| }
|
|
|
| void SetMode(Mode mode) {
|
| @@ -199,9 +191,6 @@ class CompilationInfo BASE_EMBEDDED {
|
| class IsStrictMode: public BitField<bool, 4, 1> {};
|
| // Native syntax (%-stuff) allowed?
|
| class IsNativesSyntaxAllowed: public BitField<bool, 5, 1> {};
|
| - // Is this a function from our natives.
|
| - class IsNative: public BitField<bool, 6, 1> {};
|
| -
|
|
|
| unsigned flags_;
|
|
|
|
|