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/common-operator.h

Issue 442253002: Add deoptimization translations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review comments. Created 6 years, 4 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/code-generator.cc ('k') | src/compiler/instruction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index 487c4b0020b87068b3845c92df7edbdee437a97c..3b581ae0cd2c023e8f733eaf265d3979efbd3021 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -43,17 +43,6 @@ class CallOperator : public Operator1<CallDescriptor*> {
}
};
-class FrameStateDescriptor {
- public:
- explicit FrameStateDescriptor(BailoutId bailout_id)
- : bailout_id_(bailout_id) {}
-
- BailoutId bailout_id() const { return bailout_id_; }
-
- private:
- BailoutId bailout_id_;
-};
-
// Interface for building common operators that can be used at any level of IR,
// including JavaScript, mid-level, and low-level.
// TODO(titzer): Move the mnemonics into SimpleOperator and Operator1 classes.
@@ -141,9 +130,13 @@ class CommonOperatorBuilder {
return new (zone_) Operator1<int>(IrOpcode::kEffectPhi, Operator::kPure, 0,
0, "EffectPhi", arguments);
}
- Operator* FrameState(const FrameStateDescriptor& descriptor) {
- return new (zone_) Operator1<FrameStateDescriptor>(
- IrOpcode::kFrameState, Operator::kPure, 0, 1, "FrameState", descriptor);
+ Operator* StateValues(int arguments) {
+ return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure,
+ arguments, 1, "StateValues", arguments);
+ }
+ Operator* FrameState(BailoutId ast_id) {
+ return new (zone_) Operator1<BailoutId>(
+ IrOpcode::kFrameState, Operator::kPure, 3, 1, "FrameState", ast_id);
}
Operator* Call(CallDescriptor* descriptor) {
return new (zone_) CallOperator(descriptor, "Call");
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698