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

Side by Side Diff: src/property-details.h

Issue 1255133002: [stubs] Properly handle read-only properties in StoreGlobalViaContextStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 5 years, 4 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
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-object.cc » ('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 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_PROPERTY_DETAILS_H_ 5 #ifndef V8_PROPERTY_DETAILS_H_
6 #define V8_PROPERTY_DETAILS_H_ 6 #define V8_PROPERTY_DETAILS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/utils.h" 10 #include "src/utils.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 bool IsDontEnum() const { return (attributes() & DONT_ENUM) != 0; } 313 bool IsDontEnum() const { return (attributes() & DONT_ENUM) != 0; }
314 PropertyCellType cell_type() const { 314 PropertyCellType cell_type() const {
315 return PropertyCellTypeField::decode(value_); 315 return PropertyCellTypeField::decode(value_);
316 } 316 }
317 317
318 // Bit fields in value_ (type, shift, size). Must be public so the 318 // Bit fields in value_ (type, shift, size). Must be public so the
319 // constants can be embedded in generated code. 319 // constants can be embedded in generated code.
320 class KindField : public BitField<PropertyKind, 0, 1> {}; 320 class KindField : public BitField<PropertyKind, 0, 1> {};
321 class LocationField : public BitField<PropertyLocation, 1, 1> {}; 321 class LocationField : public BitField<PropertyLocation, 1, 1> {};
322 class AttributesField : public BitField<PropertyAttributes, 2, 3> {}; 322 class AttributesField : public BitField<PropertyAttributes, 2, 3> {};
323 static const int kAttributesReadOnlyMask =
324 (READ_ONLY << AttributesField::kShift);
323 325
324 // Bit fields for normalized objects. 326 // Bit fields for normalized objects.
325 class PropertyCellTypeField : public BitField<PropertyCellType, 5, 2> {}; 327 class PropertyCellTypeField : public BitField<PropertyCellType, 5, 2> {};
326 class DictionaryStorageField : public BitField<uint32_t, 7, 24> {}; 328 class DictionaryStorageField : public BitField<uint32_t, 7, 24> {};
327 329
328 // Bit fields for fast objects. 330 // Bit fields for fast objects.
329 class RepresentationField : public BitField<uint32_t, 5, 4> {}; 331 class RepresentationField : public BitField<uint32_t, 5, 4> {};
330 class DescriptorPointer 332 class DescriptorPointer
331 : public BitField<uint32_t, 9, kDescriptorIndexBitCount> {}; // NOLINT 333 : public BitField<uint32_t, 9, kDescriptorIndexBitCount> {}; // NOLINT
332 class FieldIndexField 334 class FieldIndexField
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 uint32_t value_; 367 uint32_t value_;
366 }; 368 };
367 369
368 370
369 std::ostream& operator<<(std::ostream& os, 371 std::ostream& operator<<(std::ostream& os,
370 const PropertyAttributes& attributes); 372 const PropertyAttributes& attributes);
371 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); 373 std::ostream& operator<<(std::ostream& os, const PropertyDetails& details);
372 } } // namespace v8::internal 374 } } // namespace v8::internal
373 375
374 #endif // V8_PROPERTY_DETAILS_H_ 376 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698