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

Unified Diff: src/compiler/typer.cc

Issue 989123003: [turbofan] Project exception value out of calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 9 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/opcodes.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index 7419db2268362c86de4d97a8c3a0dd9102f3c275..9da27443d9330506e705de607070b5a02f799242 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -228,6 +228,7 @@ class Typer::Visitor : public Reducer {
case IrOpcode::k##x: \
return UpdateBounds(node, Type##x(node));
DECLARE_CASE(Start)
+ DECLARE_CASE(IfException)
// VALUE_OP_LIST without JS_SIMPLE_BINOP_LIST:
COMMON_OP_LIST(DECLARE_CASE)
SIMPLIFIED_OP_LIST(DECLARE_CASE)
@@ -239,8 +240,22 @@ class Typer::Visitor : public Reducer {
#undef DECLARE_CASE
#define DECLARE_CASE(x) case IrOpcode::k##x:
+ DECLARE_CASE(Dead)
+ DECLARE_CASE(Loop)
+ DECLARE_CASE(Branch)
+ DECLARE_CASE(IfTrue)
+ DECLARE_CASE(IfFalse)
+ DECLARE_CASE(IfSuccess)
+ DECLARE_CASE(Switch)
+ DECLARE_CASE(IfValue)
+ DECLARE_CASE(IfDefault)
+ DECLARE_CASE(Merge)
+ DECLARE_CASE(Deoptimize)
+ DECLARE_CASE(Return)
+ DECLARE_CASE(OsrNormalEntry)
+ DECLARE_CASE(OsrLoopEntry)
+ DECLARE_CASE(Throw)
DECLARE_CASE(End)
- INNER_CONTROL_OP_LIST(DECLARE_CASE)
#undef DECLARE_CASE
break;
}
@@ -256,6 +271,7 @@ class Typer::Visitor : public Reducer {
#define DECLARE_CASE(x) case IrOpcode::k##x: return Type##x(node);
DECLARE_CASE(Start)
+ DECLARE_CASE(IfException)
// VALUE_OP_LIST without JS_SIMPLE_BINOP_LIST:
COMMON_OP_LIST(DECLARE_CASE)
SIMPLIFIED_OP_LIST(DECLARE_CASE)
@@ -267,8 +283,22 @@ class Typer::Visitor : public Reducer {
#undef DECLARE_CASE
#define DECLARE_CASE(x) case IrOpcode::k##x:
+ DECLARE_CASE(Dead)
+ DECLARE_CASE(Loop)
+ DECLARE_CASE(Branch)
+ DECLARE_CASE(IfTrue)
+ DECLARE_CASE(IfFalse)
+ DECLARE_CASE(IfSuccess)
+ DECLARE_CASE(Switch)
+ DECLARE_CASE(IfValue)
+ DECLARE_CASE(IfDefault)
+ DECLARE_CASE(Merge)
+ DECLARE_CASE(Deoptimize)
+ DECLARE_CASE(Return)
+ DECLARE_CASE(OsrNormalEntry)
+ DECLARE_CASE(OsrLoopEntry)
+ DECLARE_CASE(Throw)
DECLARE_CASE(End)
- INNER_CONTROL_OP_LIST(DECLARE_CASE)
#undef DECLARE_CASE
break;
}
@@ -285,6 +315,7 @@ class Typer::Visitor : public Reducer {
#define DECLARE_METHOD(x) inline Bounds Type##x(Node* node);
DECLARE_METHOD(Start)
+ DECLARE_METHOD(IfException)
VALUE_OP_LIST(DECLARE_METHOD)
#undef DECLARE_METHOD
@@ -602,6 +633,11 @@ Bounds Typer::Visitor::TypeStart(Node* node) {
}
+Bounds Typer::Visitor::TypeIfException(Node* node) {
+ return Bounds::Unbounded(zone());
+}
+
+
// Common operators.
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698