| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6904 | 6904 |
| 6905 // Layout description. | 6905 // Layout description. |
| 6906 // Pointer fields. | 6906 // Pointer fields. |
| 6907 static const int kNameOffset = HeapObject::kHeaderSize; | 6907 static const int kNameOffset = HeapObject::kHeaderSize; |
| 6908 static const int kCodeOffset = kNameOffset + kPointerSize; | 6908 static const int kCodeOffset = kNameOffset + kPointerSize; |
| 6909 static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize; | 6909 static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize; |
| 6910 static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize; | 6910 static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize; |
| 6911 static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize; | 6911 static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize; |
| 6912 static const int kInstanceClassNameOffset = | 6912 static const int kInstanceClassNameOffset = |
| 6913 kConstructStubOffset + kPointerSize; | 6913 kConstructStubOffset + kPointerSize; |
| 6914 // Shared field: a function is either an API function or debuggable. |
| 6914 static const int kFunctionDataOffset = | 6915 static const int kFunctionDataOffset = |
| 6915 kInstanceClassNameOffset + kPointerSize; | 6916 kInstanceClassNameOffset + kPointerSize; |
| 6917 static const int kDebugInfoOffset = kFunctionDataOffset; |
| 6916 static const int kScriptOffset = kFunctionDataOffset + kPointerSize; | 6918 static const int kScriptOffset = kFunctionDataOffset + kPointerSize; |
| 6917 static const int kDebugInfoOffset = kScriptOffset + kPointerSize; | 6919 static const int kInferredNameOffset = kScriptOffset + kPointerSize; |
| 6918 static const int kInferredNameOffset = kDebugInfoOffset + kPointerSize; | |
| 6919 static const int kFeedbackVectorOffset = | 6920 static const int kFeedbackVectorOffset = |
| 6920 kInferredNameOffset + kPointerSize; | 6921 kInferredNameOffset + kPointerSize; |
| 6921 #if TRACE_MAPS | 6922 #if TRACE_MAPS |
| 6922 static const int kUniqueIdOffset = kFeedbackVectorOffset + kPointerSize; | 6923 static const int kUniqueIdOffset = kFeedbackVectorOffset + kPointerSize; |
| 6923 static const int kLastPointerFieldOffset = kUniqueIdOffset; | 6924 static const int kLastPointerFieldOffset = kUniqueIdOffset; |
| 6924 #else | 6925 #else |
| 6925 // Just to not break the postmortrem support with conditional offsets | 6926 // Just to not break the postmortrem support with conditional offsets |
| 6926 static const int kUniqueIdOffset = kFeedbackVectorOffset; | 6927 static const int kUniqueIdOffset = kFeedbackVectorOffset; |
| 6927 static const int kLastPointerFieldOffset = kFeedbackVectorOffset; | 6928 static const int kLastPointerFieldOffset = kFeedbackVectorOffset; |
| 6928 #endif | 6929 #endif |
| (...skipping 3871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10800 } else { | 10801 } else { |
| 10801 value &= ~(1 << bit_position); | 10802 value &= ~(1 << bit_position); |
| 10802 } | 10803 } |
| 10803 return value; | 10804 return value; |
| 10804 } | 10805 } |
| 10805 }; | 10806 }; |
| 10806 | 10807 |
| 10807 } } // namespace v8::internal | 10808 } } // namespace v8::internal |
| 10808 | 10809 |
| 10809 #endif // V8_OBJECTS_H_ | 10810 #endif // V8_OBJECTS_H_ |
| OLD | NEW |