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

Side by Side Diff: src/code-factory.h

Issue 2949813002: [turbofan] Introduce new JSConstructWithArrayLike operator. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_FACTORY_H_ 5 #ifndef V8_CODE_FACTORY_H_
6 #define V8_CODE_FACTORY_H_ 6 #define V8_CODE_FACTORY_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/callable.h" 10 #include "src/callable.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 TailCallMode tail_call_mode = TailCallMode::kDisallow); 89 TailCallMode tail_call_mode = TailCallMode::kDisallow);
90 static Callable CallWithArrayLike(Isolate* isolate); 90 static Callable CallWithArrayLike(Isolate* isolate);
91 static Callable CallWithSpread(Isolate* isolate); 91 static Callable CallWithSpread(Isolate* isolate);
92 static Callable CallFunction( 92 static Callable CallFunction(
93 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny, 93 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny,
94 TailCallMode tail_call_mode = TailCallMode::kDisallow); 94 TailCallMode tail_call_mode = TailCallMode::kDisallow);
95 static Callable CallVarargs(Isolate* isolate); 95 static Callable CallVarargs(Isolate* isolate);
96 static Callable CallForwardVarargs(Isolate* isolate); 96 static Callable CallForwardVarargs(Isolate* isolate);
97 static Callable CallFunctionForwardVarargs(Isolate* isolate); 97 static Callable CallFunctionForwardVarargs(Isolate* isolate);
98 static Callable Construct(Isolate* isolate); 98 static Callable Construct(Isolate* isolate);
99 static Callable ConstructWithArrayLike(Isolate* isolate);
99 static Callable ConstructWithSpread(Isolate* isolate); 100 static Callable ConstructWithSpread(Isolate* isolate);
100 static Callable ConstructFunction(Isolate* isolate); 101 static Callable ConstructFunction(Isolate* isolate);
101 static Callable ConstructVarargs(Isolate* isolate); 102 static Callable ConstructVarargs(Isolate* isolate);
102 static Callable ConstructForwardVarargs(Isolate* isolate); 103 static Callable ConstructForwardVarargs(Isolate* isolate);
103 static Callable ConstructFunctionForwardVarargs(Isolate* isolate); 104 static Callable ConstructFunctionForwardVarargs(Isolate* isolate);
104 105
105 static Callable InterpreterPushArgsThenCall(Isolate* isolate, 106 static Callable InterpreterPushArgsThenCall(Isolate* isolate,
106 ConvertReceiverMode receiver_mode, 107 ConvertReceiverMode receiver_mode,
107 TailCallMode tail_call_mode, 108 TailCallMode tail_call_mode,
108 InterpreterPushArgsMode mode); 109 InterpreterPushArgsMode mode);
109 static Callable InterpreterPushArgsThenConstruct( 110 static Callable InterpreterPushArgsThenConstruct(
110 Isolate* isolate, InterpreterPushArgsMode mode); 111 Isolate* isolate, InterpreterPushArgsMode mode);
111 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate); 112 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate);
112 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); 113 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1);
113 static Callable InterpreterOnStackReplacement(Isolate* isolate); 114 static Callable InterpreterOnStackReplacement(Isolate* isolate);
114 115
115 static Callable ArrayConstructor(Isolate* isolate); 116 static Callable ArrayConstructor(Isolate* isolate);
116 static Callable ArrayPop(Isolate* isolate); 117 static Callable ArrayPop(Isolate* isolate);
117 static Callable ArrayPush(Isolate* isolate); 118 static Callable ArrayPush(Isolate* isolate);
118 static Callable ArrayShift(Isolate* isolate); 119 static Callable ArrayShift(Isolate* isolate);
119 static Callable FunctionPrototypeBind(Isolate* isolate); 120 static Callable FunctionPrototypeBind(Isolate* isolate);
120 }; 121 };
121 122
122 } // namespace internal 123 } // namespace internal
123 } // namespace v8 124 } // namespace v8
124 125
125 #endif // V8_CODE_FACTORY_H_ 126 #endif // V8_CODE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698