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

Side by Side Diff: src/isolate.cc

Issue 1110393002: Disable stack trace preprocessing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix cctest.status Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | test/cctest/cctest.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 elements->set(cursor++, *fun); 403 elements->set(cursor++, *fun);
404 elements->set(cursor++, *code); 404 elements->set(cursor++, *code);
405 elements->set(cursor++, *offset); 405 elements->set(cursor++, *offset);
406 frames_seen++; 406 frames_seen++;
407 } 407 }
408 } 408 }
409 elements->set(0, Smi::FromInt(sloppy_frames)); 409 elements->set(0, Smi::FromInt(sloppy_frames));
410 elements->Shrink(cursor); 410 elements->Shrink(cursor);
411 Handle<JSArray> result = factory()->NewJSArrayWithElements(elements); 411 Handle<JSArray> result = factory()->NewJSArrayWithElements(elements);
412 result->set_length(Smi::FromInt(cursor)); 412 result->set_length(Smi::FromInt(cursor));
413 // Queue this structured stack trace for preprocessing on GC. 413 // TODO(yangguo): Queue this structured stack trace for preprocessing on GC.
414 Handle<Object> old_weak_list(heap()->weak_stack_trace_list(), this);
415 Handle<WeakFixedArray> new_weak_list =
416 WeakFixedArray::Add(old_weak_list, elements);
417 factory()->set_weak_stack_trace_list(new_weak_list);
418 return result; 414 return result;
419 } 415 }
420 416
421 417
422 MaybeHandle<JSObject> Isolate::CaptureAndSetDetailedStackTrace( 418 MaybeHandle<JSObject> Isolate::CaptureAndSetDetailedStackTrace(
423 Handle<JSObject> error_object) { 419 Handle<JSObject> error_object) {
424 if (capture_stack_trace_for_uncaught_exceptions_) { 420 if (capture_stack_trace_for_uncaught_exceptions_) {
425 // Capture stack trace for a detailed exception message. 421 // Capture stack trace for a detailed exception message.
426 Handle<Name> key = factory()->detailed_stack_trace_symbol(); 422 Handle<Name> key = factory()->detailed_stack_trace_symbol();
427 Handle<JSArray> stack_trace = CaptureCurrentStackTrace( 423 Handle<JSArray> stack_trace = CaptureCurrentStackTrace(
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2760 if (prev_ && prev_->Intercept(flag)) return true; 2756 if (prev_ && prev_->Intercept(flag)) return true;
2761 // Then check whether this scope intercepts. 2757 // Then check whether this scope intercepts.
2762 if ((flag & intercept_mask_)) { 2758 if ((flag & intercept_mask_)) {
2763 intercepted_flags_ |= flag; 2759 intercepted_flags_ |= flag;
2764 return true; 2760 return true;
2765 } 2761 }
2766 return false; 2762 return false;
2767 } 2763 }
2768 2764
2769 } } // namespace v8::internal 2765 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698