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

Unified Diff: src/objects.h

Issue 2403453002: Revert of [turbofan] Discard the shared code entry in the optimized code map. (Closed)
Patch Set: 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 322dccac1ae614ead5b2b2883a4693aa125c50bf..123d1c229c719b14b1a1b6601ee3e6af8398e474 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7168,6 +7168,10 @@
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,
@@ -7182,7 +7186,8 @@
Handle<Object> script_object);
// Layout description of the optimized code map.
- static const int kEntriesStart = 0;
+ static const int kSharedCodeIndex = 0;
+ static const int kEntriesStart = 1;
static const int kContextOffset = 0;
static const int kCachedCodeOffset = 1;
static const int kLiteralsOffset = 2;
@@ -7784,8 +7789,8 @@
private:
// Returns entry from optimized code map for specified context and OSR entry.
- // The result is either kNotFound, or a start index of the context-dependent
- // entry.
+ // The result is either kNotFound, kSharedCodeIndex for context-independent
+ // entry 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