Home
last modified time | relevance | path

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

12345678

/external/v8/src/
Dcontexts.h79 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
80 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
81 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
83 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \
84 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
85 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \
86 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
88 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
90 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
93 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
[all …]
Dbootstrapper.cc173 Handle<JSFunction> CreateEmptyFunction(Isolate* isolate);
175 Handle<JSFunction> GetStrictPoisonFunction();
177 Handle<JSFunction> GetGeneratorPoisonFunction();
179 void CreateStrictModeFunctionMaps(Handle<JSFunction> empty);
205 Handle<JSFunction> empty_function);
211 Handle<JSFunction> InstallInternalArray(Handle<JSBuiltinsObject> builtins,
219 Handle<JSFunction>* fun,
292 Handle<JSFunction> empty_function);
320 Handle<JSFunction> strict_poison_function;
321 Handle<JSFunction> generator_poison_function;
[all …]
Dfactory.h229 Handle<Context> NewGlobalContext(Handle<JSFunction> function,
236 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function);
239 Handle<Context> NewCatchContext(Handle<JSFunction> function,
245 Handle<Context> NewWithContext(Handle<JSFunction> function,
250 Handle<Context> NewBlockContext(Handle<JSFunction> function,
311 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
360 Handle<JSObject> NewArgumentsObject(Handle<JSFunction> callee, int length);
364 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
367 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor,
371 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
[all …]
Daccessors.cc886 Handle<JSFunction> function) { in GetFunctionPrototype()
889 JSFunction::SetPrototype(function, proto); in GetFunctionPrototype()
896 Handle<JSFunction> function, in SetFunctionPrototype()
907 JSFunction::SetPrototype(function, value); in SetFunctionPrototype()
919 Handle<Object> Accessors::FunctionGetPrototype(Handle<JSFunction> function) { in FunctionGetPrototype()
924 Handle<Object> Accessors::FunctionSetPrototype(Handle<JSFunction> function, in FunctionSetPrototype()
937 Handle<JSFunction> function = in FunctionPrototypeGetter()
938 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder())); in FunctionPrototypeGetter()
954 Handle<JSFunction> object = in FunctionPrototypeSetter()
955 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder())); in FunctionPrototypeSetter()
[all …]
Dexecution.cc39 Handle<JSFunction> function, in Invoke()
87 JSFunction* func = *function; in Invoke()
126 Handle<JSFunction> func = Handle<JSFunction>::cast(callable); in Call()
145 MaybeHandle<Object> Execution::New(Handle<JSFunction> func, in New()
152 MaybeHandle<Object> Execution::TryCall(Handle<JSFunction> func, in TryCall()
213 return Handle<JSFunction>( in GetFunctionDelegate()
236 return Handle<JSFunction>( in TryGetFunctionDelegate()
266 return Handle<JSFunction>( in GetConstructorDelegate()
292 return Handle<JSFunction>( in TryGetConstructorDelegate()
548 Handle<JSFunction> function = Handle<JSFunction>( in NewJSRegExp()
[all …]
Ddebug.cc757 Handle<JSFunction> function = in CompileDebuggerScript()
1039 Handle<JSFunction> check_break_point = in CheckBreakPoint()
1040 Handle<JSFunction>::cast(Object::GetProperty( in CheckBreakPoint()
1075 bool Debug::SetBreakPoint(Handle<JSFunction> function, in SetBreakPoint()
1119 if (!EnsureDebugInfo(shared, Handle<JSFunction>::null())) { in SetBreakPointForScript()
1197 void Debug::FloodWithOneShot(Handle<JSFunction> function) { in FloodWithOneShot()
1216 void Debug::FloodBoundFunctionWithOneShot(Handle<JSFunction> function) { in FloodBoundFunctionWithOneShot()
1218 Handle<Object> bindee(new_bindings->get(JSFunction::kBoundFunctionIndex), in FloodBoundFunctionWithOneShot()
1222 !JSFunction::cast(*bindee)->IsFromNativeScript()) { in FloodBoundFunctionWithOneShot()
1223 Handle<JSFunction> bindee_function(JSFunction::cast(*bindee)); in FloodBoundFunctionWithOneShot()
[all …]
Ddeoptimizer.h83 virtual void VisitFunction(JSFunction* function) = 0;
149 Handle<JSFunction> function() const { return Handle<JSFunction>(function_); } in function()
156 static Deoptimizer* New(JSFunction* function,
182 static void DeoptimizeFunction(JSFunction* function);
299 JSFunction* function,
305 Code* FindOptimizedCode(JSFunction* function, Code* optimized_code);
337 unsigned ComputeFixedSize(JSFunction* function) const;
339 unsigned ComputeIncomingArgumentSize(JSFunction* function) const;
356 Handle<JSFunction> ArgumentsObjectFunction(int object_index) { in ArgumentsObjectFunction()
403 bool HasAlignmentPadding(JSFunction* function);
[all …]
Druntime-profiler.h19 class JSFunction; variable
30 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1);
33 void Optimize(JSFunction* function, const char* reason);
Dcontexts.cc57 JSFunction* closure = JSFunction::cast(current->closure()); in native_context()
280 void Context::AddOptimizedFunction(JSFunction* function) { in AddOptimizedFunction()
287 element = JSFunction::cast(element)->next_function_link(); in AddOptimizedFunction()
318 void Context::RemoveOptimizedFunction(JSFunction* function) { in RemoveOptimizedFunction()
321 JSFunction* prev = NULL; in RemoveOptimizedFunction()
323 JSFunction* element_function = JSFunction::cast(element); in RemoveOptimizedFunction()
Dtype-info.cc59 !CanRetainOtherContext(JSFunction::cast(obj), *native_context_)) { in GetInfo()
131 Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) { in GetCallTarget()
134 return Handle<JSFunction>(isolate()->native_context()->array_function()); in GetCallTarget()
137 return Handle<JSFunction>::cast(info); in GetCallTarget()
141 Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) { in GetCallNewTarget()
144 return Handle<JSFunction>::cast(info); in GetCallNewTarget()
148 return Handle<JSFunction>(isolate()->native_context()->array_function()); in GetCallNewTarget()
336 if (CanRetainOtherContext(JSFunction::cast(constructor), in CanRetainOtherContext()
345 JSFunction* function = JSFunction::cast(constructor); in CanRetainOtherContext()
350 bool TypeFeedbackOracle::CanRetainOtherContext(JSFunction* function, in CanRetainOtherContext()
Dfactory.cc696 Handle<Context> Factory::NewGlobalContext(Handle<JSFunction> function, in NewGlobalContext()
723 Handle<JSFunction> function) { in NewFunctionContext()
736 Handle<Context> Factory::NewCatchContext(Handle<JSFunction> function, in NewCatchContext()
753 Handle<Context> Factory::NewWithContext(Handle<JSFunction> function, in NewWithContext()
767 Handle<Context> Factory::NewBlockContext(Handle<JSFunction> function, in NewBlockContext()
1183 Handle<JSFunction> fun = Handle<JSFunction>::cast(fun_obj); in NewError()
1210 Handle<JSFunction> fun = Handle<JSFunction>::cast(Object::GetProperty( in NewError()
1229 void Factory::InitializeFunction(Handle<JSFunction> function, in InitializeFunction()
1243 Handle<JSFunction> Factory::NewFunction(Handle<Map> map, in NewFunction()
1248 Handle<JSFunction> result = New<JSFunction>(map, space); in NewFunction()
[all …]
Dcompiler.h90 CompilationInfo(Handle<JSFunction> closure, Zone* zone);
109 Handle<JSFunction> closure() const { return closure_; } in closure()
376 bool HasSameOsrEntry(Handle<JSFunction> function, BailoutId osr_ast_id) { in HasSameOsrEntry()
449 Handle<JSFunction> closure_;
530 explicit CompilationInfoWithZone(Handle<JSFunction> closure) in CompilationInfoWithZone()
668 Handle<JSFunction> function);
670 Handle<JSFunction> function);
674 Handle<JSFunction> function);
676 static bool EnsureCompiled(Handle<JSFunction> function,
684 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval(
[all …]
Doptimizing-compiler-thread.h59 OptimizedCompileJob* FindReadyOSRCandidate(Handle<JSFunction> function,
61 bool IsQueuedForOSR(Handle<JSFunction> function, BailoutId osr_ast_id);
63 bool IsQueuedForOSR(JSFunction* function);
/external/v8/src/ic/
Dcall-optimization.h18 explicit CallOptimization(Handle<JSFunction> function);
22 Handle<JSFunction> constant_function() const { in constant_function()
48 void Initialize(Handle<JSFunction> function);
52 void AnalyzePossibleApiFunction(Handle<JSFunction> function);
54 Handle<JSFunction> constant_function_;
Dcall-optimization.cc13 CallOptimization::CallOptimization(Handle<JSFunction> function) { in CallOptimization()
76 void CallOptimization::Initialize(Handle<JSFunction> function) { in Initialize()
77 constant_function_ = Handle<JSFunction>::null(); in Initialize()
89 void CallOptimization::AnalyzePossibleApiFunction(Handle<JSFunction> function) { in AnalyzePossibleApiFunction()
Dhandler-compiler.h126 Handle<JSFunction> getter);
137 Handle<JSFunction> getter);
141 Handle<JSFunction>()); in GenerateLoadViaGetterForDeopt()
211 Handle<JSFunction> setter);
216 Handle<JSFunction> setter);
220 Handle<JSFunction>()); in GenerateStoreViaSetterForDeopt()
/external/v8/src/compiler/
Dcommon-operator.h47 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>())
56 MaybeHandle<JSFunction> jsfunction() const { return jsfunction_; } in jsfunction()
62 MaybeHandle<JSFunction> jsfunction_;
102 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>());
Djs-builtin-reducer-unittest.cc67 Handle<JSFunction> f(isolate()->context()->math_sqrt_fun()); in TEST_F()
87 Handle<JSFunction> f(isolate()->context()->math_max_fun()); in TEST_F()
100 Handle<JSFunction> f(isolate()->context()->math_max_fun()); in TEST_F()
116 Handle<JSFunction> f(isolate()->context()->math_max_fun()); in TEST_F()
152 Handle<JSFunction> f(isolate()->context()->math_imul_fun()); in TEST_F()
Djs-builtin-reducer.cc39 Handle<JSFunction> function = Handle<JSFunction>::cast(m.Value().handle()); in HasBuiltinFunctionId()
47 Handle<JSFunction> function = Handle<JSFunction>::cast(m.Value().handle()); in GetBuiltinFunctionId()
/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 …]
/external/v8/src/heap/
Dobjects-visiting.cc251 struct WeakListVisitor<JSFunction> {
252 static void SetWeakNext(JSFunction* function, Object* next) { in SetWeakNext()
256 static Object* WeakNext(JSFunction* function) { in WeakNext()
260 static int WeakNextOffset() { return JSFunction::kNextFunctionLinkOffset; } in WeakNextOffset()
262 static void VisitLiveObject(Heap*, JSFunction*, WeakObjectRetainer*) {} in VisitLiveObject()
264 static void VisitPhantomObject(Heap*, JSFunction*) {} in VisitPhantomObject()
301 DoWeakList<JSFunction>(heap, context, retainer, in VisitLiveObject()
326 ClearWeakList<JSFunction>(heap, in VisitPhantomObject()
398 template Object* VisitWeakList<JSFunction>(Heap* heap, Object* list,
Dmark-compact.h391 void AddCandidate(JSFunction* function) { in AddCandidate()
408 void EvictCandidate(JSFunction* function);
432 static JSFunction** GetNextCandidateSlot(JSFunction* candidate) { in GetNextCandidateSlot()
433 return reinterpret_cast<JSFunction**>( in GetNextCandidateSlot()
434 HeapObject::RawField(candidate, JSFunction::kNextFunctionLinkOffset)); in GetNextCandidateSlot()
437 static JSFunction* GetNextCandidate(JSFunction* candidate) { in GetNextCandidate()
439 return reinterpret_cast<JSFunction*>(next_candidate); in GetNextCandidate()
442 static void SetNextCandidate(JSFunction* candidate, in SetNextCandidate()
443 JSFunction* next_candidate) { in SetNextCandidate()
447 static void ClearNextCandidate(JSFunction* candidate, Object* undefined) { in ClearNextCandidate()
[all …]
Dobjects-visiting-inl.h509 JSFunction* function = JSFunction::cast(object); in VisitJSFunction()
691 JSFunction* inlined = JSFunction::cast(literals->get(i)); in MarkInlinedFunctionsCode()
712 JSFunction* function) { in IsFlushable()
835 HeapObject::RawField(object, JSFunction::kPropertiesOffset); in VisitJSFunctionStrongCode()
837 HeapObject::RawField(object, JSFunction::kCodeEntryOffset); in VisitJSFunctionStrongCode()
840 VisitCodeEntry(heap, object->address() + JSFunction::kCodeEntryOffset); in VisitJSFunctionStrongCode()
841 STATIC_ASSERT(JSFunction::kCodeEntryOffset + kPointerSize == in VisitJSFunctionStrongCode()
842 JSFunction::kPrototypeOrInitialMapOffset); in VisitJSFunctionStrongCode()
845 HeapObject::RawField(object, JSFunction::kPrototypeOrInitialMapOffset); in VisitJSFunctionStrongCode()
846 end_slot = HeapObject::RawField(object, JSFunction::kNonWeakFieldsEndOffset); in VisitJSFunctionStrongCode()
[all …]
/external/v8/test/cctest/compiler/
Dtest-linkage.cc30 static Handle<JSFunction> Compile(const char* source) { in Compile()
46 Handle<JSFunction> function = Compile("a + b"); in TEST()
60 Handle<JSFunction> function = v8::Utils::OpenHandle( in TEST()
88 Handle<JSFunction> function = Compile("a + c"); in TEST()
Dtest-run-jscalls.cc14 Handle<JSFunction> foo = T.NewFunction("(function(a) { return a; })"); in TEST()
25 Handle<JSFunction> foo = T.NewFunction("(function(a) { return a; })"); in TEST()
37 Handle<JSFunction> foo = T.NewFunction("(function(a,b) { return a + b; })"); in TEST()
49 Handle<JSFunction> foo = T.NewFunction("(function(a,b) { return a + b; })"); in TEST()
263 i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); in TEST()
284 i::Handle<i::JSFunction> jsfun = Handle<JSFunction>::cast(ofun); in TEST()

12345678