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

Unified Diff: syzygy/refinery/analyzers/stack_frame_analyzer_impl.h

Issue 1475083002: [Refinery] Introduce TypePropagatorAnalyzer - pointer types. (Closed) Base URL: https://github.com/google/syzygy.git@master
Patch Set: Final nit Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: syzygy/refinery/analyzers/stack_frame_analyzer_impl.h
diff --git a/syzygy/refinery/analyzers/stack_frame_analyzer_impl.h b/syzygy/refinery/analyzers/stack_frame_analyzer_impl.h
index b56715f65a5a38bcf652a9255cf71d725d7ec24a..0a47c31b6b85b3341cb011745d2d42d6a95b1e19 100644
--- a/syzygy/refinery/analyzers/stack_frame_analyzer_impl.h
+++ b/syzygy/refinery/analyzers/stack_frame_analyzer_impl.h
@@ -19,6 +19,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "syzygy/refinery/process_state/layer_data.h"
#include "syzygy/refinery/process_state/process_state.h"
#include "syzygy/refinery/process_state/process_state_util.h"
#include "syzygy/refinery/types/type_repository.h"
@@ -33,6 +34,7 @@ class StackFrameDataAnalyzer {
public:
StackFrameDataAnalyzer(StackFrameRecordPtr frame_record,
scoped_refptr<TypeNameIndex> typename_index,
+ ModuleId module_id,
ProcessState* process_state);
// Analyze @p data in the context of the frame record to populate the process
@@ -45,11 +47,14 @@ class StackFrameDataAnalyzer {
bool Analyze(IDiaSymbol* data);
private:
- bool GetAddressRange(IDiaSymbol* data, AddressRange* range);
- bool GetAddressRangeRegRel(IDiaSymbol* data, AddressRange* range);
+ bool GetAddressRange(IDiaSymbol* data, TypePtr type, AddressRange* range);
+ bool GetAddressRangeRegRel(IDiaSymbol* data,
+ TypePtr type,
+ AddressRange* range);
StackFrameRecordPtr frame_record_;
scoped_refptr<TypeNameIndex> typename_index_;
+ ModuleId module_id_;
// Not owned. Must outlive the StackFrameDataAnalyzer.
ProcessState* process_state_;
« no previous file with comments | « syzygy/refinery/analyzers/stack_frame_analyzer.cc ('k') | syzygy/refinery/analyzers/stack_frame_analyzer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698