| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 79 | 79 | 
| 80   // No reservation for large object space necessary. | 80   // No reservation for large object space necessary. | 
| 81   // We also handle map space differenly. | 81   // We also handle map space differenly. | 
| 82   STATIC_ASSERT(MAP_SPACE == CODE_SPACE + 1); | 82   STATIC_ASSERT(MAP_SPACE == CODE_SPACE + 1); | 
| 83   static const int kNumberOfPreallocatedSpaces = CODE_SPACE + 1; | 83   static const int kNumberOfPreallocatedSpaces = CODE_SPACE + 1; | 
| 84   static const int kNumberOfSpaces = LAST_SPACE + 1; | 84   static const int kNumberOfSpaces = LAST_SPACE + 1; | 
| 85 | 85 | 
| 86  protected: | 86  protected: | 
| 87   static bool CanBeDeferred(HeapObject* o); | 87   static bool CanBeDeferred(HeapObject* o); | 
| 88 | 88 | 
|  | 89   void RestoreExternalReferenceRedirectors(List<AccessorInfo*>* accessor_infos); | 
|  | 90 | 
| 89   // ---------- byte code range 0x00..0x7f ---------- | 91   // ---------- byte code range 0x00..0x7f ---------- | 
| 90   // Byte codes in this range represent Where, HowToCode and WhereToPoint. | 92   // Byte codes in this range represent Where, HowToCode and WhereToPoint. | 
| 91   // Where the pointed-to object can be found: | 93   // Where the pointed-to object can be found: | 
| 92   // The static assert below will trigger when the number of preallocated spaces | 94   // The static assert below will trigger when the number of preallocated spaces | 
| 93   // changed. If that happens, update the bytecode ranges in the comments below. | 95   // changed. If that happens, update the bytecode ranges in the comments below. | 
| 94   STATIC_ASSERT(5 == kNumberOfSpaces); | 96   STATIC_ASSERT(5 == kNumberOfSpaces); | 
| 95   enum Where { | 97   enum Where { | 
| 96     // 0x00..0x04  Allocate new object, in specified space. | 98     // 0x00..0x04  Allocate new object, in specified space. | 
| 97     kNewObject = 0x00, | 99     kNewObject = 0x00, | 
| 98     // 0x08..0x0c  Reference to previous object from space. | 100     // 0x08..0x0c  Reference to previous object from space. | 
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 278 | 280 | 
| 279   byte* data_; | 281   byte* data_; | 
| 280   int size_; | 282   int size_; | 
| 281   bool owns_data_; | 283   bool owns_data_; | 
| 282 }; | 284 }; | 
| 283 | 285 | 
| 284 }  // namespace internal | 286 }  // namespace internal | 
| 285 }  // namespace v8 | 287 }  // namespace v8 | 
| 286 | 288 | 
| 287 #endif  // V8_SNAPSHOT_SERIALIZER_COMMON_H_ | 289 #endif  // V8_SNAPSHOT_SERIALIZER_COMMON_H_ | 
| OLD | NEW | 
|---|