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

Unified Diff: src/objects.h

Issue 2401653002: [turbofan] Discard the shared code entry in the optimized code map. (Closed)
Patch Set: Dead code. 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 552e96f18fab6259c0c2661098c552c44b7fdca5..d419880f7881fa192e9696984cc82ae1bbffdeb2 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7167,10 +7167,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,
@@ -7185,8 +7181,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;
@@ -7788,8 +7783,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);
« src/builtins/arm/builtins-arm.cc ('K') | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698