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

Side by Side Diff: src/snapshot/serializer-common.h

Issue 2741683004: [rename] Rename internal field to embedder field. (Closed)
Patch Set: [rename] Rename internal field to embedder field. Created 3 years, 9 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/snapshot/partial-serializer.cc ('k') | src/snapshot/snapshot.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_SNAPSHOT_SERIALIZER_COMMON_H_ 5 #ifndef V8_SNAPSHOT_SERIALIZER_COMMON_H_
6 #define V8_SNAPSHOT_SERIALIZER_COMMON_H_ 6 #define V8_SNAPSHOT_SERIALIZER_COMMON_H_
7 7
8 #include "src/address-map.h" 8 #include "src/address-map.h"
9 #include "src/external-reference-table.h" 9 #include "src/external-reference-table.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 static const int kVariableRawData = 0x1a; 165 static const int kVariableRawData = 0x1a;
166 // Internal reference encoded as offsets of pc and target from code entry. 166 // Internal reference encoded as offsets of pc and target from code entry.
167 static const int kInternalReference = 0x1b; 167 static const int kInternalReference = 0x1b;
168 static const int kInternalReferenceEncoded = 0x1c; 168 static const int kInternalReferenceEncoded = 0x1c;
169 // Used for the source code of the natives, which is in the executable, but 169 // Used for the source code of the natives, which is in the executable, but
170 // is referred to from external strings in the snapshot. 170 // is referred to from external strings in the snapshot.
171 static const int kNativesStringResource = 0x1d; 171 static const int kNativesStringResource = 0x1d;
172 // Used for the source code for compiled stubs, which is in the executable, 172 // Used for the source code for compiled stubs, which is in the executable,
173 // but is referred to from external strings in the snapshot. 173 // but is referred to from external strings in the snapshot.
174 static const int kExtraNativesStringResource = 0x1e; 174 static const int kExtraNativesStringResource = 0x1e;
175 // Used for embedder-provided serialization data for internal fields. 175 // Used for embedder-provided serialization data for embedder fields.
176 static const int kInternalFieldsData = 0x1f; 176 static const int kEmbedderFieldsData = 0x1f;
177 177
178 // 8 hot (recently seen or back-referenced) objects with optional skip. 178 // 8 hot (recently seen or back-referenced) objects with optional skip.
179 static const int kNumberOfHotObjects = 8; 179 static const int kNumberOfHotObjects = 8;
180 STATIC_ASSERT(kNumberOfHotObjects == HotObjectsList::kSize); 180 STATIC_ASSERT(kNumberOfHotObjects == HotObjectsList::kSize);
181 // 0x38..0x3f 181 // 0x38..0x3f
182 static const int kHotObject = 0x38; 182 static const int kHotObject = 0x38;
183 // 0x58..0x5f 183 // 0x58..0x5f
184 static const int kHotObjectWithSkip = 0x58; 184 static const int kHotObjectWithSkip = 0x58;
185 static const int kHotObjectMask = 0x07; 185 static const int kHotObjectMask = 0x07;
186 186
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 byte* data_; 295 byte* data_;
296 int size_; 296 int size_;
297 bool owns_data_; 297 bool owns_data_;
298 }; 298 };
299 299
300 } // namespace internal 300 } // namespace internal
301 } // namespace v8 301 } // namespace v8
302 302
303 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_ 303 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_
OLDNEW
« no previous file with comments | « src/snapshot/partial-serializer.cc ('k') | src/snapshot/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698