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

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

Issue 1460503008: [turbofan] Switch passing of new.target to register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-pass-new-target-6
Patch Set: Created 5 years, 1 month 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
Index: src/compiler/js-inlining.cc
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
index c2cdf5f6dd46cd0a011ebf98b70abffefaf7342f..18005fab1179bf7b7bf99fa74f7bff0aa145ada9 100644
--- a/src/compiler/js-inlining.cc
+++ b/src/compiler/js-inlining.cc
@@ -426,9 +426,6 @@ Reduction JSInliner::ReduceJSCall(Node* node, Handle<JSFunction> function) {
call.target(), call.new_target(),
context, frame_state, effect);
NodeProperties::ReplaceEffectInput(node, create);
- // TODO(4544): For now Runtime_GetNewTarget depends on the actual target to
- // coincide with the new target. Fix this!
- CHECK_EQ(call.target(), call.new_target());
// TODO(4544): For derived constructors we should not allocate an implicit
// receiver and also the return value should not be checked afterwards.
CHECK(!IsClassConstructor(function->shared()->kind()));

Powered by Google App Engine
This is Rietveld 408576698