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

Unified Diff: src/frames-inl.h

Issue 26006004: Annotate V8 for MemorySanitizer. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 2 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
Index: src/frames-inl.h
===================================================================
--- src/frames-inl.h (revision 17104)
+++ src/frames-inl.h (working copy)
@@ -30,6 +30,7 @@
#include "frames.h"
#include "isolate.h"
+#include "msan.h"
#include "v8memory.h"
#if V8_TARGET_ARCH_IA32
@@ -137,13 +138,16 @@
inline Address* StackFrame::ResolveReturnAddressLocation(Address* pc_address) {
+ Address *a;
if (return_address_location_resolver_ == NULL) {
- return pc_address;
+ a = pc_address;
} else {
- return reinterpret_cast<Address*>(
+ a = reinterpret_cast<Address*>(
return_address_location_resolver_(
reinterpret_cast<uintptr_t>(pc_address)));
}
+ MSAN_MEMORY_IS_INITIALIZED(a, sizeof(*a));
+ return a;
}

Powered by Google App Engine
This is Rietveld 408576698