| 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/assert-scope.h" | 10 #include "src/assert-scope.h" | 
| (...skipping 6670 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6681   static const int kEntriesStart = 1; | 6681   static const int kEntriesStart = 1; | 
| 6682   static const int kContextOffset = 0; | 6682   static const int kContextOffset = 0; | 
| 6683   static const int kCachedCodeOffset = 1; | 6683   static const int kCachedCodeOffset = 1; | 
| 6684   static const int kLiteralsOffset = 2; | 6684   static const int kLiteralsOffset = 2; | 
| 6685   static const int kOsrAstIdOffset = 3; | 6685   static const int kOsrAstIdOffset = 3; | 
| 6686   static const int kEntryLength = 4; | 6686   static const int kEntryLength = 4; | 
| 6687   static const int kInitialLength = kEntriesStart + kEntryLength; | 6687   static const int kInitialLength = kEntriesStart + kEntryLength; | 
| 6688 | 6688 | 
| 6689   static const int kNotFound = -1; | 6689   static const int kNotFound = -1; | 
| 6690 | 6690 | 
| 6691   // Helpers for assembly code that does a backwards walk of the optimized code |  | 
| 6692   // map. |  | 
| 6693   static const int kOffsetToPreviousContext = |  | 
| 6694       FixedArray::kHeaderSize + kPointerSize * (kContextOffset - kEntryLength); |  | 
| 6695   static const int kOffsetToPreviousCachedCode = |  | 
| 6696       FixedArray::kHeaderSize + |  | 
| 6697       kPointerSize * (kCachedCodeOffset - kEntryLength); |  | 
| 6698   static const int kOffsetToPreviousLiterals = |  | 
| 6699       FixedArray::kHeaderSize + kPointerSize * (kLiteralsOffset - kEntryLength); |  | 
| 6700   static const int kOffsetToPreviousOsrAstId = |  | 
| 6701       FixedArray::kHeaderSize + kPointerSize * (kOsrAstIdOffset - kEntryLength); |  | 
| 6702 |  | 
| 6703   // [scope_info]: Scope info. | 6691   // [scope_info]: Scope info. | 
| 6704   DECL_ACCESSORS(scope_info, ScopeInfo) | 6692   DECL_ACCESSORS(scope_info, ScopeInfo) | 
| 6705 | 6693 | 
| 6706   // [construct stub]: Code stub for constructing instances of this function. | 6694   // [construct stub]: Code stub for constructing instances of this function. | 
| 6707   DECL_ACCESSORS(construct_stub, Code) | 6695   DECL_ACCESSORS(construct_stub, Code) | 
| 6708 | 6696 | 
| 6709   // Returns if this function has been compiled to native code yet. | 6697   // Returns if this function has been compiled to native code yet. | 
| 6710   inline bool is_compiled(); | 6698   inline bool is_compiled(); | 
| 6711 | 6699 | 
| 6712   // [length]: The function length - usually the number of declared parameters. | 6700   // [length]: The function length - usually the number of declared parameters. | 
| (...skipping 4061 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 10774     } | 10762     } | 
| 10775     return value; | 10763     return value; | 
| 10776   } | 10764   } | 
| 10777 }; | 10765 }; | 
| 10778 | 10766 | 
| 10779 | 10767 | 
| 10780 }  // NOLINT, false-positive due to second-order macros. | 10768 }  // NOLINT, false-positive due to second-order macros. | 
| 10781 }  // NOLINT, false-positive due to second-order macros. | 10769 }  // NOLINT, false-positive due to second-order macros. | 
| 10782 | 10770 | 
| 10783 #endif  // V8_OBJECTS_H_ | 10771 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|