| Index: src/compiler.h
|
| ===================================================================
|
| --- src/compiler.h (revision 8778)
|
| +++ src/compiler.h (working copy)
|
| @@ -173,10 +173,13 @@
|
|
|
| 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();
|
| + ASSERT(!script_.is_null());
|
| + if (script_->type()->value() == Script::TYPE_NATIVE) {
|
| + MarkAsNative();
|
| }
|
| + if (!shared_info_.is_null() && shared_info_->strict_mode()) {
|
| + MarkAsStrictMode();
|
| + }
|
| }
|
|
|
| void SetMode(Mode mode) {
|
|
|