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

Side by Side Diff: src/objects.h

Issue 1421903012: [heap] Separate out optimized code map processing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make verifier happy. 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 6537 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 kNextMapIndex = 0; 6558 static const int kSharedCodeIndex = 0;
6559 static const int kSharedCodeIndex = 1; 6559 static const int kEntriesStart = 1;
6560 static const int kEntriesStart = 2;
6561 static const int kContextOffset = 0; 6560 static const int kContextOffset = 0;
6562 static const int kCachedCodeOffset = 1; 6561 static const int kCachedCodeOffset = 1;
6563 static const int kLiteralsOffset = 2; 6562 static const int kLiteralsOffset = 2;
6564 static const int kOsrAstIdOffset = 3; 6563 static const int kOsrAstIdOffset = 3;
6565 static const int kEntryLength = 4; 6564 static const int kEntryLength = 4;
6566 static const int kInitialLength = kEntriesStart + kEntryLength; 6565 static const int kInitialLength = kEntriesStart + kEntryLength;
6567 6566
6568 static const int kNotFound = -1; 6567 static const int kNotFound = -1;
6569 6568
6570 // [scope_info]: Scope info. 6569 // [scope_info]: Scope info.
(...skipping 4187 matching lines...) Expand 10 before | Expand all | Expand 10 after
10758 } 10757 }
10759 return value; 10758 return value;
10760 } 10759 }
10761 }; 10760 };
10762 10761
10763 10762
10764 } // NOLINT, false-positive due to second-order macros. 10763 } // NOLINT, false-positive due to second-order macros.
10765 } // NOLINT, false-positive due to second-order macros. 10764 } // NOLINT, false-positive due to second-order macros.
10766 10765
10767 #endif // V8_OBJECTS_H_ 10766 #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