Lines Matching defs:Function
34 // var $Function = global.Function;
47 // Helper function used to install functions on objects.
48 function InstallFunctions(object, attributes, functions) {
64 // The "prototype" property of the function object is made non-configurable,
67 function SetUpLockedPrototype(constructor, fields, methods) {
70 // Install functions first, because this function is used to initialize
96 function GlobalIsNaN(number) {
103 function GlobalIsFinite(number) {
110 function GlobalParseInt(string, radix) {
144 function GlobalParseFloat(string) {
151 function GlobalEval(x) {
177 function SetUpGlobal() {
189 // Set up non-enumerable function on the global object.
205 %SetCode($Boolean, function(x) {
223 function ObjectToString() {
233 function ObjectToLocaleString() {
243 function ObjectValueOf() {
249 function ObjectHasOwnProperty(V) {
259 function ObjectIsPrototypeOf(V) {
270 function ObjectPropertyIsEnumerable(V) {
281 function ObjectDefineGetter(name, fun) {
288 'Object.prototype.__defineGetter__: Expecting function');
298 function ObjectLookupGetter(name) {
307 function ObjectDefineSetter(name, fun) {
314 'Object.prototype.__defineSetter__: Expecting function');
324 function ObjectLookupSetter(name) {
333 function ObjectKeys(obj) {
347 function IsAccessorDescriptor(desc) {
354 function IsDataDescriptor(desc) {
361 function IsGenericDescriptor(desc) {
367 function IsInconsistentDescriptor(desc) {
373 function FromPropertyDescriptor(desc) {
391 function FromGenericPropertyDescriptor(desc) {
420 function ToPropertyDescriptor(obj) {
466 function ToCompletePropertyDescriptor(obj) {
482 function PropertyDescriptor() {
513 "toString", function() {
516 "setValue", function(value) {
520 "getValue", function() {
523 "hasValue", function() {
526 "setEnumerable", function(enumerable) {
530 "isEnumerable", function () {
533 "hasEnumerable", function() {
536 "setWritable", function(writable) {
540 "isWritable", function() {
543 "hasWritable", function() {
546 "setConfigurable", function(configurable) {
550 "hasConfigurable", function() {
553 "isConfigurable", function() {
556 "setGet", function(get) {
560 "getGet", function() {
563 "hasGetter", function() {
566 "setSet", function(set) {
570 function() {
573 "hasSetter", function() {
581 function ConvertDescriptorArrayToDescriptor(desc_array) {
607 function GetTrap(handler, name, defaultTrap) {
621 function CallTrap0(handler, name, defaultTrap) {
626 function CallTrap1(handler, name, defaultTrap, x) {
631 function CallTrap2(handler, name, defaultTrap, x, y) {
637 function GetOwnProperty(obj, v) {
664 function Delete(obj, p, should_throw) {
679 function DefineProxyProperty(obj, p, attributes, should_throw) {
695 function DefineObjectProperty(obj, p, desc, should_throw) {
853 function DefineArrayProperty(obj, p, desc, should_throw) {
855 // property, hence we use generated code throughout this function instead of
924 function DefineOwnProperty(obj, p, desc, should_throw) {
937 function ObjectGetPrototypeOf(obj) {
946 function ObjectGetOwnPropertyDescriptor(obj, p) {
957 function ToStringArray(obj, trap) {
977 function ObjectGetOwnPropertyNames(obj) {
1038 function ObjectCreate(proto, properties) {
1050 function ObjectDefineProperty(obj, p, attributes) {
1090 function GetOwnEnumerablePropertyNames(properties) {
1102 function ObjectDefineProperties(obj, properties) {
1120 function ProxyFix(obj) {
1131 %Fix(obj); // becomes a regular function
1149 function ObjectSeal(obj) {
1171 function ObjectFreeze(obj) {
1194 function ObjectPreventExtension(obj) {
1207 function ObjectIsSealed(obj) {
1228 function ObjectIsFrozen(obj) {
1250 function ObjectIsExtensible(obj) {
1262 function ObjectIs(obj1, obj2) {
1271 %SetCode($Object, function(x) {
1286 function SetUpObject() {
1324 function BooleanToString() {
1338 function BooleanValueOf() {
1351 function SetUpBoolean () {
1365 // Set the Number function and constructor.
1366 %SetCode($Number, function(x) {
1378 function NumberToString(radix) {
1405 function NumberToLocaleString() {
1415 function NumberValueOf() {
1426 function NumberToFixed(fractionDigits) {
1441 function NumberToExponential(fractionDigits) {
1460 function NumberToPrecision(precision) {
1476 function NumberIsFinite(number) {
1482 function NumberIsNaN(number) {
1489 function SetUpNumber() {
1541 // Function
1543 $Function.prototype.constructor = $Function;
1545 function FunctionSourceString(func) {
1551 throw new $TypeError('Function.prototype.toString is not generic');
1559 return 'function ' + name + '() { [native code] }';
1561 return 'function () { [native code] }';
1568 return 'function ' + name + source;
1572 function FunctionToString() {
1578 function FunctionBind(this_arg) { // Length is 1.
1580 throw new $TypeError('Bind must be called on a function');
1582 var boundFunction = function () {
1585 // This function must not use any object literals (Object, Array, RegExp),
1612 if (%_ClassOf(this) == "Function") {
1613 // Function or FunctionProxy.
1624 // This runtime function finds any remaining arguments on the stack,
1640 function NewFunction(arg1) { // length == 1
1648 // character - it may make the combined function expression
1653 var source = '(function(' + p + ') {\n' + body + '\n})';
1656 // property of the resulting function is enumerable (ECMA262, 15.3.5.2).
1662 %SetCode($Function, NewFunction);
1666 function
1668 InstallFunctions($Function.prototype, DONT_ENUM, $Array(