| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4435 | 4435 |
| 4436 // Layout description. | 4436 // Layout description. |
| 4437 static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize; | 4437 static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize; |
| 4438 static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize; | 4438 static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize; |
| 4439 static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize; | 4439 static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize; |
| 4440 static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize; | 4440 static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize; |
| 4441 static const int kSourcePositionTableOffset = | 4441 static const int kSourcePositionTableOffset = |
| 4442 kHandlerTableOffset + kPointerSize; | 4442 kHandlerTableOffset + kPointerSize; |
| 4443 static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize; | 4443 static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize; |
| 4444 | 4444 |
| 4445 static const int kAlignedSize = OBJECT_POINTER_ALIGN(kHeaderSize); | |
| 4446 | |
| 4447 // Maximal memory consumption for a single BytecodeArray. | 4445 // Maximal memory consumption for a single BytecodeArray. |
| 4448 static const int kMaxSize = 512 * MB; | 4446 static const int kMaxSize = 512 * MB; |
| 4449 // Maximal length of a single BytecodeArray. | 4447 // Maximal length of a single BytecodeArray. |
| 4450 static const int kMaxLength = kMaxSize - kHeaderSize; | 4448 static const int kMaxLength = kMaxSize - kHeaderSize; |
| 4451 | 4449 |
| 4452 class BodyDescriptor; | 4450 class BodyDescriptor; |
| 4453 | 4451 |
| 4454 private: | 4452 private: |
| 4455 DISALLOW_IMPLICIT_CONSTRUCTORS(BytecodeArray); | 4453 DISALLOW_IMPLICIT_CONSTRUCTORS(BytecodeArray); |
| 4456 }; | 4454 }; |
| (...skipping 6321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10778 } | 10776 } |
| 10779 return value; | 10777 return value; |
| 10780 } | 10778 } |
| 10781 }; | 10779 }; |
| 10782 | 10780 |
| 10783 | 10781 |
| 10784 } // NOLINT, false-positive due to second-order macros. | 10782 } // NOLINT, false-positive due to second-order macros. |
| 10785 } // NOLINT, false-positive due to second-order macros. | 10783 } // NOLINT, false-positive due to second-order macros. |
| 10786 | 10784 |
| 10787 #endif // V8_OBJECTS_H_ | 10785 #endif // V8_OBJECTS_H_ |
| OLD | NEW |