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 6517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6528 Handle<HeapObject> code, | 6528 Handle<HeapObject> code, |
6529 Handle<LiteralsArray> literals, | 6529 Handle<LiteralsArray> literals, |
6530 BailoutId osr_ast_id); | 6530 BailoutId osr_ast_id); |
6531 | 6531 |
6532 // Set up the link between shared function info and the script. The shared | 6532 // Set up the link between shared function info and the script. The shared |
6533 // function info is added to the list on the script. | 6533 // function info is added to the list on the script. |
6534 static void SetScript(Handle<SharedFunctionInfo> shared, | 6534 static void SetScript(Handle<SharedFunctionInfo> shared, |
6535 Handle<Object> script_object); | 6535 Handle<Object> script_object); |
6536 | 6536 |
6537 // Layout description of the optimized code map. | 6537 // Layout description of the optimized code map. |
6538 static const int kNextMapIndex = 0; | 6538 static const int kSharedCodeIndex = 0; |
6539 static const int kSharedCodeIndex = 1; | 6539 static const int kEntriesStart = 1; |
6540 static const int kEntriesStart = 2; | |
6541 static const int kContextOffset = 0; | 6540 static const int kContextOffset = 0; |
6542 static const int kCachedCodeOffset = 1; | 6541 static const int kCachedCodeOffset = 1; |
6543 static const int kLiteralsOffset = 2; | 6542 static const int kLiteralsOffset = 2; |
6544 static const int kOsrAstIdOffset = 3; | 6543 static const int kOsrAstIdOffset = 3; |
6545 static const int kEntryLength = 4; | 6544 static const int kEntryLength = 4; |
6546 static const int kInitialLength = kEntriesStart + kEntryLength; | 6545 static const int kInitialLength = kEntriesStart + kEntryLength; |
6547 | 6546 |
6548 static const int kNotFound = -1; | 6547 static const int kNotFound = -1; |
6549 | 6548 |
6550 // [scope_info]: Scope info. | 6549 // [scope_info]: Scope info. |
(...skipping 4186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10737 } | 10736 } |
10738 return value; | 10737 return value; |
10739 } | 10738 } |
10740 }; | 10739 }; |
10741 | 10740 |
10742 | 10741 |
10743 } // NOLINT, false-positive due to second-order macros. | 10742 } // NOLINT, false-positive due to second-order macros. |
10744 } // NOLINT, false-positive due to second-order macros. | 10743 } // NOLINT, false-positive due to second-order macros. |
10745 | 10744 |
10746 #endif // V8_OBJECTS_H_ | 10745 #endif // V8_OBJECTS_H_ |
OLD | NEW |