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

Unified Diff: syzygy/agent/common/stack_capture.h

Issue 2194383007: Port some more code to x64 (Closed) Base URL: git@github.com:google/syzygy.git@master
Patch Set: Rename the stack_walker unittest and fix the x86-64 implementation of stack_walker Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « syzygy/agent/common/hot_patcher.cc ('k') | syzygy/agent/common/stack_capture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/common/stack_capture.h
diff --git a/syzygy/agent/common/stack_capture.h b/syzygy/agent/common/stack_capture.h
index 294dcb708e0cd7a7bd6ba7c4a3a8ff75359c5e50..31b7d3f6dedf66031aab4c63def3b42292af1484 100644
--- a/syzygy/agent/common/stack_capture.h
+++ b/syzygy/agent/common/stack_capture.h
@@ -21,7 +21,7 @@
#include <windows.h>
#include "base/logging.h"
-#include "syzygy/agent/common/stack_walker_x86.h"
+#include "syzygy/agent/common/stack_walker.h"
#include "syzygy/common/asan_parameters.h"
namespace agent {
@@ -221,7 +221,7 @@ __forceinline StackId StackCapture::StartStackId() {
// static
__forceinline StackId StackCapture::UpdateStackId(StackId stack_id,
const void* frame) {
- stack_id += reinterpret_cast<StackId>(frame);
+ stack_id += static_cast<StackId>(reinterpret_cast<uintptr_t>(frame));
stack_id += stack_id << 10;
stack_id ^= stack_id >> 6;
return stack_id;
« no previous file with comments | « syzygy/agent/common/hot_patcher.cc ('k') | syzygy/agent/common/stack_capture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698