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

Unified Diff: src/compiler/js-graph.cc

Issue 841443004: [turbofan] Allow deoptimization for JSToNumber operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 11 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/js-graph.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-graph.cc
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
index 7759ba14418c29c26aaa165d470958ba1abc0f93..68728a1764b78206373c02fc6ac8258f0f1519a0 100644
--- a/src/compiler/js-graph.cc
+++ b/src/compiler/js-graph.cc
@@ -191,6 +191,19 @@ Node* JSGraph::Float64Constant(double value) {
}
+Node* JSGraph::EmptyFrameState() {
+ if (!empty_frame_state_.is_set()) {
+ Node* values = graph()->NewNode(common()->StateValues(0));
+ Node* state_node = graph()->NewNode(
+ common()->FrameState(JS_FRAME, BailoutId(0),
+ OutputFrameStateCombine::Ignore()),
+ values, values, values, NoContextConstant(), UndefinedConstant());
+ empty_frame_state_.set(state_node);
+ }
+ return empty_frame_state_.get();
+}
+
+
Node* JSGraph::ExternalConstant(ExternalReference reference) {
Node** loc = cache_.FindExternalConstant(reference);
if (*loc == NULL) {
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698