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

Unified Diff: src/msan.h

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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-load-elimination.h b/src/msan.h
similarity index 77%
copy from src/hydrogen-load-elimination.h
copy to src/msan.h
index ef6f71fa11388555b5090161ada485d835019db9..484c9fa39797187597e534ca14ca8e89fd990135 100644
--- a/src/hydrogen-load-elimination.h
+++ b/src/msan.h
@@ -25,26 +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_LOAD_ELIMINATION_H_
-#define V8_HYDROGEN_LOAD_ELIMINATION_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
-class HLoadEliminationPhase : public HPhase {
- public:
- explicit HLoadEliminationPhase(HGraph* graph)
- : HPhase("H_Load elimination", graph) { }
+#if __has_feature(memory_sanitizer) && !defined(MEMORY_SANITIZER)
+# define MEMORY_SANITIZER
+#endif
- void Run();
+#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
- private:
- void EliminateLoads(HBasicBlock* block);
-};
-
-
-} } // namespace v8::internal
-
-#endif // V8_HYDROGEN_LOAD_ELIMINATION_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