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

Unified Diff: src/objects-inl.h

Issue 2274823002: Add flags to FrameArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@frame-array
Patch Set: Rebase Created 4 years, 4 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 3f44c718ab6adc71a205faf1c49af7a389c99230..0e5b4e1a71e36768ed02738eb67edc42575f6591 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2625,18 +2625,9 @@ Object** FixedArray::RawFieldOfElementAt(int index) {
FRAME_ARRAY_FIELD_LIST(DEFINE_FRAME_ARRAY_ACCESSORS)
#undef DEFINE_FRAME_ARRAY_ACCESSORS
-int FrameArray::SloppyFrameCount() const {
- return Smi::cast(get(kSloppyFramesIndex))->value();
-}
-
-void FrameArray::SetSloppyFrameCount(int count) {
- return set(kSloppyFramesIndex, Smi::FromInt(count));
-}
-
bool FrameArray::IsWasmFrame(int frame_ix) const {
- Object* obj = get(kFirstIndex + frame_ix * kElementsPerFrame +
- kWasmFunctionIndexOffset);
- return obj->IsSmi();
+ const int flags = Flags(frame_ix)->value();
+ return (flags & kIsWasmFrame) != 0;
}
int FrameArray::FrameCount() const {
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698