Home | History | Annotate | Download | only in src

Lines Matching defs:Object

31 // var $Object = global.Object;
48 function InstallFunctions(object, attributes, functions) {
50 %OptimizeObjectForAddingMultipleProperties(object, functions.length >> 1);
57 %SetProperty(object, key, f, attributes);
60 %ToFastProperties(object);
64 // The "prototype" property of the function object is made non-configurable,
65 // and the prototype object is made non-extensible. The latter prevents
157 // For consistency with JSC we require the global object passed to
158 // eval to be the global object from which 'eval' originated. This
164 'be the global object from which eval originated');
176 // Set up global object.
189 // Set up non-enumerable function on the global object.
218 // Object
220 $Object.prototype.constructor = $Object;
225 return '[object Undefined]';
227 if (IS_NULL(this)) return '[object Null]';
228 return "[object " + %_ClassOf(ToObject(this)) + "]";
236 ["Object.prototype.toLocaleString"]);
262 ["Object.prototype.isPrototypeOf"]);
288 'Object.prototype.__defineGetter__: Expecting function');
314 'Object.prototype.__defineSetter__: Expecting function');
335 throw MakeTypeError("called_on_non_object", ["Object.keys"]);
393 var obj = new $Object();
483 // Initialize here so they are all in-object and have the same map.
514 return "[object PropertyDescriptor]";
939 throw MakeTypeError("called_on_non_object", ["Object.getPrototypeOf"]);
949 ["Object.getOwnPropertyDescriptor"]);
979 throw MakeTypeError("called_on_non_object", ["Object.getOwnPropertyNames"]);
1042 var obj = new $Object();
1052 throw MakeTypeError("called_on_non_object", ["Object.defineProperty"]);
1056 // Clone the attributes object for protection.
1104 throw MakeTypeError("called_on_non_object", ["Object.defineProperties"]);
1135 var prototype = new $Object();
1136 $Object.defineProperty(prototype, "constructor",
1151 throw MakeTypeError("called_on_non_object", ["Object.seal"]);
1173 throw MakeTypeError("called_on_non_object", ["Object.freeze"]);
1196 throw MakeTypeError("called_on_non_object", ["Object.preventExtension"]);
1209 throw MakeTypeError("called_on_non_object", ["Object.isSealed"]);
1230 throw MakeTypeError("called_on_non_object", ["Object.isFrozen"]);
1252 throw MakeTypeError("called_on_non_object", ["Object.isExtensible"]);
1271 %SetCode($Object, function(x) {
1281 %SetExpectedNumberOfProperties($Object, 4);
1284 // Object
1288 // Set Up non-enumerable functions on the Object.prototype object.
1289 InstallFunctions($Object.prototype, DONT_ENUM, $Array(
1301 InstallFunctions($Object, DONT_ENUM, $Array(
1386 // Get the value of this number in case it's an object.
1492 // Set up the constructor property on the Number prototype object.
1522 // Set up non-enumerable functions on the Number prototype object.
1585 // This function must not use any object literals (Object, Array, RegExp),
1625 // so we don't pass the arguments object.