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

Unified Diff: src/objects-body-descriptors-inl.h

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: ready for review Created 3 years, 9 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
« src/isolate.cc ('K') | « src/objects.h ('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-body-descriptors-inl.h
diff --git a/src/objects-body-descriptors-inl.h b/src/objects-body-descriptors-inl.h
index c4428a44f83d78c1ed74e97a15e376588de706e8..20c833fcf7ebde9871d5eeb24f171f61f4062d9b 100644
--- a/src/objects-body-descriptors-inl.h
+++ b/src/objects-body-descriptors-inl.h
@@ -241,8 +241,7 @@ class JSArrayBuffer::BodyDescriptor final : public BodyDescriptorBase {
class BytecodeArray::BodyDescriptor final : public BodyDescriptorBase {
public:
static bool IsValidSlot(HeapObject* obj, int offset) {
- return offset >= kConstantPoolOffset &&
- offset <= kSourcePositionTableOffset;
+ return offset >= kConstantPoolOffset && offset <= kStackFrameCacheOffset;
}
template <typename ObjectVisitor>
@@ -251,6 +250,7 @@ class BytecodeArray::BodyDescriptor final : public BodyDescriptorBase {
IteratePointer(obj, kConstantPoolOffset, v);
IteratePointer(obj, kHandlerTableOffset, v);
IteratePointer(obj, kSourcePositionTableOffset, v);
+ IteratePointer(obj, kStackFrameCacheOffset, v);
}
template <typename StaticVisitor>
@@ -259,6 +259,7 @@ class BytecodeArray::BodyDescriptor final : public BodyDescriptorBase {
IteratePointer<StaticVisitor>(heap, obj, kConstantPoolOffset);
IteratePointer<StaticVisitor>(heap, obj, kHandlerTableOffset);
IteratePointer<StaticVisitor>(heap, obj, kSourcePositionTableOffset);
+ IteratePointer<StaticVisitor>(heap, obj, kStackFrameCacheOffset);
}
static inline int SizeOf(Map* map, HeapObject* obj) {
@@ -399,6 +400,8 @@ class Code::BodyDescriptor final : public BodyDescriptorBase {
STATIC_ASSERT(kDeoptimizationDataOffset + kPointerSize ==
kSourcePositionTableOffset);
STATIC_ASSERT(kSourcePositionTableOffset + kPointerSize ==
+ kStackFrameCacheOffset);
+ STATIC_ASSERT(kStackFrameCacheOffset + kPointerSize ==
kTypeFeedbackInfoOffset);
STATIC_ASSERT(kTypeFeedbackInfoOffset + kPointerSize ==
kNextCodeLinkOffset);
« src/isolate.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698