Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: src/compiler/frame-states.h

Issue 1244583003: [turbofan]: Add a context relaxer reducer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really this time Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/js-context-relaxation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/js-context-relaxation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698