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

Side by Side Diff: src/layout-descriptor.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 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
« no previous file with comments | « src/json-parser.h ('k') | src/lithium-allocator.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_LAYOUT_DESCRIPTOR_H_ 5 #ifndef V8_LAYOUT_DESCRIPTOR_H_
6 #define V8_LAYOUT_DESCRIPTOR_H_ 6 #define V8_LAYOUT_DESCRIPTOR_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // |map|'s layout descriptor and if it is still fast then returns it. 54 // |map|'s layout descriptor and if it is still fast then returns it.
55 // Otherwise the |full_layout_descriptor| is returned. 55 // Otherwise the |full_layout_descriptor| is returned.
56 static Handle<LayoutDescriptor> AppendIfFastOrUseFull( 56 static Handle<LayoutDescriptor> AppendIfFastOrUseFull(
57 Handle<Map> map, PropertyDetails details, 57 Handle<Map> map, PropertyDetails details,
58 Handle<LayoutDescriptor> full_layout_descriptor); 58 Handle<LayoutDescriptor> full_layout_descriptor);
59 59
60 // Layout descriptor that corresponds to an object all fields of which are 60 // Layout descriptor that corresponds to an object all fields of which are
61 // tagged (FastPointerLayout). 61 // tagged (FastPointerLayout).
62 V8_INLINE static LayoutDescriptor* FastPointerLayout(); 62 V8_INLINE static LayoutDescriptor* FastPointerLayout();
63 63
64 #ifdef DEBUG 64 #ifdef ENABLE_SLOW_DCHECKS
65 // Check that this layout descriptor corresponds to given map. 65 // Check that this layout descriptor corresponds to given map.
66 bool IsConsistentWithMap(Map* map); 66 bool IsConsistentWithMap(Map* map);
67 #endif 67 #endif
68 68
69 #ifdef OBJECT_PRINT 69 #ifdef OBJECT_PRINT
70 // For our gdb macros, we should perhaps change these in the future. 70 // For our gdb macros, we should perhaps change these in the future.
71 void Print(); 71 void Print();
72 72
73 void Print(std::ostream& os); // NOLINT 73 void Print(std::ostream& os); // NOLINT
74 #endif 74 #endif
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 private: 119 private:
120 bool all_fields_tagged_; 120 bool all_fields_tagged_;
121 int header_size_; 121 int header_size_;
122 LayoutDescriptor* layout_descriptor_; 122 LayoutDescriptor* layout_descriptor_;
123 }; 123 };
124 } 124 }
125 } // namespace v8::internal 125 } // namespace v8::internal
126 126
127 #endif // V8_LAYOUT_DESCRIPTOR_H_ 127 #endif // V8_LAYOUT_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/json-parser.h ('k') | src/lithium-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698