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

Unified Diff: src/objects.h

Issue 2402663002: Reland "[turbofan] Discard the shared code entry in the optimized code map." (Closed)
Patch Set: Patch failure(?) Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 123d1c229c719b14b1a1b6601ee3e6af8398e474..322dccac1ae614ead5b2b2883a4693aa125c50bf 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7168,10 +7168,6 @@ class SharedFunctionInfo: public HeapObject {
static Handle<LiteralsArray> FindOrCreateLiterals(
Handle<SharedFunctionInfo> shared, Handle<Context> native_context);
- // Add or update entry in the optimized code map for context-independent code.
- static void AddSharedCodeToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
- Handle<Code> code);
-
// Add or update entry in the optimized code map for context-dependent code.
// If {code} is not given, then an existing entry's code won't be overwritten.
static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
@@ -7186,8 +7182,7 @@ class SharedFunctionInfo: public HeapObject {
Handle<Object> script_object);
// Layout description of the optimized code map.
- static const int kSharedCodeIndex = 0;
- static const int kEntriesStart = 1;
+ static const int kEntriesStart = 0;
static const int kContextOffset = 0;
static const int kCachedCodeOffset = 1;
static const int kLiteralsOffset = 2;
@@ -7789,8 +7784,8 @@ class SharedFunctionInfo: public HeapObject {
private:
// Returns entry from optimized code map for specified context and OSR entry.
- // The result is either kNotFound, kSharedCodeIndex for context-independent
- // entry or a start index of the context-dependent entry.
+ // The result is either kNotFound, or a start index of the context-dependent
+ // entry.
int SearchOptimizedCodeMapEntry(Context* native_context,
BailoutId osr_ast_id);
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698