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

Side by Side Diff: src/debug/debug-frames.h

Issue 1695433002: Handlify DeoptimizedFrameInfo, remove custom GC iteration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use handle rather than the constructor. Created 4 years, 10 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/debug/debug-evaluate.cc ('k') | src/debug/debug-frames.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_DEBUG_DEBUG_FRAMES_H_ 5 #ifndef V8_DEBUG_DEBUG_FRAMES_H_
6 #define V8_DEBUG_DEBUG_FRAMES_H_ 6 #define V8_DEBUG_DEBUG_FRAMES_H_
7 7
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
11 #include "src/objects.h" 11 #include "src/objects.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 class FrameInspector { 16 class FrameInspector {
17 public: 17 public:
18 FrameInspector(JavaScriptFrame* frame, int inlined_jsframe_index, 18 FrameInspector(JavaScriptFrame* frame, int inlined_jsframe_index,
19 Isolate* isolate); 19 Isolate* isolate);
20 20
21 ~FrameInspector(); 21 ~FrameInspector();
22 22
23 int GetParametersCount(); 23 int GetParametersCount();
24 Object* GetFunction(); 24 Handle<Object> GetFunction();
25 Object* GetParameter(int index); 25 Handle<Object> GetParameter(int index);
26 Object* GetExpression(int index); 26 Handle<Object> GetExpression(int index);
27 int GetSourcePosition(); 27 int GetSourcePosition();
28 bool IsConstructor(); 28 bool IsConstructor();
29 Object* GetContext(); 29 Handle<Object> GetContext();
30 30
31 JavaScriptFrame* GetArgumentsFrame() { return frame_; } 31 JavaScriptFrame* GetArgumentsFrame() { return frame_; }
32 void SetArgumentsFrame(JavaScriptFrame* frame); 32 void SetArgumentsFrame(JavaScriptFrame* frame);
33 33
34 void MaterializeStackLocals(Handle<JSObject> target, 34 void MaterializeStackLocals(Handle<JSObject> target,
35 Handle<ScopeInfo> scope_info); 35 Handle<ScopeInfo> scope_info);
36 36
37 void MaterializeStackLocals(Handle<JSObject> target, 37 void MaterializeStackLocals(Handle<JSObject> target,
38 Handle<JSFunction> function); 38 Handle<JSFunction> function);
39 39
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 static StackFrame::Id UnwrapFrameId(int wrapped) { 72 static StackFrame::Id UnwrapFrameId(int wrapped) {
73 return static_cast<StackFrame::Id>(wrapped << 2); 73 return static_cast<StackFrame::Id>(wrapped << 2);
74 } 74 }
75 }; 75 };
76 76
77 } // namespace internal 77 } // namespace internal
78 } // namespace v8 78 } // namespace v8
79 79
80 #endif // V8_DEBUG_DEBUG_FRAMES_H_ 80 #endif // V8_DEBUG_DEBUG_FRAMES_H_
OLDNEW
« no previous file with comments | « src/debug/debug-evaluate.cc ('k') | src/debug/debug-frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698