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

Side by Side Diff: src/frames.cc

Issue 1839843002: wasm: implemente WasmFrame::cast, fix inheritance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix inheritance 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 | « src/frames.h ('k') | src/frames-inl.h » ('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/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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 int byte_index = index >> kBitsPerByteLog2; 759 int byte_index = index >> kBitsPerByteLog2;
760 int bit_index = index & (kBitsPerByte - 1); 760 int bit_index = index & (kBitsPerByte - 1);
761 if ((safepoint_bits[byte_index] & (1U << bit_index)) != 0) { 761 if ((safepoint_bits[byte_index] & (1U << bit_index)) != 0) {
762 v->VisitPointer(parameters_limit + index); 762 v->VisitPointer(parameters_limit + index);
763 } 763 }
764 } 764 }
765 765
766 // Visit the return address in the callee and incoming arguments. 766 // Visit the return address in the callee and incoming arguments.
767 IteratePc(v, pc_address(), constant_pool_address(), code); 767 IteratePc(v, pc_address(), constant_pool_address(), code);
768 768
769 if (!is_wasm() && !is_wasm_to_js()) { 769 if (!is_wasm() || is_wasm_to_js()) {
bradnelson 2016/03/29 17:06:57 don't do that...
JF 2016/03/29 17:08:17 Thought I'd backed that off.
770 // Visit the context in stub frame and JavaScript frame. 770 // Visit the context in stub frame and JavaScript frame.
771 // Visit the function in JavaScript frame. 771 // Visit the function in JavaScript frame.
772 v->VisitPointers(frame_header_base, frame_header_limit); 772 v->VisitPointers(frame_header_base, frame_header_limit);
773 } 773 }
774 } 774 }
775 775
776 776
777 void StubFrame::Iterate(ObjectVisitor* v) const { 777 void StubFrame::Iterate(ObjectVisitor* v) const {
778 IterateCompiledFrame(v); 778 IterateCompiledFrame(v);
779 } 779 }
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1722 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1723 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1723 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1724 list.Add(frame, zone); 1724 list.Add(frame, zone);
1725 } 1725 }
1726 return list.ToVector(); 1726 return list.ToVector();
1727 } 1727 }
1728 1728
1729 1729
1730 } // namespace internal 1730 } // namespace internal
1731 } // namespace v8 1731 } // namespace v8
OLDNEW
« no previous file with comments | « src/frames.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698