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

Unified Diff: src/msan.h

Issue 39973003: Merge bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: again 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
« no previous file with comments | « src/mksnapshot.cc ('k') | src/object-observe.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/msan.h
diff --git a/src/hydrogen-sce.h b/src/msan.h
similarity index 77%
copy from src/hydrogen-sce.h
copy to src/msan.h
index 55e153e0ed5ee3481669ee5c991f81238d51176e..484c9fa39797187597e534ca14ca8e89fd990135 100644
--- a/src/hydrogen-sce.h
+++ b/src/msan.h
@@ -25,24 +25,25 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef V8_HYDROGEN_SCE_H_
-#define V8_HYDROGEN_SCE_H_
+// MemorySanitizer support.
-#include "hydrogen.h"
+#ifndef V8_MSAN_H_
+#define V8_MSAN_H_
-namespace v8 {
-namespace internal {
+#ifndef __has_feature
+# define __has_feature(x) 0
+#endif
+#if __has_feature(memory_sanitizer) && !defined(MEMORY_SANITIZER)
+# define MEMORY_SANITIZER
+#endif
-class HStackCheckEliminationPhase : public HPhase {
- public:
- explicit HStackCheckEliminationPhase(HGraph* graph)
- : HPhase("H_Stack check elimination", graph) { }
+#ifdef MEMORY_SANITIZER
+# include <sanitizer/msan_interface.h>
+// Marks a memory range as fully initialized.
+# define MSAN_MEMORY_IS_INITIALIZED(p, s) __msan_unpoison((p), (s))
+#else
+# define MSAN_MEMORY_IS_INITIALIZED(p, s)
+#endif
- void Run();
-};
-
-
-} } // namespace v8::internal
-
-#endif // V8_HYDROGEN_SCE_H_
+#endif // V8_MSAN_H_
« no previous file with comments | « src/mksnapshot.cc ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698