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

Side by Side Diff: src/isolate.cc

Issue 469733002: Rename the configuration flags of the LookupIterator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/json-stringifier.h » ('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 "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 // been properly initialized. 1042 // been properly initialized.
1043 if (!bootstrapping) { 1043 if (!bootstrapping) {
1044 Handle<JSArray> stack_trace_object; 1044 Handle<JSArray> stack_trace_object;
1045 if (capture_stack_trace_for_uncaught_exceptions_) { 1045 if (capture_stack_trace_for_uncaught_exceptions_) {
1046 if (IsErrorObject(exception_handle)) { 1046 if (IsErrorObject(exception_handle)) {
1047 // We fetch the stack trace that corresponds to this error object. 1047 // We fetch the stack trace that corresponds to this error object.
1048 Handle<Name> key = factory()->detailed_stack_trace_symbol(); 1048 Handle<Name> key = factory()->detailed_stack_trace_symbol();
1049 // Look up as own property. If the lookup fails, the exception is 1049 // Look up as own property. If the lookup fails, the exception is
1050 // probably not a valid Error object. In that case, we fall through 1050 // probably not a valid Error object. In that case, we fall through
1051 // and capture the stack trace at this throw site. 1051 // and capture the stack trace at this throw site.
1052 LookupIterator lookup( 1052 LookupIterator lookup(exception_handle, key,
1053 exception_handle, key, LookupIterator::CHECK_OWN_REAL); 1053 LookupIterator::CHECK_PROPERTY);
1054 Handle<Object> stack_trace_property; 1054 Handle<Object> stack_trace_property;
1055 if (Object::GetProperty(&lookup).ToHandle(&stack_trace_property) && 1055 if (Object::GetProperty(&lookup).ToHandle(&stack_trace_property) &&
1056 stack_trace_property->IsJSArray()) { 1056 stack_trace_property->IsJSArray()) {
1057 stack_trace_object = Handle<JSArray>::cast(stack_trace_property); 1057 stack_trace_object = Handle<JSArray>::cast(stack_trace_property);
1058 } 1058 }
1059 } 1059 }
1060 if (stack_trace_object.is_null()) { 1060 if (stack_trace_object.is_null()) {
1061 // Not an error object, we capture at throw site. 1061 // Not an error object, we capture at throw site.
1062 stack_trace_object = CaptureCurrentStackTrace( 1062 stack_trace_object = CaptureCurrentStackTrace(
1063 stack_trace_for_uncaught_exceptions_frame_limit_, 1063 stack_trace_for_uncaught_exceptions_frame_limit_,
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 if (prev_ && prev_->Intercept(flag)) return true; 2364 if (prev_ && prev_->Intercept(flag)) return true;
2365 // Then check whether this scope intercepts. 2365 // Then check whether this scope intercepts.
2366 if ((flag & intercept_mask_)) { 2366 if ((flag & intercept_mask_)) {
2367 intercepted_flags_ |= flag; 2367 intercepted_flags_ |= flag;
2368 return true; 2368 return true;
2369 } 2369 }
2370 return false; 2370 return false;
2371 } 2371 }
2372 2372
2373 } } // namespace v8::internal 2373 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/json-stringifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698