Chromium Code Reviews| Index: runtime/vm/native_entry.h |
| =================================================================== |
| --- runtime/vm/native_entry.h (revision 42458) |
| +++ runtime/vm/native_entry.h (working copy) |
| @@ -5,6 +5,8 @@ |
| #ifndef VM_NATIVE_ENTRY_H_ |
| #define VM_NATIVE_ENTRY_H_ |
| +#include "platform/memory_sanitizer.h" |
| + |
| #include "vm/allocation.h" |
| #include "vm/assembler.h" |
| #include "vm/code_generator.h" |
| @@ -42,6 +44,8 @@ |
| CHECK_STACK_ALIGNMENT; \ |
| VERIFY_ON_TRANSITION; \ |
| NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); \ |
| + /* Tell MemorySanitizer 'arguments' is initialized by generated code. */ \ |
| + MSAN_UNPOISON(arguments, sizeof(*arguments)); \ |
|
siva
2014/12/22 23:39:57
indent issue on ' \'
koda
2014/12/23 01:07:42
Done.
|
| ASSERT(arguments->NativeArgCount() == argument_count); \ |
| TRACE_NATIVE_CALL("%s", ""#name); \ |
| { \ |