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

Side by Side Diff: src/objects.h

Issue 2396433008: [wasm] Add guard regions to end of WebAssembly.Memory buffers (Closed)
Patch Set: Merging with master Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 10989 matching lines...) Expand 10 before | Expand all | Expand 10 after
11000 11000
11001 inline bool is_neuterable(); 11001 inline bool is_neuterable();
11002 inline void set_is_neuterable(bool value); 11002 inline void set_is_neuterable(bool value);
11003 11003
11004 inline bool was_neutered(); 11004 inline bool was_neutered();
11005 inline void set_was_neutered(bool value); 11005 inline void set_was_neutered(bool value);
11006 11006
11007 inline bool is_shared(); 11007 inline bool is_shared();
11008 inline void set_is_shared(bool value); 11008 inline void set_is_shared(bool value);
11009 11009
11010 inline bool has_guard_region();
11011 inline void set_has_guard_region(bool value);
11012
11010 DECLARE_CAST(JSArrayBuffer) 11013 DECLARE_CAST(JSArrayBuffer)
11011 11014
11012 void Neuter(); 11015 void Neuter();
11013 11016
11014 V8_EXPORT_PRIVATE static void Setup( 11017 V8_EXPORT_PRIVATE static void Setup(
11015 Handle<JSArrayBuffer> array_buffer, Isolate* isolate, bool is_external, 11018 Handle<JSArrayBuffer> array_buffer, Isolate* isolate, bool is_external,
11016 void* data, size_t allocated_length, 11019 void* data, size_t allocated_length,
11017 SharedFlag shared = SharedFlag::kNotShared); 11020 SharedFlag shared = SharedFlag::kNotShared);
11018 11021
11019 static bool SetupAllocatingData(Handle<JSArrayBuffer> array_buffer, 11022 static bool SetupAllocatingData(Handle<JSArrayBuffer> array_buffer,
(...skipping 19 matching lines...) Expand all
11039 kSize + v8::ArrayBuffer::kInternalFieldCount * kPointerSize; 11042 kSize + v8::ArrayBuffer::kInternalFieldCount * kPointerSize;
11040 11043
11041 // Iterates all fields in the object including internal ones except 11044 // Iterates all fields in the object including internal ones except
11042 // kBackingStoreOffset and kBitFieldSlot. 11045 // kBackingStoreOffset and kBitFieldSlot.
11043 class BodyDescriptor; 11046 class BodyDescriptor;
11044 11047
11045 class IsExternal : public BitField<bool, 1, 1> {}; 11048 class IsExternal : public BitField<bool, 1, 1> {};
11046 class IsNeuterable : public BitField<bool, 2, 1> {}; 11049 class IsNeuterable : public BitField<bool, 2, 1> {};
11047 class WasNeutered : public BitField<bool, 3, 1> {}; 11050 class WasNeutered : public BitField<bool, 3, 1> {};
11048 class IsShared : public BitField<bool, 4, 1> {}; 11051 class IsShared : public BitField<bool, 4, 1> {};
11052 class HasGuardRegion : public BitField<bool, 5, 1> {};
11049 11053
11050 private: 11054 private:
11051 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer); 11055 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer);
11052 }; 11056 };
11053 11057
11054 11058
11055 class JSArrayBufferView: public JSObject { 11059 class JSArrayBufferView: public JSObject {
11056 public: 11060 public:
11057 // [buffer]: ArrayBuffer that this typed array views. 11061 // [buffer]: ArrayBuffer that this typed array views.
11058 DECL_ACCESSORS(buffer, Object) 11062 DECL_ACCESSORS(buffer, Object)
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
11857 } 11861 }
11858 return value; 11862 return value;
11859 } 11863 }
11860 }; 11864 };
11861 11865
11862 11866
11863 } // NOLINT, false-positive due to second-order macros. 11867 } // NOLINT, false-positive due to second-order macros.
11864 } // NOLINT, false-positive due to second-order macros. 11868 } // NOLINT, false-positive due to second-order macros.
11865 11869
11866 #endif // V8_OBJECTS_H_ 11870 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698