aboutsummaryrefslogtreecommitdiff
path: root/src/code-factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/code-factory.h')
-rw-r--r--src/code-factory.h72
1 files changed, 51 insertions, 21 deletions
diff --git a/src/code-factory.h b/src/code-factory.h
index 033e5d54..d50c7f44 100644
--- a/src/code-factory.h
+++ b/src/code-factory.h
@@ -30,9 +30,16 @@ class Callable final BASE_EMBEDDED {
class V8_EXPORT_PRIVATE CodeFactory final {
public:
+ // CEntryStub has var-args semantics (all the arguments are passed on the
+ // stack and the arguments count is passed via register) which currently
+ // can't be expressed in CallInterfaceDescriptor. Therefore only the code
+ // is exported here.
+ static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1);
+
// Initial states for ICs.
static Callable LoadIC(Isolate* isolate);
static Callable LoadICInOptimizedCode(Isolate* isolate);
+ static Callable LoadICProtoArray(Isolate* isolate, bool throw_if_nonexistent);
static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode);
static Callable LoadGlobalICInOptimizedCode(Isolate* isolate,
TypeofMode typeof_mode);
@@ -42,11 +49,13 @@ class V8_EXPORT_PRIVATE CodeFactory final {
static Callable CallIC(Isolate* isolate,
ConvertReceiverMode mode = ConvertReceiverMode::kAny,
TailCallMode tail_call_mode = TailCallMode::kDisallow);
- static Callable CallICInOptimizedCode(
+ static Callable CallICTrampoline(
Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny,
TailCallMode tail_call_mode = TailCallMode::kDisallow);
static Callable StoreIC(Isolate* isolate, LanguageMode mode);
static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode);
+ static Callable StoreOwnIC(Isolate* isolate);
+ static Callable StoreOwnICInOptimizedCode(Isolate* isolate);
static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode);
static Callable KeyedStoreICInOptimizedCode(Isolate* isolate,
LanguageMode mode);
@@ -54,6 +63,9 @@ class V8_EXPORT_PRIVATE CodeFactory final {
static Callable ResumeGenerator(Isolate* isolate);
+ static Callable FrameDropperTrampoline(Isolate* isolate);
+ static Callable HandleDebuggerStatement(Isolate* isolate);
+
static Callable CompareIC(Isolate* isolate, Token::Value op);
static Callable CompareNilIC(Isolate* isolate, NilValue nil_value);
@@ -99,8 +111,6 @@ class V8_EXPORT_PRIVATE CodeFactory final {
static Callable BitwiseAnd(Isolate* isolate);
static Callable BitwiseOr(Isolate* isolate);
static Callable BitwiseXor(Isolate* isolate);
- static Callable Inc(Isolate* isolate);
- static Callable Dec(Isolate* isolate);
static Callable LessThan(Isolate* isolate);
static Callable LessThanOrEqual(Isolate* isolate);
static Callable GreaterThan(Isolate* isolate);
@@ -112,6 +122,8 @@ class V8_EXPORT_PRIVATE CodeFactory final {
static Callable StringAdd(Isolate* isolate, StringAddFlags flags,
PretenureFlag pretenure_flag);
+ static Callable StringCharAt(Isolate* isolate);
+ static Callable StringCharCodeAt(Isolate* isolate);
static Callable StringCompare(Isolate* isolate, Token::Value token);
static Callable StringEqual(Isolate* isolate);
static Callable StringNotEqual(Isolate* isolate);
@@ -120,52 +132,70 @@ class V8_EXPORT_PRIVATE CodeFactory final {
static Callable StringGreaterThan(Isolate* isolate);
static Callable StringGreaterThanOrEqual(Isolate* isolate);
static Callable SubString(Isolate* isolate);
+ static Callable StringIndexOf(Isolate* isolate);
+ static Callable RegExpReplace(Isolate* isolate);
+ static Callable RegExpSplit(Isolate* isolate);
+
+ static Callable ClassOf(Isolate* isolate);
static Callable Typeof(Isolate* isolate);
+ static Callable GetSuperConstructor(Isolate* isolate);
static Callable FastCloneRegExp(Isolate* isolate);
- static Callable FastCloneShallowArray(Isolate* isolate);
+ static Callable FastCloneShallowArray(Isolate* isolate,
+ AllocationSiteMode allocation_mode);
static Callable FastCloneShallowObject(Isolate* isolate, int length);
- static Callable FastNewFunctionContext(Isolate* isolate);
+ static Callable FastNewFunctionContext(Isolate* isolate,
+ ScopeType scope_type);
static Callable FastNewClosure(Isolate* isolate);
static Callable FastNewObject(Isolate* isolate);
- static Callable FastNewRestParameter(Isolate* isolate,
- bool skip_stub_frame = false);
- static Callable FastNewSloppyArguments(Isolate* isolate,
- bool skip_stub_frame = false);
- static Callable FastNewStrictArguments(Isolate* isolate,
- bool skip_stub_frame = false);
+ static Callable FastNewRestParameter(Isolate* isolate);
+ static Callable FastNewSloppyArguments(Isolate* isolate);
+ static Callable FastNewStrictArguments(Isolate* isolate);
+
+ static Callable ForInPrepare(Isolate* isolate);
+ static Callable ForInNext(Isolate* isolate);
static Callable CopyFastSmiOrObjectElements(Isolate* isolate);
static Callable GrowFastDoubleElements(Isolate* isolate);
static Callable GrowFastSmiOrObjectElements(Isolate* isolate);
+ static Callable NewUnmappedArgumentsElements(Isolate* isolate);
+ static Callable NewRestParameterElements(Isolate* isolate);
+
static Callable AllocateHeapNumber(Isolate* isolate);
-#define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \
- static Callable Allocate##Type(Isolate* isolate);
- SIMD128_TYPES(SIMD128_ALLOC)
-#undef SIMD128_ALLOC
static Callable ArgumentAdaptor(Isolate* isolate);
static Callable Call(Isolate* isolate,
ConvertReceiverMode mode = ConvertReceiverMode::kAny,
TailCallMode tail_call_mode = TailCallMode::kDisallow);
+ static Callable CallWithSpread(Isolate* isolate);
static Callable CallFunction(
- Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny);
+ Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny,
+ TailCallMode tail_call_mode = TailCallMode::kDisallow);
+ static Callable CallForwardVarargs(Isolate* isolate);
+ static Callable CallFunctionForwardVarargs(Isolate* isolate);
static Callable Construct(Isolate* isolate);
+ static Callable ConstructWithSpread(Isolate* isolate);
static Callable ConstructFunction(Isolate* isolate);
+ static Callable CreateIterResultObject(Isolate* isolate);
static Callable HasProperty(Isolate* isolate);
static Callable ForInFilter(Isolate* isolate);
- static Callable InterpreterPushArgsAndCall(
- Isolate* isolate, TailCallMode tail_call_mode,
- CallableType function_type = CallableType::kAny);
- static Callable InterpreterPushArgsAndConstruct(
- Isolate* isolate, CallableType function_type = CallableType::kAny);
+ static Callable InterpreterPushArgsAndCall(Isolate* isolate,
+ TailCallMode tail_call_mode,
+ InterpreterPushArgsMode mode);
+ static Callable InterpreterPushArgsAndConstruct(Isolate* isolate,
+ InterpreterPushArgsMode mode);
static Callable InterpreterPushArgsAndConstructArray(Isolate* isolate);
static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1);
static Callable InterpreterOnStackReplacement(Isolate* isolate);
+
+ static Callable ArrayConstructor(Isolate* isolate);
+ static Callable ArrayPush(Isolate* isolate);
+ static Callable FunctionPrototypeBind(Isolate* isolate);
+ static Callable PromiseHandleReject(Isolate* isolate);
};
} // namespace internal