summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/PropertyNameArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/PropertyNameArray.h')
-rw-r--r--Source/JavaScriptCore/runtime/PropertyNameArray.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/JavaScriptCore/runtime/PropertyNameArray.h b/Source/JavaScriptCore/runtime/PropertyNameArray.h
index 1cdac0049..96f1d0afa 100644
--- a/Source/JavaScriptCore/runtime/PropertyNameArray.h
+++ b/Source/JavaScriptCore/runtime/PropertyNameArray.h
@@ -52,9 +52,9 @@ namespace JSC {
// FIXME: Rename to PropertyNameArrayBuilder.
class PropertyNameArray {
public:
- PropertyNameArray(JSGlobalData* globalData)
+ PropertyNameArray(VM* vm)
: m_data(PropertyNameArrayData::create())
- , m_globalData(globalData)
+ , m_vm(vm)
, m_numCacheableSlots(0)
, m_baseObject(0)
{
@@ -62,17 +62,17 @@ namespace JSC {
PropertyNameArray(ExecState* exec)
: m_data(PropertyNameArrayData::create())
- , m_globalData(&exec->globalData())
+ , m_vm(&exec->vm())
, m_numCacheableSlots(0)
, m_baseObject(0)
{
}
- JSGlobalData* globalData() { return m_globalData; }
+ VM* vm() { return m_vm; }
void add(const Identifier& identifier) { add(identifier.impl()); }
JS_EXPORT_PRIVATE void add(StringImpl*);
- void addKnownUnique(StringImpl* identifier) { m_data->propertyNameVector().append(Identifier(m_globalData, identifier)); }
+ void addKnownUnique(StringImpl* identifier) { m_data->propertyNameVector().append(Identifier(m_vm, identifier)); }
Identifier& operator[](unsigned i) { return m_data->propertyNameVector()[i]; }
const Identifier& operator[](unsigned i) const { return m_data->propertyNameVector()[i]; }
@@ -106,7 +106,7 @@ namespace JSC {
RefPtr<PropertyNameArrayData> m_data;
IdentifierSet m_set;
- JSGlobalData* m_globalData;
+ VM* m_vm;
size_t m_numCacheableSlots;
JSObject* m_baseObject;
};