• Home
  • Raw
  • Download

Lines Matching refs:Builtins

38   Builtins::Kind kind;
71 {#Name, Builtins::CPP, {FUNCTION_ADDR(Builtin_##Name)}},
72 #define DECL_TFJ(Name, Count, ...) {#Name, Builtins::TFJ, {Count, 0}},
73 #define DECL_TFC(Name, ...) {#Name, Builtins::TFC, {}},
74 #define DECL_TFS(Name, ...) {#Name, Builtins::TFS, {}},
75 #define DECL_TFH(Name, ...) {#Name, Builtins::TFH, {}},
77 {#Name, Builtins::BCH, {Bytecode, OperandScale}},
78 #define DECL_ASM(Name, ...) {#Name, Builtins::ASM, {}},
91 BytecodeOffset Builtins::GetContinuationBytecodeOffset(Builtin builtin) { in GetContinuationBytecodeOffset()
92 DCHECK(Builtins::KindOf(builtin) == TFJ || Builtins::KindOf(builtin) == TFC || in GetContinuationBytecodeOffset()
93 Builtins::KindOf(builtin) == TFS); in GetContinuationBytecodeOffset()
98 Builtin Builtins::GetBuiltinFromBytecodeOffset(BytecodeOffset id) { in GetBuiltinFromBytecodeOffset()
99 Builtin builtin = Builtins::FromInt( in GetBuiltinFromBytecodeOffset()
101 DCHECK(Builtins::KindOf(builtin) == TFJ || Builtins::KindOf(builtin) == TFC || in GetBuiltinFromBytecodeOffset()
102 Builtins::KindOf(builtin) == TFS); in GetBuiltinFromBytecodeOffset()
106 void Builtins::TearDown() { initialized_ = false; } in TearDown()
108 const char* Builtins::Lookup(Address pc) { in Lookup()
111 if (Builtins::IsBuiltinId(builtin)) return name(builtin); in Lookup()
115 for (Builtin builtin_ix = Builtins::kFirst; builtin_ix <= Builtins::kLast; in Lookup()
124 Handle<CodeT> Builtins::CallFunction(ConvertReceiverMode mode) { in CallFunction()
136 Handle<CodeT> Builtins::Call(ConvertReceiverMode mode) { in Call()
148 Handle<CodeT> Builtins::NonPrimitiveToPrimitive(ToPrimitiveHint hint) { in NonPrimitiveToPrimitive()
160 Handle<CodeT> Builtins::OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint) { in OrdinaryToPrimitive()
170 FullObjectSlot Builtins::builtin_slot(Builtin builtin) { in builtin_slot()
171 Address* location = &isolate_->builtin_table()[Builtins::ToInt(builtin)]; in builtin_slot()
175 FullObjectSlot Builtins::builtin_tier0_slot(Builtin builtin) { in builtin_tier0_slot()
178 &isolate_->builtin_tier0_table()[Builtins::ToInt(builtin)]; in builtin_tier0_slot()
182 void Builtins::set_code(Builtin builtin, CodeT code) { in set_code()
189 isolate_->builtin_table()[Builtins::ToInt(builtin)] = code.ptr(); in set_code()
192 CodeT Builtins::code(Builtin builtin) { in code()
193 Address ptr = isolate_->builtin_table()[Builtins::ToInt(builtin)]; in code()
197 Handle<CodeT> Builtins::code_handle(Builtin builtin) { in code_handle()
198 Address* location = &isolate_->builtin_table()[Builtins::ToInt(builtin)]; in code_handle()
203 int Builtins::GetStackParameterCount(Builtin builtin) { in GetStackParameterCount()
204 DCHECK(Builtins::KindOf(builtin) == TFJ); in GetStackParameterCount()
209 CallInterfaceDescriptor Builtins::CallInterfaceDescriptorFor(Builtin builtin) { in CallInterfaceDescriptorFor()
223 Builtins::Kind kind = Builtins::KindOf(builtin); in CallInterfaceDescriptorFor()
234 Callable Builtins::CallableFor(Isolate* isolate, Builtin builtin) { in CallableFor()
240 bool Builtins::HasJSLinkage(Builtin builtin) { in HasJSLinkage()
241 DCHECK_NE(BCH, Builtins::KindOf(builtin)); in HasJSLinkage()
246 const char* Builtins::name(Builtin builtin) { in name()
252 void Builtins::PrintBuiltinCode() { in PrintBuiltinCode()
255 for (Builtin builtin = Builtins::kFirst; builtin <= Builtins::kLast; in PrintBuiltinCode()
270 void Builtins::PrintBuiltinSize() { in PrintBuiltinSize()
272 for (Builtin builtin = Builtins::kFirst; builtin <= Builtins::kLast; in PrintBuiltinSize()
276 Code code = FromCodeT(Builtins::code(builtin)); in PrintBuiltinSize()
283 Address Builtins::CppEntryOf(Builtin builtin) { in CppEntryOf()
284 DCHECK(Builtins::IsCpp(builtin)); in CppEntryOf()
289 bool Builtins::IsBuiltin(const Code code) { in IsBuiltin()
290 return Builtins::IsBuiltinId(code.builtin_id()); in IsBuiltin()
293 bool Builtins::IsBuiltinHandle(Handle<HeapObject> maybe_code, in IsBuiltinHandle()
298 Address* builtins_table_end = &builtins_table[Builtins::kBuiltinCount]; in IsBuiltinHandle()
305 bool Builtins::IsIsolateIndependentBuiltin(const Code code) { in IsIsolateIndependentBuiltin()
307 return Builtins::IsBuiltinId(builtin) && in IsIsolateIndependentBuiltin()
308 Builtins::IsIsolateIndependent(builtin); in IsIsolateIndependentBuiltin()
312 void Builtins::InitializeIsolateDataTables(Isolate* isolate) { in InitializeIsolateDataTables()
317 for (Builtin i = Builtins::kFirst; i <= Builtins::kLast; ++i) { in InitializeIsolateDataTables()
318 DCHECK(Builtins::IsBuiltinId(isolate->builtins()->code(i).builtin_id())); in InitializeIsolateDataTables()
325 for (Builtin i = Builtins::kFirst; i <= Builtins::kLastTier0; ++i) { in InitializeIsolateDataTables()
334 void Builtins::EmitCodeCreateEvents(Isolate* isolate) { in EmitCodeCreateEvents()
347 Builtins::name(FromInt(i)))); in EmitCodeCreateEvents()
410 Handle<Code> Builtins::GenerateOffHeapTrampolineFor( in GenerateOffHeapTrampolineFor()
432 Handle<ByteArray> Builtins::GenerateOffHeapTrampolineRelocInfo( in GenerateOffHeapTrampolineRelocInfo()
446 Builtins::Kind Builtins::KindOf(Builtin builtin) { in KindOf()
452 const char* Builtins::KindNameOf(Builtin builtin) { in KindNameOf()
453 Kind kind = Builtins::KindOf(builtin); in KindNameOf()
469 bool Builtins::IsCpp(Builtin builtin) { in IsCpp()
470 return Builtins::KindOf(builtin) == CPP; in IsCpp()
474 bool Builtins::AllowDynamicFunction(Isolate* isolate, Handle<JSFunction> target, in AllowDynamicFunction()
488 bool Builtins::CodeObjectIsExecutable(Builtin builtin) { in CodeObjectIsExecutable()
502 if (Builtins::KindOf(builtin) != BCH && HasJSLinkage(builtin)) { in CodeObjectIsExecutable()