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

Unified Diff: src/platform-win32.cc

Issue 113094: X64: Changed TickSample to hold pointer-sized values for registers. (Closed)
Patch Set: Created 11 years, 7 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
« src/log.cc ('K') | « src/platform-linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-win32.cc
diff --git a/src/platform-win32.cc b/src/platform-win32.cc
index 597a21716b2b655e4962b7b55b6ccb76d57ecc15..eeaea700f0a6a50106bce0227bda0cce273b92b6 100644
--- a/src/platform-win32.cc
+++ b/src/platform-win32.cc
@@ -1775,9 +1775,16 @@ class Sampler::PlatformData : public Malloced {
context.ContextFlags = CONTEXT_FULL;
GetThreadContext(profiled_thread_, &context);
// Invoke tick handler with program counter and stack pointer.
+#if V8_HOST_ARCH_64_BIT
Dean McNamee 2009/05/07 08:34:08 shouldn't we check for X64 here.
Lasse Reichstein 2009/05/07 09:06:01 No, this is really the host system's registers, no
Dean McNamee 2009/05/07 09:19:06 Yes, we have both V8_HOST_ARCH_X64 and V8_TARGET_A
Lasse Reichstein 2009/05/12 08:17:20 Done.
+ UNIMPLEMENTED();
William Hesse 2009/05/07 09:27:50 Shouldn't UNIMPLEMENTED() be removed, if this code
William Hesse 2009/05/07 09:27:50 Shouldn't UNIMPLEMENTED() be removed, if this code
+ sample.pc = context.Rip;
+ sample.sp = context.Rsp;
+ sample.fp = context.Rbp;
+#else
sample.pc = context.Eip;
sample.sp = context.Esp;
sample.fp = context.Ebp;
+#endif
}
// We always sample the VM state.
« src/log.cc ('K') | « src/platform-linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698