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

Side by Side Diff: src/isolate.cc

Issue 1424703005: Remove JSBuiltinsObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
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 "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 if ((fun == caller) && !(*seen_caller)) { 309 if ((fun == caller) && !(*seen_caller)) {
310 *seen_caller = true; 310 *seen_caller = true;
311 return false; 311 return false;
312 } 312 }
313 // Skip all frames until we've seen the caller. 313 // Skip all frames until we've seen the caller.
314 if (!(*seen_caller)) return false; 314 if (!(*seen_caller)) return false;
315 // Functions defined in native scripts are not visible unless directly 315 // Functions defined in native scripts are not visible unless directly
316 // exposed, in which case the native flag is set. 316 // exposed, in which case the native flag is set.
317 // The --builtins-in-stack-traces command line flag allows including 317 // The --builtins-in-stack-traces command line flag allows including
318 // internal call sites in the stack trace for debugging purposes. 318 // internal call sites in the stack trace for debugging purposes.
319 if (!FLAG_builtins_in_stack_traces) { 319 if (!FLAG_builtins_in_stack_traces && fun->IsBuiltin()) {
320 if (receiver->IsJSBuiltinsObject()) return false; 320 return fun->shared()->native();
321 if (fun->IsBuiltin()) return fun->shared()->native();
322 } 321 }
323 return true; 322 return true;
324 } 323 }
325 324
326 325
327 Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSObject> error_object, 326 Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSObject> error_object,
328 Handle<Object> caller) { 327 Handle<Object> caller) {
329 // Get stack trace limit. 328 // Get stack trace limit.
330 Handle<JSObject> error = error_function(); 329 Handle<JSObject> error = error_function();
331 Handle<String> stackTraceLimit = 330 Handle<String> stackTraceLimit =
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 // Then check whether this scope intercepts. 2849 // Then check whether this scope intercepts.
2851 if ((flag & intercept_mask_)) { 2850 if ((flag & intercept_mask_)) {
2852 intercepted_flags_ |= flag; 2851 intercepted_flags_ |= flag;
2853 return true; 2852 return true;
2854 } 2853 }
2855 return false; 2854 return false;
2856 } 2855 }
2857 2856
2858 } // namespace internal 2857 } // namespace internal
2859 } // namespace v8 2858 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698