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

Unified Diff: include/v8.h

Issue 18695004: Add internal fields to JSArrayBufferViews (JSTypedArray and JSDataView) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added zeroing out internal fields and tests that verify that Created 7 years, 5 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 | « no previous file | src/bootstrapper.cc » ('j') | test/cctest/test-api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 3afb83572a903e690e377c2b8bce5f900e60404d..caaa5c255cdb812aa75ee7ee4cef22b32d244f2c 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2489,6 +2489,11 @@ class V8EXPORT ArrayBuffer : public Object {
};
+#ifndef V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT
titzer 2013/07/05 08:09:57 I'm not sure why you conditionally define a macro
Dmitry Lomov (no reviews) 2013/07/05 09:56:02 The number of these external fields can vary from
+#define V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT 2
+#endif
+
+
/**
* A base class for an instance of one of "views" over ArrayBuffer,
* including TypedArrays and DataView (ES6 draft 15.13).
@@ -2516,6 +2521,9 @@ class V8EXPORT ArrayBufferView : public Object {
V8_INLINE(static ArrayBufferView* Cast(Value* obj));
+ static const int kInternalFieldCount =
+ V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT;
titzer 2013/07/05 08:09:57 BTW, where are these internal fields defined?
Dmitry Lomov (no reviews) 2013/07/05 09:56:02 I am not sure what the question is (the rest of th
+
private:
ArrayBufferView();
static void CheckCast(Value* obj);
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698