Changeset 48774 in webkit for trunk/JavaScriptCore/runtime/JSGlobalObject.h
- Timestamp:
- Sep 25, 2009, 3:26:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalObject.h
r48542 r48774 23 23 #define JSGlobalObject_h 24 24 25 #include "JSArray.h" 25 26 #include "JSGlobalData.h" 26 27 #include "JSVariableObject.h" … … 344 345 } 345 346 346 inline JSGlobalObject* ScopeChainNode::globalObject() const347 {348 const ScopeChainNode* n = this;349 while (n->next)350 n = n->next;351 return asGlobalObject(n->object);352 }353 354 347 inline JSValue Structure::prototypeForLookup(ExecState* exec) const 355 348 { … … 406 399 } 407 400 401 inline JSObject* constructEmptyObject(ExecState* exec) 402 { 403 return new (exec) JSObject(exec->lexicalGlobalObject()->emptyObjectStructure()); 404 } 405 406 inline JSArray* constructEmptyArray(ExecState* exec) 407 { 408 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure()); 409 } 410 411 inline JSArray* constructEmptyArray(ExecState* exec, unsigned initialLength) 412 { 413 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), initialLength); 414 } 415 416 inline JSArray* constructArray(ExecState* exec, JSValue singleItemValue) 417 { 418 MarkedArgumentBuffer values; 419 values.append(singleItemValue); 420 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), values); 421 } 422 423 inline JSArray* constructArray(ExecState* exec, const ArgList& values) 424 { 425 return new (exec) JSArray(exec->lexicalGlobalObject()->arrayStructure(), values); 426 } 427 408 428 class DynamicGlobalObjectScope : public Noncopyable { 409 429 public:
Note:
See TracChangeset
for help on using the changeset viewer.