| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index d831ac5fd83dff358e61a22ed8668dcfea767b5b..6437173513253b709425cd2fe1abfa392e4b873b 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -297,6 +297,12 @@ class CompilationInfo {
|
| return has_global_object() ? closure()->context()->global_object() : NULL;
|
| }
|
|
|
| + bool has_native_context() const { return has_global_object(); }
|
| +
|
| + Context* native_context() const {
|
| + return has_native_context() ? global_object()->native_context() : nullptr;
|
| + }
|
| +
|
| // Accessors for the different compilation modes.
|
| bool IsOptimizing() const { return mode_ == OPTIMIZE; }
|
| bool IsStub() const { return mode_ == STUB; }
|
|
|