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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h

Issue 2617073002: Additional DCHECKs when accessing SharedArrayBuffer (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h
index 6b22f5f89f17f6d492f0454a910a8155dd33629d..61689039b01ae54b32aa6900c4619631c9047906 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h
@@ -54,7 +54,10 @@ class WTF_EXPORT ArrayBufferView : public RefCounted<ArrayBufferView> {
ArrayBuffer* buffer() const { return m_buffer.get(); }
- void* baseAddress() const { return m_baseAddress; }
+ void* baseAddress() const {
+ DCHECK(!isShared());
+ return m_baseAddress;
+ }
unsigned byteOffset() const { return m_byteOffset; }

Powered by Google App Engine
This is Rietveld 408576698