diff options
Diffstat (limited to 'JavaScriptCore/runtime/JSByteArray.h')
-rw-r--r-- | JavaScriptCore/runtime/JSByteArray.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/JavaScriptCore/runtime/JSByteArray.h b/JavaScriptCore/runtime/JSByteArray.h index eb8e0ac..57374e0 100644 --- a/JavaScriptCore/runtime/JSByteArray.h +++ b/JavaScriptCore/runtime/JSByteArray.h @@ -36,7 +36,7 @@ namespace JSC { friend class VPtrSet; public: bool canAccessIndex(unsigned i) { return i < m_storage->length(); } - JSValuePtr getIndex(ExecState* exec, unsigned i) + JSValue getIndex(ExecState* exec, unsigned i) { ASSERT(canAccessIndex(i)); return jsNumber(exec, m_storage->data()[i]); @@ -64,7 +64,7 @@ namespace JSC { m_storage->data()[i] = static_cast<unsigned char>(value + 0.5); } - void setIndex(ExecState* exec, unsigned i, JSValuePtr value) + void setIndex(ExecState* exec, unsigned i, JSValue value) { double byteValue = value.toNumber(exec); if (exec->hadException()) @@ -74,12 +74,12 @@ namespace JSC { } JSByteArray(ExecState* exec, PassRefPtr<Structure>, WTF::ByteArray* storage, const JSC::ClassInfo* = &s_defaultInfo); - static PassRefPtr<Structure> createStructure(JSValuePtr prototype); + static PassRefPtr<Structure> createStructure(JSValue prototype); virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&); - virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValuePtr, JSC::PutPropertySlot&); - virtual void put(JSC::ExecState*, unsigned propertyName, JSC::JSValuePtr); + virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&); + virtual void put(JSC::ExecState*, unsigned propertyName, JSC::JSValue); virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&); @@ -102,13 +102,13 @@ namespace JSC { const ClassInfo* m_classInfo; }; - JSByteArray* asByteArray(JSValuePtr value); - inline JSByteArray* asByteArray(JSValuePtr value) + JSByteArray* asByteArray(JSValue value); + inline JSByteArray* asByteArray(JSValue value) { return static_cast<JSByteArray*>(asCell(value)); } - inline bool isJSByteArray(JSGlobalData* globalData, JSValuePtr v) { return v.isCell() && v.asCell()->vptr() == globalData->jsByteArrayVPtr; } + inline bool isJSByteArray(JSGlobalData* globalData, JSValue v) { return v.isCell() && v.asCell()->vptr() == globalData->jsByteArrayVPtr; } } // namespace JSC |