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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 7140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7151 FixedArray::kHeaderSize + | 7151 FixedArray::kHeaderSize + |
7152 kPointerSize * (kCachedCodeOffset - kEntryLength); | 7152 kPointerSize * (kCachedCodeOffset - kEntryLength); |
7153 static const int kOffsetToPreviousLiterals = | 7153 static const int kOffsetToPreviousLiterals = |
7154 FixedArray::kHeaderSize + kPointerSize * (kLiteralsOffset - kEntryLength); | 7154 FixedArray::kHeaderSize + kPointerSize * (kLiteralsOffset - kEntryLength); |
7155 static const int kOffsetToPreviousOsrAstId = | 7155 static const int kOffsetToPreviousOsrAstId = |
7156 FixedArray::kHeaderSize + kPointerSize * (kOsrAstIdOffset - kEntryLength); | 7156 FixedArray::kHeaderSize + kPointerSize * (kOsrAstIdOffset - kEntryLength); |
7157 | 7157 |
7158 // [scope_info]: Scope info. | 7158 // [scope_info]: Scope info. |
7159 DECL_ACCESSORS(scope_info, ScopeInfo) | 7159 DECL_ACCESSORS(scope_info, ScopeInfo) |
7160 | 7160 |
| 7161 // The outer scope info for the purpose of parsing this function, or the hole |
| 7162 // value if it isn't yet known. |
| 7163 DECL_ACCESSORS(outer_scope_info, HeapObject) |
| 7164 |
7161 // [construct stub]: Code stub for constructing instances of this function. | 7165 // [construct stub]: Code stub for constructing instances of this function. |
7162 DECL_ACCESSORS(construct_stub, Code) | 7166 DECL_ACCESSORS(construct_stub, Code) |
7163 | 7167 |
7164 // Sets the given code as the construct stub, and marks builtin code objects | 7168 // Sets the given code as the construct stub, and marks builtin code objects |
7165 // as a construct stub. | 7169 // as a construct stub. |
7166 void SetConstructStub(Code* code); | 7170 void SetConstructStub(Code* code); |
7167 | 7171 |
7168 // Returns if this function has been compiled to native code yet. | 7172 // Returns if this function has been compiled to native code yet. |
7169 inline bool is_compiled() const; | 7173 inline bool is_compiled() const; |
7170 | 7174 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7508 | 7512 |
7509 // Constants. | 7513 // Constants. |
7510 static const int kDontAdaptArgumentsSentinel = -1; | 7514 static const int kDontAdaptArgumentsSentinel = -1; |
7511 | 7515 |
7512 // Layout description. | 7516 // Layout description. |
7513 // Pointer fields. | 7517 // Pointer fields. |
7514 static const int kNameOffset = HeapObject::kHeaderSize; | 7518 static const int kNameOffset = HeapObject::kHeaderSize; |
7515 static const int kCodeOffset = kNameOffset + kPointerSize; | 7519 static const int kCodeOffset = kNameOffset + kPointerSize; |
7516 static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize; | 7520 static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize; |
7517 static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize; | 7521 static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize; |
7518 static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize; | 7522 static const int kOuterScopeInfoOffset = kScopeInfoOffset + kPointerSize; |
| 7523 static const int kConstructStubOffset = kOuterScopeInfoOffset + kPointerSize; |
7519 static const int kInstanceClassNameOffset = | 7524 static const int kInstanceClassNameOffset = |
7520 kConstructStubOffset + kPointerSize; | 7525 kConstructStubOffset + kPointerSize; |
7521 static const int kFunctionDataOffset = | 7526 static const int kFunctionDataOffset = |
7522 kInstanceClassNameOffset + kPointerSize; | 7527 kInstanceClassNameOffset + kPointerSize; |
7523 static const int kScriptOffset = kFunctionDataOffset + kPointerSize; | 7528 static const int kScriptOffset = kFunctionDataOffset + kPointerSize; |
7524 static const int kDebugInfoOffset = kScriptOffset + kPointerSize; | 7529 static const int kDebugInfoOffset = kScriptOffset + kPointerSize; |
7525 static const int kFunctionIdentifierOffset = kDebugInfoOffset + kPointerSize; | 7530 static const int kFunctionIdentifierOffset = kDebugInfoOffset + kPointerSize; |
7526 static const int kFeedbackMetadataOffset = | 7531 static const int kFeedbackMetadataOffset = |
7527 kFunctionIdentifierOffset + kPointerSize; | 7532 kFunctionIdentifierOffset + kPointerSize; |
7528 #if TRACE_MAPS | 7533 #if TRACE_MAPS |
(...skipping 3782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11311 } | 11316 } |
11312 return value; | 11317 return value; |
11313 } | 11318 } |
11314 }; | 11319 }; |
11315 | 11320 |
11316 | 11321 |
11317 } // NOLINT, false-positive due to second-order macros. | 11322 } // NOLINT, false-positive due to second-order macros. |
11318 } // NOLINT, false-positive due to second-order macros. | 11323 } // NOLINT, false-positive due to second-order macros. |
11319 | 11324 |
11320 #endif // V8_OBJECTS_H_ | 11325 #endif // V8_OBJECTS_H_ |
OLD | NEW |