Home
last modified time | relevance | path

Searched refs:JSFunction (Results 1 – 25 of 248) sorted by relevance

12345678910

/external/v8/src/
Dcontexts.h81 V(IS_ARRAYLIKE, JSFunction, is_arraylike) \
82 V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \
83 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \
84 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \
85 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \
86 V(OBJECT_FREEZE, JSFunction, object_freeze) \
87 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \
88 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \
89 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \
90 V(OBJECT_KEYS, JSFunction, object_keys) \
[all …]
Dbootstrapper.cc152 Handle<JSFunction> CreateEmptyFunction(Isolate* isolate);
154 Handle<JSFunction> GetRestrictedFunctionPropertiesThrower();
155 Handle<JSFunction> GetStrictArgumentsPoisonFunction();
156 Handle<JSFunction> GetThrowTypeErrorIntrinsic(Builtins::Name builtin_name);
158 void CreateStrictModeFunctionMaps(Handle<JSFunction> empty);
159 void CreateStrongModeFunctionMaps(Handle<JSFunction> empty);
189 Handle<JSFunction> empty_function,
204 Handle<JSFunction> InstallArrayBuffer(Handle<JSObject> target,
206 Handle<JSFunction> InstallInternalArray(Handle<JSObject> target,
212 Handle<JSFunction>* fun);
[all …]
Dfactory.h228 Handle<Context> NewScriptContext(Handle<JSFunction> function,
238 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function);
241 Handle<Context> NewCatchContext(Handle<JSFunction> function,
247 Handle<Context> NewWithContext(Handle<JSFunction> function,
252 Handle<Context> NewBlockContext(Handle<JSFunction> function,
312 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
372 Handle<JSObject> NewArgumentsObject(Handle<JSFunction> callee, int length);
376 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
379 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor,
383 Handle<JSGlobalObject> NewJSGlobalObject(Handle<JSFunction> constructor);
[all …]
Daccessors.cc127 JSFunction::cast(map->GetConstructor())->prototype(); in IsJSArrayBufferViewFieldAccessor()
871 Handle<JSFunction> function) { in GetFunctionPrototype()
874 JSFunction::SetPrototype(function, proto); in GetFunctionPrototype()
881 Isolate* isolate, Handle<JSFunction> function, Handle<Object> value) { in SetFunctionPrototype()
891 JSFunction::SetPrototype(function, value); in SetFunctionPrototype()
904 MaybeHandle<Object> Accessors::FunctionSetPrototype(Handle<JSFunction> function, in FunctionSetPrototype()
917 Handle<JSFunction> function = in FunctionPrototypeGetter()
918 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder())); in FunctionPrototypeGetter()
931 Handle<JSFunction> object = in FunctionPrototypeSetter()
932 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder())); in FunctionPrototypeSetter()
[all …]
Dapi-natives.cc22 MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate,
214 Handle<JSFunction> cons; in InstantiateObject()
220 isolate, cons, InstantiateFunction(isolate, cons_templ), JSFunction); in InstantiateObject()
224 isolate, result, ConfigureInstance(isolate, object, info), JSFunction); in InstantiateObject()
232 Handle<JSFunction> function) { in CacheFunction()
248 MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate, in InstantiateFunction()
257 return handle(JSFunction::cast(element), isolate); in InstantiateFunction()
272 JSFunction); in InstantiateFunction()
276 Handle<JSFunction> parent_instance; in InstantiateFunction()
281 JSFunction); in InstantiateFunction()
[all …]
Druntime-profiler.h19 class JSFunction; variable
30 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1);
33 void Optimize(JSFunction* function, const char* reason);
Ddeoptimizer.h305 virtual void VisitFunction(JSFunction* function) = 0;
452 Handle<JSFunction> function() const { return Handle<JSFunction>(function_); } in function()
459 static Deoptimizer* New(JSFunction* function,
485 static void DeoptimizeFunction(JSFunction* function);
584 JSFunction* function,
590 Code* FindOptimizedCode(JSFunction* function, Code* optimized_code);
614 unsigned ComputeJavascriptFixedSize(JSFunction* function) const;
615 unsigned ComputeInterpretedFixedSize(JSFunction* function) const;
617 unsigned ComputeIncomingArgumentSize(JSFunction* function) const;
659 bool HasAlignmentPadding(JSFunction* function);
[all …]
Dfactory.cc750 Handle<Context> Factory::NewScriptContext(Handle<JSFunction> function, in NewScriptContext()
787 Handle<JSFunction> function) { in NewFunctionContext()
800 Handle<Context> Factory::NewCatchContext(Handle<JSFunction> function, in NewCatchContext()
817 Handle<Context> Factory::NewWithContext(Handle<JSFunction> function, in NewWithContext()
831 Handle<Context> Factory::NewBlockContext(Handle<JSFunction> function, in NewBlockContext()
1125 Handle<Object> Factory::NewError(Handle<JSFunction> constructor, in SIMD128_TYPES()
1136 Handle<JSFunction> fun = isolate()->make_error_function(); in SIMD128_TYPES()
1161 Handle<Object> Factory::NewError(Handle<JSFunction> constructor, in NewError()
1196 Handle<JSFunction> Factory::NewFunction(Handle<Map> map, in DEFINE_ERROR()
1201 Handle<JSFunction> function = New<JSFunction>(map, space); in DEFINE_ERROR()
[all …]
/external/v8/src/runtime/
Druntime-function.cc22 CONVERT_ARG_CHECKED(JSFunction, f, 0); in RUNTIME_FUNCTION()
31 CONVERT_ARG_HANDLE_CHECKED(JSFunction, f, 0); in RUNTIME_FUNCTION()
44 CONVERT_ARG_CHECKED(JSFunction, f, 0); in RUNTIME_FUNCTION()
59 Handle<Object> script(Handle<JSFunction>::cast(function)->shared()->script(), in RUNTIME_FUNCTION()
71 return *Handle<JSFunction>::cast(function)->shared()->GetSourceCode(); in RUNTIME_FUNCTION()
79 CONVERT_ARG_CHECKED(JSFunction, fun, 0); in RUNTIME_FUNCTION()
103 CONVERT_ARG_CHECKED(JSFunction, fun, 0); in RUNTIME_FUNCTION()
114 CONVERT_ARG_CHECKED(JSFunction, fun, 0); in RUNTIME_FUNCTION()
127 CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); in RUNTIME_FUNCTION()
140 CONVERT_ARG_CHECKED(JSFunction, f, 0); in RUNTIME_FUNCTION()
[all …]
Druntime-test.cc19 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
38 Handle<JSFunction> function; in RUNTIME_FUNCTION()
45 function = Handle<JSFunction>(it.frame()->function()); in RUNTIME_FUNCTION()
87 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
115 Handle<JSFunction> function = Handle<JSFunction>::null(); in RUNTIME_FUNCTION()
122 function = Handle<JSFunction>(it.frame()->function()); in RUNTIME_FUNCTION()
129 CONVERT_ARG_HANDLE_CHECKED(JSFunction, arg, 0); in RUNTIME_FUNCTION()
155 CONVERT_ARG_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
175 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
211 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
[all …]
Druntime-compiler.cc23 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
49 Object* CompileOptimized(Isolate* isolate, Handle<JSFunction> function, in CompileOptimized()
85 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
93 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
139 Handle<JSFunction> function = deoptimizer->function(); in RUNTIME_FUNCTION()
193 Handle<JSFunction> function) { in IsSuitableForOnStackReplacement()
213 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
342 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); in RUNTIME_FUNCTION()
397 Handle<JSFunction> compiled; in CompileGlobalEval()
427 Handle<SharedFunctionInfo> outer_info(args.at<JSFunction>(2)->shared(), in RUNTIME_FUNCTION()
/external/v8/src/heap/
Dmark-compact-inl.h93 void CodeFlusher::AddCandidate(JSFunction* function) { in AddCandidate()
102 JSFunction** CodeFlusher::GetNextCandidateSlot(JSFunction* candidate) { in GetNextCandidateSlot()
103 return reinterpret_cast<JSFunction**>( in GetNextCandidateSlot()
104 HeapObject::RawField(candidate, JSFunction::kNextFunctionLinkOffset)); in GetNextCandidateSlot()
108 JSFunction* CodeFlusher::GetNextCandidate(JSFunction* candidate) { in GetNextCandidate()
110 return reinterpret_cast<JSFunction*>(next_candidate); in GetNextCandidate()
114 void CodeFlusher::SetNextCandidate(JSFunction* candidate, in SetNextCandidate()
115 JSFunction* next_candidate) { in SetNextCandidate()
120 void CodeFlusher::ClearNextCandidate(JSFunction* candidate, Object* undefined) { in ClearNextCandidate()
Dobjects-visiting.cc245 struct WeakListVisitor<JSFunction> {
246 static void SetWeakNext(JSFunction* function, Object* next) { in SetWeakNext()
250 static Object* WeakNext(JSFunction* function) { in WeakNext()
254 static int WeakNextOffset() { return JSFunction::kNextFunctionLinkOffset; } in WeakNextOffset()
256 static void VisitLiveObject(Heap*, JSFunction*, WeakObjectRetainer*) {} in VisitLiveObject()
258 static void VisitPhantomObject(Heap*, JSFunction*) {} in VisitPhantomObject()
295 DoWeakList<JSFunction>(heap, context, retainer, in VisitLiveObject()
332 ClearWeakList<JSFunction>(heap, in VisitPhantomObject()
Dmark-compact.h280 inline void AddCandidate(JSFunction* function);
283 void EvictCandidate(JSFunction* function);
296 static inline JSFunction** GetNextCandidateSlot(JSFunction* candidate);
297 static inline JSFunction* GetNextCandidate(JSFunction* candidate);
298 static inline void SetNextCandidate(JSFunction* candidate,
299 JSFunction* next_candidate);
300 static inline void ClearNextCandidate(JSFunction* candidate,
310 JSFunction* jsfunction_candidates_head_;
/external/v8/test/cctest/
Dtest-compiler.cc58 static Handle<JSFunction> Compile(const char* source) { in Compile()
76 Handle<JSFunction> fun = Compile(buffer.start()); in Inc()
93 Handle<JSFunction> fun = Compile("result = x + y;"); in Add()
112 Handle<JSFunction> fun = Compile("if (x < 0) result = -x; else result = x;"); in Abs()
130 Handle<JSFunction> fun = in Sum()
153 Handle<JSFunction> fun = Compile(source); in TEST()
184 Handle<JSFunction> fun = Compile(source); in TEST()
198 Handle<JSFunction> fun = Compile(source); in TEST()
222 Handle<JSFunction> fun0 = Compile(source); in TEST()
239 Handle<JSFunction>::cast(fun1), in TEST()
[all …]
Dtest-inobject-slack-tracking.cc145 Handle<JSFunction> func = GetGlobal<JSFunction>("A"); in TEST()
207 Handle<JSFunction> func = GetGlobal<JSFunction>("A"); in TEST()
293 Handle<JSFunction> func = GetGlobal<JSFunction>("A"); in TEST()
368 Handle<JSFunction> a_func = GetLexical<JSFunction>("A"); in TEST()
369 Handle<JSFunction> b_func = GetLexical<JSFunction>("B"); in TEST()
462 Handle<JSFunction> a_func = GetLexical<JSFunction>("A"); in TEST()
463 Handle<JSFunction> b_func = GetLexical<JSFunction>("B"); in TEST()
594 Handle<JSFunction> func = GetLexical<JSFunction>(class_name); in TestClassHierarchy()
691 Handle<JSFunction> func = GetLexical<JSFunction>(class_name); in TEST()
750 Handle<JSFunction> func = GetLexical<JSFunction>(class_name); in TEST()
[all …]
Dtest-feedback-vector.cc25 static Handle<JSFunction> GetFunction(const char* name) { in GetFunction()
28 Handle<JSFunction> f = in GetFunction()
29 Handle<JSFunction>::cast(v8::Utils::OpenHandle(*v8_f.ToLocalChecked())); in GetFunction()
208 Handle<JSFunction> f = GetFunction("f"); in TEST()
249 Handle<JSFunction> f = GetFunction("f"); in TEST()
308 Handle<JSFunction> f = GetFunction("f"); in TEST()
332 Handle<JSFunction> f = GetFunction("f"); in TEST()
396 Handle<JSFunction> f = GetFunction("testvar"); in TEST()
416 Handle<JSFunction> f = GetFunction("testprop"); in TEST()
433 Handle<JSFunction> f = GetFunction("testpropfunc"); in TEST()
[all …]
/external/v8/test/cctest/wasm/
Dtest-run-wasm-js.cc29 Handle<JSFunction> jsfunc = Handle<JSFunction>::cast(v8::Utils::OpenHandle( in AddJsFunction()
40 static Handle<JSFunction> WrapCode(ModuleEnv* module, uint32_t index) { in WrapCode()
52 static void EXPECT_CALL(double expected, Handle<JSFunction> jsfunc, double a, in EXPECT_CALL()
77 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module)); in TEST()
89 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module)); in TEST()
101 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module)); in TEST()
113 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module)); in TEST()
134 Handle<JSFunction> jsfunc = WrapCode(&module, t.CompileAndAdd(&module)); in TEST()
/external/v8/src/ic/
Dcall-optimization.h18 explicit CallOptimization(Handle<JSFunction> function);
22 Handle<JSFunction> constant_function() const { in constant_function()
53 void Initialize(Handle<JSFunction> function);
57 void AnalyzePossibleApiFunction(Handle<JSFunction> function);
59 Handle<JSFunction> constant_function_;
Dcall-optimization.cc11 CallOptimization::CallOptimization(Handle<JSFunction> function) { in CallOptimization()
84 void CallOptimization::Initialize(Handle<JSFunction> function) { in Initialize()
85 constant_function_ = Handle<JSFunction>::null(); in Initialize()
97 void CallOptimization::AnalyzePossibleApiFunction(Handle<JSFunction> function) { in AnalyzePossibleApiFunction()
/external/v8/test/cctest/compiler/
Dfunction-tester.h56 Handle<JSFunction> function;
133 Handle<JSFunction> NewFunction(const char* source) { in NewFunction()
134 return Handle<JSFunction>::cast(v8::Utils::OpenHandle( in NewFunction()
165 Handle<JSFunction> Compile(Handle<JSFunction> function) { in Compile()
195 static Handle<JSFunction> ForMachineGraph(Graph* graph, int param_count) { in ForMachineGraph()
196 JSFunction* p = NULL; in ForMachineGraph()
201 return Handle<JSFunction>(p); // allocated in outer handle scope. in ForMachineGraph()
228 Handle<JSFunction> CompileGraph(Graph* graph) { in CompileGraph()
Dtest-linkage.cc28 static Handle<JSFunction> Compile(const char* source) { in Compile()
44 Handle<JSFunction> function = Compile("a + b"); in TEST()
58 Handle<JSFunction> function = in TEST()
59 Handle<JSFunction>::cast(v8::Utils::OpenHandle( in TEST()
90 Handle<JSFunction> function = Compile("a + c"); in TEST()
Dtest-run-jscalls.cc13 Handle<JSFunction> foo = T.NewFunction("(function(a) { return a; })"); in TEST()
24 Handle<JSFunction> foo = T.NewFunction("(function(a) { return a; })"); in TEST()
36 Handle<JSFunction> foo = T.NewFunction("(function(a,b) { return a + b; })"); in TEST()
48 Handle<JSFunction> foo = T.NewFunction("(function(a,b) { return a + b; })"); in TEST()
214 i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); in TEST()
238 i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); in TEST()
/external/v8/src/debug/
Ddebug-scopes.h41 ScopeIterator(Isolate* isolate, Handle<JSFunction> function);
98 inline Handle<JSFunction> GetFunction() { in GetFunction()
99 return Handle<JSFunction>( in GetFunction()
100 JSFunction::cast(frame_inspector_->GetFunction())); in GetFunction()
Ddebug.cc438 Handle<JSFunction> function(frame->function()); in Break()
549 Handle<JSFunction> fun = Handle<JSFunction>::cast( in CallFunction()
580 bool Debug::SetBreakPoint(Handle<JSFunction> function, in SetBreakPoint()
622 if (!EnsureDebugInfo(shared, Handle<JSFunction>::null())) { in SetBreakPointForScript()
709 void Debug::FloodWithOneShot(Handle<JSFunction> function, in FloodWithOneShot()
761 void Debug::PrepareStepIn(Handle<JSFunction> function) { in PrepareStepIn()
795 FloodWithOneShot(Handle<JSFunction>(it.frame()->function())); in PrepareStepOnThrow()
830 JSFunction* function = frames_it.frame()->function(); in PrepareStep()
831 FloodWithOneShot(Handle<JSFunction>(function)); in PrepareStep()
837 Handle<JSFunction> function(summary.function()); in PrepareStep()
[all …]

12345678910