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

Side by Side Diff: src/isolate.cc

Issue 2069423002: [builtins] Introduce a proper BUILTIN frame type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix clobbered reg in mips Created 4 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 unified diff | Download patch
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips/builtins-mips.cc » ('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 "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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 int frames_seen = 0; 379 int frames_seen = 0;
380 int sloppy_frames = 0; 380 int sloppy_frames = 0;
381 bool encountered_strict_function = false; 381 bool encountered_strict_function = false;
382 for (StackFrameIterator iter(this); !iter.done() && frames_seen < limit; 382 for (StackFrameIterator iter(this); !iter.done() && frames_seen < limit;
383 iter.Advance()) { 383 iter.Advance()) {
384 StackFrame* frame = iter.frame(); 384 StackFrame* frame = iter.frame();
385 385
386 switch (frame->type()) { 386 switch (frame->type()) {
387 case StackFrame::JAVA_SCRIPT: 387 case StackFrame::JAVA_SCRIPT:
388 case StackFrame::OPTIMIZED: 388 case StackFrame::OPTIMIZED:
389 case StackFrame::INTERPRETED: { 389 case StackFrame::INTERPRETED:
390 case StackFrame::BUILTIN: {
390 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame); 391 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame);
391 // Set initial size to the maximum inlining level + 1 for the outermost 392 // Set initial size to the maximum inlining level + 1 for the outermost
392 // function. 393 // function.
393 List<FrameSummary> frames(FLAG_max_inlining_levels + 1); 394 List<FrameSummary> frames(FLAG_max_inlining_levels + 1);
394 js_frame->Summarize(&frames); 395 js_frame->Summarize(&frames);
395 for (int i = frames.length() - 1; i >= 0; i--) { 396 for (int i = frames.length() - 1; i >= 0; i--) {
396 Handle<JSFunction> fun = frames[i].function(); 397 Handle<JSFunction> fun = frames[i].function();
397 Handle<Object> recv = frames[i].receiver(); 398 Handle<Object> recv = frames[i].receiver();
398 // Filter out internal frames that we do not want to show. 399 // Filter out internal frames that we do not want to show.
399 if (!IsVisibleInStackTrace(*fun, *caller, &seen_caller)) continue; 400 if (!IsVisibleInStackTrace(*fun, *caller, &seen_caller)) continue;
(...skipping 2659 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 // Then check whether this scope intercepts. 3060 // Then check whether this scope intercepts.
3060 if ((flag & intercept_mask_)) { 3061 if ((flag & intercept_mask_)) {
3061 intercepted_flags_ |= flag; 3062 intercepted_flags_ |= flag;
3062 return true; 3063 return true;
3063 } 3064 }
3064 return false; 3065 return false;
3065 } 3066 }
3066 3067
3067 } // namespace internal 3068 } // namespace internal
3068 } // namespace v8 3069 } // namespace v8
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698