Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Side by Side Diff: src/objects.h

Issue 1426953006: [heap] Separate out optimized code map processing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698