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

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

Issue 1453043003: Fix BytecodeArray::BodyDescriptor::SizeOf(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | 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 8fe507ea3c07533e7667ea95c1c0193200379b9b..2c07f23e906b8e474f91ae4b97971b745c877849 100644
--- a/src/objects-body-descriptors-inl.h
+++ b/src/objects-body-descriptors-inl.h
@@ -234,9 +234,8 @@ class BytecodeArray::BodyDescriptor final : public BodyDescriptorBase {
IteratePointer<StaticVisitor>(heap, obj, kConstantPoolOffset);
}
- static inline int SizeOf(Map* map, HeapObject* object) {
- return SizeFor(
- reinterpret_cast<FixedArray*>(object)->synchronized_length());
+ static inline int SizeOf(Map* map, HeapObject* obj) {
+ return reinterpret_cast<BytecodeArray*>(obj)->BytecodeArraySize();
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698