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

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

Issue 107933005: Templatise type representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // ABSENT can never be stored in or returned from a descriptor's attributes 48 // ABSENT can never be stored in or returned from a descriptor's attributes
49 // bitfield. It is only used as a return value meaning the attributes of 49 // bitfield. It is only used as a return value meaning the attributes of
50 // a non-existent property. 50 // a non-existent property.
51 }; 51 };
52 52
53 53
54 namespace v8 { 54 namespace v8 {
55 namespace internal { 55 namespace internal {
56 56
57 class Smi; 57 class Smi;
58 class Type; 58 template<class> class TypeImpl;
59 class HeapTypeConfig;
60 typedef TypeImpl<HeapTypeConfig> Type;
titzer 2013/12/17 09:13:07 Oh, it spreads. Love.
59 class TypeInfo; 61 class TypeInfo;
60 62
61 // Type of properties. 63 // Type of properties.
62 // Order of properties is significant. 64 // Order of properties is significant.
63 // Must fit in the BitField PropertyDetails::TypeField. 65 // Must fit in the BitField PropertyDetails::TypeField.
64 // A copy of this is in mirror-debugger.js. 66 // A copy of this is in mirror-debugger.js.
65 enum PropertyType { 67 enum PropertyType {
66 // Only in slow mode. 68 // Only in slow mode.
67 NORMAL = 0, 69 NORMAL = 0,
68 // Only in fast mode. 70 // Only in fast mode.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 PropertyDetails(int value, PropertyAttributes attributes) { 321 PropertyDetails(int value, PropertyAttributes attributes) {
320 value_ = AttributesField::update(value, attributes); 322 value_ = AttributesField::update(value, attributes);
321 } 323 }
322 324
323 uint32_t value_; 325 uint32_t value_;
324 }; 326 };
325 327
326 } } // namespace v8::internal 328 } } // namespace v8::internal
327 329
328 #endif // V8_PROPERTY_DETAILS_H_ 330 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« src/objects.h ('K') | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698