| Index: src/compiler/frame-states.h
|
| diff --git a/src/compiler/frame-states.h b/src/compiler/frame-states.h
|
| index 42c41f910733ddc0bceacad40a6bdd2f88a9345b..328679ff74f76d0053bc975736778b2e17053a59 100644
|
| --- a/src/compiler/frame-states.h
|
| +++ b/src/compiler/frame-states.h
|
| @@ -76,26 +76,38 @@ enum class FrameStateType {
|
| };
|
|
|
|
|
| +enum ContextCallingMode {
|
| + CALL_MAINTAINS_NATIVE_CONTEXT,
|
| + CALL_CHANGES_NATIVE_CONTEXT
|
| +};
|
| +
|
| +
|
| class FrameStateFunctionInfo {
|
| public:
|
| FrameStateFunctionInfo(FrameStateType type, int parameter_count,
|
| int local_count,
|
| - Handle<SharedFunctionInfo> shared_info)
|
| + Handle<SharedFunctionInfo> shared_info,
|
| + ContextCallingMode context_calling_mode)
|
| : type_(type),
|
| parameter_count_(parameter_count),
|
| local_count_(local_count),
|
| - shared_info_(shared_info) {}
|
| + shared_info_(shared_info),
|
| + context_calling_mode_(context_calling_mode) {}
|
|
|
| int local_count() const { return local_count_; }
|
| int parameter_count() const { return parameter_count_; }
|
| Handle<SharedFunctionInfo> shared_info() const { return shared_info_; }
|
| FrameStateType type() const { return type_; }
|
| + ContextCallingMode context_calling_mode() const {
|
| + return context_calling_mode_;
|
| + }
|
|
|
| private:
|
| FrameStateType const type_;
|
| int const parameter_count_;
|
| int const local_count_;
|
| Handle<SharedFunctionInfo> const shared_info_;
|
| + ContextCallingMode context_calling_mode_;
|
| };
|
|
|
|
|
|
|