Home | History | Annotate | Download | only in src

Lines Matching refs:function

203 // The helper function will 'flatten' Number objects.
851 // Find the name of the function calling eval.
886 Handle<JSFunction> function) {
887 if (!function->has_prototype()) {
888 Handle<Object> proto = isolate->factory()->NewFunctionPrototype(function);
889 JSFunction::SetPrototype(function, proto);
891 return Handle<Object>(function->prototype(), isolate);
896 Handle<JSFunction> function,
899 bool is_observed = function->map()->is_observed();
901 if (function->has_prototype())
902 old_value = handle(function->prototype(), isolate);
904 old_value = isolate->factory()->NewFunctionPrototype(function);
907 JSFunction::SetPrototype(function, value);
908 DCHECK(function->prototype() == *value);
912 function, "update", isolate->factory()->prototype_string(), old_value);
915 return function;
919 Handle<Object> Accessors::FunctionGetPrototype(Handle<JSFunction> function) {
920 return GetFunctionPrototype(function->GetIsolate(), function);
924 Handle<Object> Accessors::FunctionSetPrototype(Handle<JSFunction> function,
926 DCHECK(function->should_have_prototype());
927 Isolate* isolate = function->GetIsolate();
928 return SetFunctionPrototype(isolate, function, prototype);
937 Handle<JSFunction> function =
939 Handle<Object> result = GetFunctionPrototype(isolate, function);
980 Handle<JSFunction> function =
984 if (function->shared()->is_compiled()) {
985 length = function->shared()->length();
987 // If the function isn't compiled yet, the length is not computed
989 if (Compiler::EnsureCompiled(function, KEEP_EXCEPTION)) {
990 length = function->shared()->length();
1005 // Function length is non writable, non configurable.
1030 Handle<JSFunction> function =
1032 Handle<Object> result(function->shared()->name(), isolate);
1041 // Function name is non writable, non configurable.
1090 Handle<JSFunction> function) {
1095 if (functions[i] == *function) return i;
1102 Handle<JSFunction> function) {
1103 if (function->shared()->native()) return isolate->factory()->null_value();
1105 // Find the top invocation of the function by traversing frames.
1108 int function_index = FindFunctionInFrame(frame, function);
1112 // The function in question was inlined. Inlined functions have the
1114 // we can construct a fresh one by interpreting the function's
1116 return ArgumentsForInlinedFunction(frame, function, function_index);
1121 Handle<ScopeInfo> scope_info(function->shared()->scope_info());
1132 // passed to the function.
1140 function, length);
1152 // No frame corresponding to the given function found. Return null.
1157 Handle<Object> Accessors::FunctionGetArguments(Handle<JSFunction> function) {
1158 return GetFunctionArguments(function->GetIsolate(), function);
1167 Handle<JSFunction> function =
1169 Handle<Object> result = GetFunctionArguments(isolate, function);
1178 // Function arguments is non writable, non configurable.
1199 JSFunction* function) {
1200 return current_context->HasSameSecurityTokenAs(function->context());
1227 // Iterate through functions until the first occurence of 'function'.
1228 // Returns true if 'function' is found, and false if the iterator ends
1230 bool Find(JSFunction* function) {
1234 if (next_function == function) return true;
1257 Handle<JSFunction> function) {
1260 if (function->shared()->native()) {
1263 // Find the function from the frames.
1264 if (!it.Find(*function)) {
1265 // No frame corresponding to the given function found. Return null.
1268 // Find previously called non-toplevel function.
1275 // If caller is a built-in function and caller's caller is also built-in,
1286 // allows us to make bound functions use the strict function map
1291 // Censor if the caller is not a sloppy mode function.
1310 Handle<JSFunction> function =
1314 maybe_caller = FindCaller(isolate, function);
1329 // Function caller is non writable, non configurable.