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

Unified Diff: src/objects.h

Issue 1670143002: Visit the Optimized Code Map on first call rather than closure creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed overly-restrictive assert. Created 4 years, 8 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/mips64/builtins-mips64.cc ('k') | src/objects-inl.h » ('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 a442ccc662cfc2dd93059e81d3718eef8a81b9f6..c1e08a2d78eb1faa8073860e1484534f3071fb2f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6694,6 +6694,18 @@ class SharedFunctionInfo: public HeapObject {
static const int kNotFound = -1;
+ // Helpers for assembly code that does a backwards walk of the optimized code
+ // map.
+ static const int kOffsetToPreviousContext =
+ FixedArray::kHeaderSize + kPointerSize * (kContextOffset - kEntryLength);
+ static const int kOffsetToPreviousCachedCode =
+ FixedArray::kHeaderSize +
+ kPointerSize * (kCachedCodeOffset - kEntryLength);
+ static const int kOffsetToPreviousLiterals =
+ FixedArray::kHeaderSize + kPointerSize * (kLiteralsOffset - kEntryLength);
+ static const int kOffsetToPreviousOsrAstId =
+ FixedArray::kHeaderSize + kPointerSize * (kOsrAstIdOffset - kEntryLength);
+
// [scope_info]: Scope info.
DECL_ACCESSORS(scope_info, ScopeInfo)
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698