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

Side by Side Diff: src/objects.h

Issue 1114563002: Remove the weak list of array buffers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 10237 matching lines...) Expand 10 before | Expand all | Expand 10 after
10248 10248
10249 inline bool is_external(); 10249 inline bool is_external();
10250 inline void set_is_external(bool value); 10250 inline void set_is_external(bool value);
10251 10251
10252 inline bool is_neuterable(); 10252 inline bool is_neuterable();
10253 inline void set_is_neuterable(bool value); 10253 inline void set_is_neuterable(bool value);
10254 10254
10255 inline bool was_neutered(); 10255 inline bool was_neutered();
10256 inline void set_was_neutered(bool value); 10256 inline void set_was_neutered(bool value);
10257 10257
10258 // [weak_next]: linked list of array buffers.
10259 DECL_ACCESSORS(weak_next, Object)
10260
10261 DECLARE_CAST(JSArrayBuffer) 10258 DECLARE_CAST(JSArrayBuffer)
10262 10259
10263 void Neuter(); 10260 void Neuter();
10264 10261
10265 // Dispatched behavior. 10262 // Dispatched behavior.
10266 DECLARE_PRINTER(JSArrayBuffer) 10263 DECLARE_PRINTER(JSArrayBuffer)
10267 DECLARE_VERIFIER(JSArrayBuffer) 10264 DECLARE_VERIFIER(JSArrayBuffer)
10268 10265
10269 static const int kBackingStoreOffset = JSObject::kHeaderSize; 10266 static const int kBackingStoreOffset = JSObject::kHeaderSize;
10270 static const int kByteLengthOffset = kBackingStoreOffset + kPointerSize; 10267 static const int kByteLengthOffset = kBackingStoreOffset + kPointerSize;
10271 static const int kBitFieldOffset = kByteLengthOffset + kPointerSize; 10268 static const int kBitFieldOffset = kByteLengthOffset + kPointerSize;
10272 static const int kWeakNextOffset = kBitFieldOffset + kPointerSize; 10269 static const int kSize = kBitFieldOffset + kPointerSize;
10273 static const int kSize = kWeakNextOffset + kPointerSize;
10274 10270
10275 static const int kSizeWithInternalFields = 10271 static const int kSizeWithInternalFields =
10276 kSize + v8::ArrayBuffer::kInternalFieldCount * kPointerSize; 10272 kSize + v8::ArrayBuffer::kInternalFieldCount * kPointerSize;
10277 10273
10278 class IsExternal : public BitField<bool, 1, 1> {}; 10274 class IsExternal : public BitField<bool, 1, 1> {};
10279 class IsNeuterable : public BitField<bool, 2, 1> {}; 10275 class IsNeuterable : public BitField<bool, 2, 1> {};
10280 class WasNeutered : public BitField<bool, 3, 1> {}; 10276 class WasNeutered : public BitField<bool, 3, 1> {};
10281 10277
10282 private: 10278 private:
10283 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer); 10279 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer);
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
11099 } else { 11095 } else {
11100 value &= ~(1 << bit_position); 11096 value &= ~(1 << bit_position);
11101 } 11097 }
11102 return value; 11098 return value;
11103 } 11099 }
11104 }; 11100 };
11105 11101
11106 } } // namespace v8::internal 11102 } } // namespace v8::internal
11107 11103
11108 #endif // V8_OBJECTS_H_ 11104 #endif // V8_OBJECTS_H_
OLDNEW
« src/heap/heap.cc ('K') | « src/heap/objects-visiting-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698