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

Unified Diff: src/compiler/common-operator.h

Issue 892513003: [turbofan] Initial support for Switch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Wuschelstudio build. Created 5 years, 10 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-impl.h ('k') | src/compiler/common-operator.cc » ('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 005823cf631d0930ddfc3d29774236e3a41c52dc..55b1c8e590c0e27cad221d94735c2d4c77cfcff2 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -33,6 +33,9 @@ std::ostream& operator<<(std::ostream&, BranchHint);
BranchHint BranchHintOf(const Operator* const);
+size_t CaseIndexOf(const Operator* const);
+
+
class SelectParameters FINAL {
public:
explicit SelectParameters(MachineType type,
@@ -172,6 +175,8 @@ class CommonOperatorBuilder FINAL : public ZoneObject {
const Operator* Branch(BranchHint = BranchHint::kNone);
const Operator* IfTrue();
const Operator* IfFalse();
+ const Operator* Switch(size_t control_output_count);
+ const Operator* Case(size_t index);
const Operator* Throw();
const Operator* Return();
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698