| OLD | NEW |
| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 187 // 0x35..0x37, 0x55..0x57, 0x75..0x7f unused. | 187 static const int kDeoptimizerEntryPlain = 0x35; |
| 188 static const int kDeoptimizerEntryFromCode = 0x36; |
| 189 |
| 190 // 0x37, 0x55..0x57, 0x75..0x7f unused. |
| 188 | 191 |
| 189 // ---------- byte code range 0x80..0xff ---------- | 192 // ---------- byte code range 0x80..0xff ---------- |
| 190 // First 32 root array items. | 193 // First 32 root array items. |
| 191 static const int kNumberOfRootArrayConstants = 0x20; | 194 static const int kNumberOfRootArrayConstants = 0x20; |
| 192 // 0x80..0x9f | 195 // 0x80..0x9f |
| 193 static const int kRootArrayConstants = 0x80; | 196 static const int kRootArrayConstants = 0x80; |
| 194 // 0xa0..0xbf | 197 // 0xa0..0xbf |
| 195 static const int kRootArrayConstantsWithSkip = 0xa0; | 198 static const int kRootArrayConstantsWithSkip = 0xa0; |
| 196 static const int kRootArrayConstantsMask = 0x1f; | 199 static const int kRootArrayConstantsMask = 0x1f; |
| 197 | 200 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 297 |
| 295 byte* data_; | 298 byte* data_; |
| 296 int size_; | 299 int size_; |
| 297 bool owns_data_; | 300 bool owns_data_; |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 } // namespace internal | 303 } // namespace internal |
| 301 } // namespace v8 | 304 } // namespace v8 |
| 302 | 305 |
| 303 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_ | 306 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_ |
| OLD | NEW |