Lines Matching refs:Builtins
31 Builtins::Kind kind;
39 #define DECL_CPP(Name, ...) { #Name, Builtins::CPP, \
41 #define DECL_API(Name, ...) { #Name, Builtins::API, \
44 #define DECL_TFJ(Name, Count, ...) { #Name, Builtins::TFJ, \
48 #define DECL_TFJ(Name, Count, ...) { #Name, Builtins::TFJ, \
51 #define DECL_TFC(Name, ...) { #Name, Builtins::TFC, {} },
52 #define DECL_TFS(Name, ...) { #Name, Builtins::TFS, {} },
53 #define DECL_TFH(Name, ...) { #Name, Builtins::TFH, {} },
54 #define DECL_BCH(Name, ...) { #Name "Handler", Builtins::BCH, {} }, \
55 { #Name "WideHandler", Builtins::BCH, {} }, \
56 { #Name "ExtraWideHandler", Builtins::BCH, {} },
57 #define DECL_ASM(Name, ...) { #Name, Builtins::ASM, {} },
74 BailoutId Builtins::GetContinuationBailoutId(Name name) { in GetContinuationBailoutId()
75 DCHECK(Builtins::KindOf(name) == TFJ || Builtins::KindOf(name) == TFC); in GetContinuationBailoutId()
79 Builtins::Name Builtins::GetBuiltinFromBailoutId(BailoutId id) { in GetBuiltinFromBailoutId()
81 DCHECK(Builtins::KindOf(builtin_index) == TFJ || in GetBuiltinFromBailoutId()
82 Builtins::KindOf(builtin_index) == TFC); in GetBuiltinFromBailoutId()
86 void Builtins::TearDown() { initialized_ = false; } in TearDown()
88 const char* Builtins::Lookup(Address pc) { in Lookup()
104 Handle<Code> Builtins::NewFunctionContext(ScopeType scope_type) { in NewFunctionContext()
116 Handle<Code> Builtins::NonPrimitiveToPrimitive(ToPrimitiveHint hint) { in NonPrimitiveToPrimitive()
128 Handle<Code> Builtins::OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint) { in OrdinaryToPrimitive()
138 void Builtins::set_builtin(int index, HeapObject* builtin) { in set_builtin()
142 Code* Builtins::builtin(int index) { return isolate_->heap()->builtin(index); } in builtin()
144 Handle<Code> Builtins::builtin_handle(int index) { in builtin_handle()
151 int Builtins::GetStackParameterCount(Name name) { in GetStackParameterCount()
152 DCHECK(Builtins::KindOf(name) == TFJ); in GetStackParameterCount()
157 Callable Builtins::CallableFor(Isolate* isolate, Name name) { in CallableFor()
172 Builtins::Kind kind = Builtins::KindOf(name); in CallableFor()
184 const char* Builtins::name(int index) { in name()
190 Address Builtins::CppEntryOf(int index) { in CppEntryOf()
191 DCHECK(Builtins::HasCppImplementation(index)); in CppEntryOf()
196 bool Builtins::IsBuiltin(const Code* code) { in IsBuiltin()
197 return Builtins::IsBuiltinId(code->builtin_index()); in IsBuiltin()
200 bool Builtins::IsBuiltinHandle(Handle<HeapObject> maybe_code, in IsBuiltinHandle()
205 Address end = heap->builtin_address(Builtins::builtin_count); in IsBuiltinHandle()
209 DCHECK(Builtins::IsBuiltinId(*index)); in IsBuiltinHandle()
214 bool Builtins::IsIsolateIndependentBuiltin(const Code* code) { in IsIsolateIndependentBuiltin()
217 return Builtins::IsBuiltinId(builtin_index) && in IsIsolateIndependentBuiltin()
218 Builtins::IsIsolateIndependent(builtin_index); in IsIsolateIndependentBuiltin()
225 bool Builtins::IsLazy(int index) { in IsLazy()
230 if (Builtins::IsIsolateIndependent(index)) return false; in IsLazy()
315 bool Builtins::IsIsolateIndependent(int index) { in IsIsolateIndependent()
369 bool Builtins::IsWasmRuntimeStub(int index) { in IsWasmRuntimeStub()
385 Handle<Code> Builtins::GenerateOffHeapTrampolineFor(Isolate* isolate, in GenerateOffHeapTrampolineFor()
409 Builtins::Kind Builtins::KindOf(int index) { in KindOf()
415 const char* Builtins::KindNameOf(int index) { in KindNameOf()
416 Kind kind = Builtins::KindOf(index); in KindNameOf()
433 bool Builtins::IsCpp(int index) { return Builtins::KindOf(index) == CPP; } in IsCpp()
436 bool Builtins::HasCppImplementation(int index) { in HasCppImplementation()
437 Kind kind = Builtins::KindOf(index); in HasCppImplementation()
442 bool Builtins::AllowDynamicFunction(Isolate* isolate, Handle<JSFunction> target, in AllowDynamicFunction()