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

Side by Side Diff: src/frames.h

Issue 2626213002: [runtime] Change JavaScriptFrame::GetFunctions interface. (Closed)
Patch Set: Rebased. Created 3 years, 11 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/accessors.cc ('k') | src/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 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 #ifndef V8_FRAMES_H_ 5 #ifndef V8_FRAMES_H_
6 #define V8_FRAMES_H_ 6 #define V8_FRAMES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 // Garbage collection support. 1018 // Garbage collection support.
1019 void Iterate(ObjectVisitor* v) const override; 1019 void Iterate(ObjectVisitor* v) const override;
1020 1020
1021 // Printing support. 1021 // Printing support.
1022 void Print(StringStream* accumulator, PrintMode mode, 1022 void Print(StringStream* accumulator, PrintMode mode,
1023 int index) const override; 1023 int index) const override;
1024 1024
1025 // Determine the code for the frame. 1025 // Determine the code for the frame.
1026 Code* unchecked_code() const override; 1026 Code* unchecked_code() const override;
1027 1027
1028 // Return a list with JSFunctions of this frame. 1028 // Return a list with {SharedFunctionInfo} objects of this frame.
1029 virtual void GetFunctions(List<JSFunction*>* functions) const; 1029 virtual void GetFunctions(List<SharedFunctionInfo*>* functions) const;
1030 1030
1031 // Lookup exception handler for current {pc}, returns -1 if none found. Also 1031 // Lookup exception handler for current {pc}, returns -1 if none found. Also
1032 // returns data associated with the handler site specific to the frame type: 1032 // returns data associated with the handler site specific to the frame type:
1033 // - OptimizedFrame : Data is the stack slot count of the entire frame. 1033 // - OptimizedFrame : Data is the stack slot count of the entire frame.
1034 // - InterpretedFrame: Data is the register index holding the context. 1034 // - InterpretedFrame: Data is the register index holding the context.
1035 virtual int LookupExceptionHandlerInTable( 1035 virtual int LookupExceptionHandlerInTable(
1036 int* data, HandlerTable::CatchPrediction* prediction); 1036 int* data, HandlerTable::CatchPrediction* prediction);
1037 1037
1038 // Architecture-specific register description. 1038 // Architecture-specific register description.
1039 static Register fp_register(); 1039 static Register fp_register();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 }; 1098 };
1099 1099
1100 1100
1101 class OptimizedFrame : public JavaScriptFrame { 1101 class OptimizedFrame : public JavaScriptFrame {
1102 public: 1102 public:
1103 Type type() const override { return OPTIMIZED; } 1103 Type type() const override { return OPTIMIZED; }
1104 1104
1105 // GC support. 1105 // GC support.
1106 void Iterate(ObjectVisitor* v) const override; 1106 void Iterate(ObjectVisitor* v) const override;
1107 1107
1108 // Return a list with JSFunctions of this frame. 1108 // Return a list with {SharedFunctionInfo} objects of this frame.
1109 // The functions are ordered bottom-to-top (i.e. functions.last() 1109 // The functions are ordered bottom-to-top (i.e. functions.last()
1110 // is the top-most activation) 1110 // is the top-most activation)
1111 void GetFunctions(List<JSFunction*>* functions) const override; 1111 void GetFunctions(List<SharedFunctionInfo*>* functions) const override;
1112 1112
1113 void Summarize( 1113 void Summarize(
1114 List<FrameSummary>* frames, 1114 List<FrameSummary>* frames,
1115 FrameSummary::Mode mode = FrameSummary::kExactSummary) const override; 1115 FrameSummary::Mode mode = FrameSummary::kExactSummary) const override;
1116 1116
1117 // Lookup exception handler for current {pc}, returns -1 if none found. 1117 // Lookup exception handler for current {pc}, returns -1 if none found.
1118 int LookupExceptionHandlerInTable( 1118 int LookupExceptionHandlerInTable(
1119 int* data, HandlerTable::CatchPrediction* prediction) override; 1119 int* data, HandlerTable::CatchPrediction* prediction) override;
1120 1120
1121 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index) const; 1121 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index) const;
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 1548
1549 1549
1550 // Reads all frames on the current stack and copies them into the current 1550 // Reads all frames on the current stack and copies them into the current
1551 // zone memory. 1551 // zone memory.
1552 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 1552 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
1553 1553
1554 } // namespace internal 1554 } // namespace internal
1555 } // namespace v8 1555 } // namespace v8
1556 1556
1557 #endif // V8_FRAMES_H_ 1557 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698