Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: JavaScriptCore/runtime/JSByteArray.h

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « JavaScriptCore/runtime/JSArray.h ('k') | JavaScriptCore/runtime/JSCell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: JavaScriptCore/runtime/JSByteArray.h
===================================================================
--- JavaScriptCore/runtime/JSByteArray.h (revision 10232)
+++ JavaScriptCore/runtime/JSByteArray.h (working copy)
@@ -33,7 +33,7 @@
namespace JSC {
class JSByteArray : public JSObject {
- friend class Interpreter;
+ friend class VPtrSet;
public:
bool canAccessIndex(unsigned i) { return i < m_storage->length(); }
JSValuePtr getIndex(ExecState* exec, unsigned i)
@@ -107,6 +107,9 @@
{
return static_cast<JSByteArray*>(asCell(value));
}
-}
-#endif
+ inline bool isJSByteArray(JSGlobalData* globalData, JSValuePtr v) { return v.isCell() && v.asCell()->vptr() == globalData->jsByteArrayVPtr; }
+
+} // namespace JSC
+
+#endif // JSByteArray_h
« no previous file with comments | « JavaScriptCore/runtime/JSArray.h ('k') | JavaScriptCore/runtime/JSCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698