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

Unified Diff: src/builtins/builtins.h

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.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index e7d60188ceda3a60cc2bdf361052476417c85a08..6f934a61d9b02fae60de8e4148677d3c5913a4ad 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -115,6 +115,7 @@ namespace internal {
ASM(InterpreterPushArgsAndCall) \
ASM(InterpreterPushArgsAndTailCall) \
ASM(InterpreterPushArgsAndConstruct) \
+ ASM(InterpreterPushArgsAndConstructFunction) \
ASM(InterpreterEnterBytecodeDispatch) \
/* Code life-cycle */ \
ASM(CompileLazy) \
@@ -451,6 +452,7 @@ class Builtins {
Handle<Code> InterpreterPushArgsAndCall(
TailCallMode tail_call_mode,
CallableType function_type = CallableType::kAny);
+ Handle<Code> InterpreterPushArgsAndConstruct(CallableType function_type);
Code* builtin(Name name) {
// Code::cast cannot be used here since we access builtins
@@ -808,7 +810,18 @@ class Builtins {
static void Generate_InterpreterPushArgsAndCallImpl(
MacroAssembler* masm, TailCallMode tail_call_mode,
CallableType function_type);
- static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm);
+
+ static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) {
+ return Generate_InterpreterPushArgsAndConstructImpl(masm,
+ CallableType::kAny);
+ }
+ static void Generate_InterpreterPushArgsAndConstructFunction(
+ MacroAssembler* masm) {
+ return Generate_InterpreterPushArgsAndConstructImpl(
+ masm, CallableType::kJSFunction);
+ }
+ static void Generate_InterpreterPushArgsAndConstructImpl(
+ MacroAssembler* masm, CallableType function_type);
#define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \
static void Generate_Make##C##CodeYoungAgainEvenMarking( \

Powered by Google App Engine
This is Rietveld 408576698