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

Side by Side Diff: src/frames.cc

Issue 1879543002: [runtime] fix Frame Type compute for wasm code (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | 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/frames.h" 5 #include "src/frames.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 static_cast<StackFrame::Type>(Smi::cast(marker)->value()); 479 static_cast<StackFrame::Type>(Smi::cast(marker)->value());
480 switch (candidate) { 480 switch (candidate) {
481 case ENTRY: 481 case ENTRY:
482 case ENTRY_CONSTRUCT: 482 case ENTRY_CONSTRUCT:
483 case EXIT: 483 case EXIT:
484 case STUB: 484 case STUB:
485 case STUB_FAILURE_TRAMPOLINE: 485 case STUB_FAILURE_TRAMPOLINE:
486 case INTERNAL: 486 case INTERNAL:
487 case CONSTRUCT: 487 case CONSTRUCT:
488 case ARGUMENTS_ADAPTOR: 488 case ARGUMENTS_ADAPTOR:
489 case WASM_TO_JS:
490 case WASM:
489 return candidate; 491 return candidate;
490 case JS_TO_WASM: 492 case JS_TO_WASM:
491 case WASM_TO_JS:
492 case WASM:
493 case JAVA_SCRIPT: 493 case JAVA_SCRIPT:
494 case OPTIMIZED: 494 case OPTIMIZED:
495 case INTERPRETED: 495 case INTERPRETED:
496 default: 496 default:
497 // Unoptimized and optimized JavaScript frames, including 497 // Unoptimized and optimized JavaScript frames, including
498 // interpreted frames, should never have a StackFrame::Type 498 // interpreted frames, should never have a StackFrame::Type
499 // marker. If we find one, we're likely being called from the 499 // marker. If we find one, we're likely being called from the
500 // profiler in a bogus stack frame. 500 // profiler in a bogus stack frame.
501 return NONE; 501 return NONE;
502 } 502 }
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1747 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1748 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1748 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1749 list.Add(frame, zone); 1749 list.Add(frame, zone);
1750 } 1750 }
1751 return list.ToVector(); 1751 return list.ToVector();
1752 } 1752 }
1753 1753
1754 1754
1755 } // namespace internal 1755 } // namespace internal
1756 } // namespace v8 1756 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698