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

Unified Diff: src/builtins/builtins.cc

Issue 2153433002: [Interpreter] Collect type feedback for 'new' in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
Index: src/builtins/builtins.cc
diff --git a/src/builtins/builtins.cc b/src/builtins/builtins.cc
index 9a3d070f306c70ef9d2f81707cb87fc1123d78ab..477946d5d45512701b51e8827a2e7f312e7d1a5d 100644
--- a/src/builtins/builtins.cc
+++ b/src/builtins/builtins.cc
@@ -5845,6 +5845,18 @@ Handle<Code> Builtins::InterpreterPushArgsAndCall(TailCallMode tail_call_mode,
return Handle<Code>::null();
}
+Handle<Code> Builtins::InterpreterPushArgsAndConstruct(
+ CallableType function_type) {
+ switch (function_type) {
+ case CallableType::kJSFunction:
+ return InterpreterPushArgsAndConstructFunction();
+ case CallableType::kAny:
+ return InterpreterPushArgsAndConstruct();
+ }
+ UNREACHABLE();
+ return Handle<Code>::null();
+}
+
namespace {
class RelocatableArguments : public BuiltinArguments, public Relocatable {

Powered by Google App Engine
This is Rietveld 408576698