Lines Matching refs:Function
34 // const $Function = global.Function;
48 // Helper function used to install functions on objects.
49 function InstallFunctions(object, attributes, functions) {
65 // functions on String.prototype etc. and then restore the old function
67 function InstallFunctionsOnHiddenPrototype(object, attributes, functions) {
78 function GlobalIsNaN(number) {
85 function GlobalIsFinite(number) {
94 function GlobalParseInt(string, radix) {
124 function GlobalParseFloat(string) {
131 function GlobalEval(x) {
153 function SetupGlobal() {
163 // Setup non-enumerable function on the global object.
180 %SetCode($Boolean, function(x) {
198 function ObjectToString() {
204 function ObjectToLocaleString() {
210 function ObjectValueOf() {
216 function ObjectHasOwnProperty(V) {
222 function ObjectIsPrototypeOf(V) {
229 function ObjectPropertyIsEnumerable(V) {
235 function ObjectDefineGetter(name, fun) {
240 throw new $TypeError('Object.prototype.__defineGetter__: Expecting function');
250 function ObjectLookupGetter(name) {
258 function ObjectDefineSetter(name, fun) {
264 'Object.prototype.__defineSetter__: Expecting function');
274 function ObjectLookupSetter(name) {
282 function ObjectKeys(obj) {
290 function IsAccessorDescriptor(desc) {
297 function IsDataDescriptor(desc) {
304 function IsGenericDescriptor(desc) {
309 function IsInconsistentDescriptor(desc) {
314 function FromPropertyDescriptor(desc) {
331 function ToPropertyDescriptor(obj) {
376 function PropertyDescriptor() {
394 PropertyDescriptor.prototype.toString = function() {
398 PropertyDescriptor.prototype.setValue = function(value) {
404 PropertyDescriptor.prototype.getValue = function() {
409 PropertyDescriptor.prototype.hasValue = function() {
414 PropertyDescriptor.prototype.setEnumerable = function(enumerable) {
420 PropertyDescriptor.prototype.isEnumerable = function () {
425 PropertyDescriptor.prototype.hasEnumerable = function() {
430 PropertyDescriptor.prototype.setWritable = function(writable) {
436 PropertyDescriptor.prototype.isWritable = function() {
441 PropertyDescriptor.prototype.hasWritable = function() {
446 PropertyDescriptor.prototype.setConfigurable = function(configurable) {
452 PropertyDescriptor.prototype.hasConfigurable = function() {
457 PropertyDescriptor.prototype.isConfigurable = function() {
462 PropertyDescriptor.prototype.setGet = function(get) {
468 PropertyDescriptor.prototype.getGet = function() {
473 PropertyDescriptor.prototype.hasGetter = function() {
478 PropertyDescriptor.prototype.setSet = function(set) {
484 PropertyDescriptor.prototype.getSet = function() {
489 PropertyDescriptor.prototype.hasSetter = function() {
497 function ConvertDescriptorArrayToDescriptor(desc_array) {
523 function GetProperty(obj, p) {
533 function HasProperty(obj, p) {
540 function GetOwnProperty(obj, p) {
554 function DefineOwnProperty(obj, p, desc, should_throw) {
719 function ObjectGetPrototypeOf(obj) {
727 function ObjectGetOwnPropertyDescriptor(obj, p) {
736 function ObjectGetOwnPropertyNames(obj) {
788 function ObjectCreate(proto, properties) {
800 function ObjectDefineProperty(obj, p, attributes) {
812 function ObjectDefineProperties(obj, properties) {
835 function ObjectSeal(obj) {
851 function ObjectFreeze(obj) {
868 function ObjectPreventExtension(obj) {
878 function ObjectIsSealed(obj) {
896 function ObjectIsFrozen(obj) {
915 function ObjectIsExtensible(obj) {
923 %SetCode($Object, function(x) {
938 function SetupObject() {
975 function BooleanToString() {
989 function BooleanValueOf() {
1001 function SetupBoolean() {
1013 // Set the Number function and constructor.
1014 %SetCode($Number, function(x) {
1026 function NumberToString(radix) {
1052 function NumberToLocaleString() {
1058 function NumberValueOf() {
1068 function NumberToFixed(fractionDigits) {
1079 function NumberToExponential(fractionDigits) {
1093 function NumberToPrecision(precision) {
1106 function SetupNumber() {
1152 // Function
1154 $Function.prototype.constructor = $Function;
1156 function FunctionSourceString(func) {
1158 throw new $TypeError('Function.prototype.toString is not generic');
1166 return 'function ' + name + '() { [native code] }';
1168 return 'function () { [native code] }';
1173 return 'function ' + name + source;
1177 function FunctionToString() {
1183 function FunctionBind(this_arg) { // Length is 1.
1185 throw new $TypeError('Bind must be called on a function');
1191 var result = function() {
1194 // function. We do not pass the arguments object explicitly to avoid
1195 // materializing it and guarantee that this function will be optimized.
1207 var result = function() {
1209 // to generate the actual object using the bound function.
1212 // function. We do not pass the arguments object explicitly to avoid
1213 // materializing it and guarantee that this function will be optimized.
1248 function NewFunction(arg1) { // length == 1
1256 // character - it may make the combined function expression
1261 var source = '(function(' + p + ') {\n' + body + '\n})';
1264 // property of the resulting function is enumerable (ECMA262, 15.3.5.2).
1270 %SetCode($Function, NewFunction);
1274 function SetupFunction() {
1275 InstallFunctions($Function.prototype, DONT_ENUM, $Array(