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

Side by Side Diff: src/frames.cc

Issue 2803853005: Inline Array.prototype.forEach in TurboFan (Closed)
Patch Set: Review feedback Created 3 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
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/frames.h" 5 #include "src/frames.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 return NONE; 497 return NONE;
498 } 498 }
499 } 499 }
500 500
501 DCHECK(StackFrame::IsTypeMarker(marker)); 501 DCHECK(StackFrame::IsTypeMarker(marker));
502 StackFrame::Type candidate = StackFrame::MarkerToType(marker); 502 StackFrame::Type candidate = StackFrame::MarkerToType(marker);
503 switch (candidate) { 503 switch (candidate) {
504 case ENTRY: 504 case ENTRY:
505 case ENTRY_CONSTRUCT: 505 case ENTRY_CONSTRUCT:
506 case EXIT: 506 case EXIT:
507 case BUILTIN_CONTINUATION:
507 case BUILTIN_EXIT: 508 case BUILTIN_EXIT:
508 case STUB: 509 case STUB:
509 case STUB_FAILURE_TRAMPOLINE: 510 case STUB_FAILURE_TRAMPOLINE:
510 case INTERNAL: 511 case INTERNAL:
511 case CONSTRUCT: 512 case CONSTRUCT:
512 case ARGUMENTS_ADAPTOR: 513 case ARGUMENTS_ADAPTOR:
513 case WASM_TO_JS: 514 case WASM_TO_JS:
514 case WASM_COMPILED: 515 case WASM_COMPILED:
515 return candidate; 516 return candidate;
516 case JS_TO_WASM: 517 case JS_TO_WASM:
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 // Determine the fixed header and spill slot area size. 797 // Determine the fixed header and spill slot area size.
797 int frame_header_size = StandardFrameConstants::kFixedFrameSizeFromFp; 798 int frame_header_size = StandardFrameConstants::kFixedFrameSizeFromFp;
798 intptr_t marker = 799 intptr_t marker =
799 Memory::intptr_at(fp() + CommonFrameConstants::kContextOrFrameTypeOffset); 800 Memory::intptr_at(fp() + CommonFrameConstants::kContextOrFrameTypeOffset);
800 if (StackFrame::IsTypeMarker(marker)) { 801 if (StackFrame::IsTypeMarker(marker)) {
801 StackFrame::Type candidate = StackFrame::MarkerToType(marker); 802 StackFrame::Type candidate = StackFrame::MarkerToType(marker);
802 switch (candidate) { 803 switch (candidate) {
803 case ENTRY: 804 case ENTRY:
804 case ENTRY_CONSTRUCT: 805 case ENTRY_CONSTRUCT:
805 case EXIT: 806 case EXIT:
807 case BUILTIN_CONTINUATION:
806 case BUILTIN_EXIT: 808 case BUILTIN_EXIT:
807 case STUB_FAILURE_TRAMPOLINE: 809 case STUB_FAILURE_TRAMPOLINE:
808 case ARGUMENTS_ADAPTOR: 810 case ARGUMENTS_ADAPTOR:
809 case STUB: 811 case STUB:
810 case INTERNAL: 812 case INTERNAL:
811 case CONSTRUCT: 813 case CONSTRUCT:
812 case JS_TO_WASM: 814 case JS_TO_WASM:
813 case WASM_TO_JS: 815 case WASM_TO_JS:
814 case WASM_COMPILED: 816 case WASM_COMPILED:
815 case WASM_INTERPRETER_ENTRY: 817 case WASM_INTERPRETER_ENTRY:
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 2267 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
2266 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 2268 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
2267 list.Add(frame, zone); 2269 list.Add(frame, zone);
2268 } 2270 }
2269 return list.ToVector(); 2271 return list.ToVector();
2270 } 2272 }
2271 2273
2272 2274
2273 } // namespace internal 2275 } // namespace internal
2274 } // namespace v8 2276 } // namespace v8
OLDNEW
« src/builtins/ia32/builtins-ia32.cc ('K') | « src/frames.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698