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

Unified Diff: src/isolate.cc

Issue 16955008: Enable weak embedded maps in optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 6c797b252280a75680aa1f1c0f23cf58557d9f7e..68c8fe6844ab62ee195280fa51d9af2a0913c3c9 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -721,6 +721,17 @@ void Isolate::CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object) {
}
+StackFrame* Isolate::TopOptimizedFrame() {
+ for (StackFrameIterator it(this, thread_local_top());
+ !it.done(); it.Advance()) {
+ if (it.frame()->type() == StackFrame::OPTIMIZED) {
Michael Starzinger 2013/07/02 14:20:54 Shouldn't this actually just look whether the top-
ulan 2013/07/02 14:45:41 Added a check for non-optimized frame. On 2013/07
+ return it.frame();
+ }
+ }
+ return NULL;
+}
+
+
Handle<JSArray> Isolate::CaptureCurrentStackTrace(
int frame_limit, StackTrace::StackTraceOptions options) {
// Ensure no negative values.

Powered by Google App Engine
This is Rietveld 408576698