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

Issue 16917004: Simplify stack iterators implementation (Closed)

Created:
7 years, 6 months ago by yurys
Modified:
7 years, 5 months ago
CC:
v8-dev, alph
Visibility:
Public.

Description

Simplify stack iterators implementation In order to fix https://code.google.com/p/chromium/issues/detail?id=252097 I need to change SafeStackTraceFrameIterator. Stack iterators hierarchy looks excessively complicated and I'd like to flatten it a bit by removing some intermediate classes. In particular there are two hierarchies sharing JavaScriptFrameIteratorTemp<T> template for no good reason. This change extracts some of JavaScriptFrameIteratorTemp functionality directly into SafeStackTraceFrameIterator. This made it obvious that a few checks were performed twice. The rest of JavaScriptFrameIteratorTemp<T> is merged with JavaScriptFrameIterator. Now that the class is not a template some of its implementation is moved from frames-inl.h into frames.cc So in this change I removed JavaScriptFrameIterator and SafeJavaScriptFrameIterator. As the next step I'm going to merge SafeStackFrameIterator into SafeStackTraceFrameIterator. BUG=None R=loislo@chromium.org, svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15275

Patch Set 1 #

Patch Set 2 : Remove ancestor of SafeStackTraceFrameIterator::Advance #

Patch Set 3 : Merged JavaScriptFrameIterator with JavaScriptFrameIteratorTemp #

Patch Set 4 : Moved JavaScriptFrameIterator implementation into frames.cc #

Patch Set 5 : Use iterator_.frame() instead of frame() to avoid assertion failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -101 lines) Patch
M src/frames.h View 1 2 3 5 chunks +18 lines, -44 lines 0 comments Download
M src/frames.cc View 1 2 3 4 2 chunks +33 lines, -14 lines 0 comments Download
M src/frames-inl.h View 1 2 3 2 chunks +11 lines, -43 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
yurys
In order to fix https://code.google.com/p/chromium/issues/detail?id=252097 I need to change SafeStackTraceFrameIterator. Stack iterators hierarchy looks excessively ...
7 years, 6 months ago (2013-06-21 15:00:04 UTC) #1
loislo
lgtm
7 years, 6 months ago (2013-06-21 15:07:52 UTC) #2
Sven Panne
lgtm
7 years, 6 months ago (2013-06-24 08:33:36 UTC) #3
yurys
7 years, 6 months ago (2013-06-24 08:38:46 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r15275 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698