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

Side by Side Diff: src/isolate.cc

Issue 2803853005: Inline Array.prototype.forEach in TurboFan (Closed)
Patch Set: Disable new array builtins by default Created 3 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/frames-inl.h ('k') | src/objects.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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 Handle<FrameArray> elements = factory()->NewFrameArray(initial_size); 489 Handle<FrameArray> elements = factory()->NewFrameArray(initial_size);
490 490
491 StackTraceHelper helper(this, mode, caller); 491 StackTraceHelper helper(this, mode, caller);
492 492
493 for (StackFrameIterator iter(this); 493 for (StackFrameIterator iter(this);
494 !iter.done() && elements->FrameCount() < limit; iter.Advance()) { 494 !iter.done() && elements->FrameCount() < limit; iter.Advance()) {
495 StackFrame* frame = iter.frame(); 495 StackFrame* frame = iter.frame();
496 496
497 switch (frame->type()) { 497 switch (frame->type()) {
498 case StackFrame::JAVA_SCRIPT: 498 case StackFrame::JAVA_SCRIPT:
499 case StackFrame::JAVA_SCRIPT_BUILTIN_CONTINUATION:
499 case StackFrame::OPTIMIZED: 500 case StackFrame::OPTIMIZED:
500 case StackFrame::INTERPRETED: 501 case StackFrame::INTERPRETED:
501 case StackFrame::BUILTIN: { 502 case StackFrame::BUILTIN: {
502 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame); 503 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame);
503 // Set initial size to the maximum inlining level + 1 for the outermost 504 // Set initial size to the maximum inlining level + 1 for the outermost
504 // function. 505 // function.
505 List<FrameSummary> frames(FLAG_max_inlining_levels + 1); 506 List<FrameSummary> frames(FLAG_max_inlining_levels + 1);
506 js_frame->Summarize(&frames); 507 js_frame->Summarize(&frames);
507 for (int i = frames.length() - 1; 508 for (int i = frames.length() - 1;
508 i >= 0 && elements->FrameCount() < limit; i--) { 509 i >= 0 && elements->FrameCount() < limit; i--) {
(...skipping 3274 matching lines...) Expand 10 before | Expand all | Expand 10 after
3783 // Then check whether this scope intercepts. 3784 // Then check whether this scope intercepts.
3784 if ((flag & intercept_mask_)) { 3785 if ((flag & intercept_mask_)) {
3785 intercepted_flags_ |= flag; 3786 intercepted_flags_ |= flag;
3786 return true; 3787 return true;
3787 } 3788 }
3788 return false; 3789 return false;
3789 } 3790 }
3790 3791
3791 } // namespace internal 3792 } // namespace internal
3792 } // namespace v8 3793 } // namespace v8
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698