Skip to content

Commit

Permalink
Apply v8-3.14.5.10-system-valgrind.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 30, 2016
1 parent f5ba8f3 commit 7f0a29e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/ia32/cpu-ia32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// CPU specific code for ia32 independent of OS goes here.

#ifdef __GNUC__
#include "third_party/valgrind/valgrind.h"
#include <valgrind/valgrind.h>
#endif

#include "v8.h"
Expand Down Expand Up @@ -67,8 +67,7 @@ void CPU::FlushICache(void* start, size_t size) {
// solution is to run valgrind with --smc-check=all, but this comes at a big
// performance cost. We can notify valgrind to invalidate its cache.
#ifdef VALGRIND_DISCARD_TRANSLATIONS
unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size);
USE(res);
VALGRIND_DISCARD_TRANSLATIONS(start, size);
#endif
}

Expand Down
5 changes: 2 additions & 3 deletions src/x64/cpu-x64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// CPU specific code for x64 independent of OS goes here.

#if defined(__GNUC__) && !defined(__MINGW64__)
#include "third_party/valgrind/valgrind.h"
#include <valgrind/valgrind.h>
#endif

#include "v8.h"
Expand Down Expand Up @@ -67,8 +67,7 @@ void CPU::FlushICache(void* start, size_t size) {
// solution is to run valgrind with --smc-check=all, but this comes at a big
// performance cost. We can notify valgrind to invalidate its cache.
#ifdef VALGRIND_DISCARD_TRANSLATIONS
unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size);
USE(res);
VALGRIND_DISCARD_TRANSLATIONS(start, size);
#endif
}

Expand Down

0 comments on commit 7f0a29e

Please sign in to comment.