|
Lines 34-48
a/Source/JavaScriptCore/runtime/StructureInlines.h_sec1
|
| 34 |
|
34 |
|
| 35 |
namespace JSC { |
35 |
namespace JSC { |
| 36 |
|
36 |
|
| 37 |
inline Structure* Structure::create(VM& vm, JSGlobalObject* globalObject, JSValue prototype, const TypeInfo& typeInfo, const ClassInfo* classInfo, IndexingType indexingType, unsigned inlineCapacity) |
|
|
| 38 |
{ |
| 39 |
ASSERT(vm.structureStructure); |
| 40 |
ASSERT(classInfo); |
| 41 |
Structure* structure = new (NotNull, allocateCell<Structure>(vm.heap)) Structure(vm, globalObject, prototype, typeInfo, classInfo, indexingType, inlineCapacity); |
| 42 |
structure->finishCreation(vm); |
| 43 |
return structure; |
| 44 |
} |
| 45 |
|
| 46 |
inline Structure* Structure::createStructure(VM& vm) |
37 |
inline Structure* Structure::createStructure(VM& vm) |
| 47 |
{ |
38 |
{ |
| 48 |
ASSERT(!vm.structureStructure); |
39 |
ASSERT(!vm.structureStructure); |