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 6537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6548 Handle<HeapObject> code, | 6548 Handle<HeapObject> code, |
6549 Handle<LiteralsArray> literals, | 6549 Handle<LiteralsArray> literals, |
6550 BailoutId osr_ast_id); | 6550 BailoutId osr_ast_id); |
6551 | 6551 |
6552 // Set up the link between shared function info and the script. The shared | 6552 // Set up the link between shared function info and the script. The shared |
6553 // function info is added to the list on the script. | 6553 // function info is added to the list on the script. |
6554 static void SetScript(Handle<SharedFunctionInfo> shared, | 6554 static void SetScript(Handle<SharedFunctionInfo> shared, |
6555 Handle<Object> script_object); | 6555 Handle<Object> script_object); |
6556 | 6556 |
6557 // Layout description of the optimized code map. | 6557 // Layout description of the optimized code map. |
6558 static const int kSharedCodeIndex = 0; | 6558 static const int kNextMapIndex = 0; |
6559 static const int kEntriesStart = 1; | 6559 static const int kSharedCodeIndex = 1; |
| 6560 static const int kEntriesStart = 2; |
6560 static const int kContextOffset = 0; | 6561 static const int kContextOffset = 0; |
6561 static const int kCachedCodeOffset = 1; | 6562 static const int kCachedCodeOffset = 1; |
6562 static const int kLiteralsOffset = 2; | 6563 static const int kLiteralsOffset = 2; |
6563 static const int kOsrAstIdOffset = 3; | 6564 static const int kOsrAstIdOffset = 3; |
6564 static const int kEntryLength = 4; | 6565 static const int kEntryLength = 4; |
6565 static const int kInitialLength = kEntriesStart + kEntryLength; | 6566 static const int kInitialLength = kEntriesStart + kEntryLength; |
6566 | 6567 |
6567 static const int kNotFound = -1; | 6568 static const int kNotFound = -1; |
6568 | 6569 |
6569 // [scope_info]: Scope info. | 6570 // [scope_info]: Scope info. |
(...skipping 4187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10757 } | 10758 } |
10758 return value; | 10759 return value; |
10759 } | 10760 } |
10760 }; | 10761 }; |
10761 | 10762 |
10762 | 10763 |
10763 } // NOLINT, false-positive due to second-order macros. | 10764 } // NOLINT, false-positive due to second-order macros. |
10764 } // NOLINT, false-positive due to second-order macros. | 10765 } // NOLINT, false-positive due to second-order macros. |
10765 | 10766 |
10766 #endif // V8_OBJECTS_H_ | 10767 #endif // V8_OBJECTS_H_ |
OLD | NEW |