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

Unified Diff: src/objects.h

Issue 1136553006: Implement SharedArrayBuffer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix dumb typo Created 5 years, 7 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
« include/v8.h ('K') | « src/macros.py ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 4b7341ece9f02d2e7f1aa0886c2a67cfc47f1f1c..15cc62bcfca9f1ba9a04104a20781a879da996bb 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -174,6 +174,9 @@ enum KeyedAccessStoreMode {
};
+enum SharedFlag { NOT_SHARED, SHARED };
jochen (gone - plz use gerrit) 2015/05/22 08:37:47 not needed?
binji 2015/05/22 09:27:34 It was suggested in the other CL that this would m
Jarin 2015/05/22 09:37:35 Indeed, I suggested that for making it clear at ca
+
+
enum ContextualMode {
NOT_CONTEXTUAL,
CONTEXTUAL
@@ -10280,6 +10283,9 @@ class JSArrayBuffer: public JSObject {
inline bool was_neutered();
inline void set_was_neutered(bool value);
+ inline bool is_shared();
+ inline void set_is_shared(bool value);
+
DECLARE_CAST(JSArrayBuffer)
void Neuter();
@@ -10304,6 +10310,7 @@ class JSArrayBuffer: public JSObject {
class IsExternal : public BitField<bool, 1, 1> {};
class IsNeuterable : public BitField<bool, 2, 1> {};
class WasNeutered : public BitField<bool, 3, 1> {};
+ class IsShared : public BitField<bool, 4, 1> {};
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer);
« include/v8.h ('K') | « src/macros.py ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698