Repair compilation with VTune support.

R=fschneider@google.com

Review URL: https://codereview.chromium.org//14063008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21215 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
vegorov@google.com 2013-04-10 16:10:46 +00:00
parent 9bd8f2db46
commit 70ccbd02aa
3 changed files with 6 additions and 3 deletions

View file

@ -22,6 +22,7 @@
#include "vm/dart.h"
#include "vm/debuginfo.h"
#include "vm/isolate.h"
#include "vm/vtune.h"
#include "vm/zone.h"
@ -381,7 +382,7 @@ void OS::RegisterCodeObservers() {
CodeObservers::Register(new PprofCodeObserver);
}
#if defined(DART_VTUNE_SUPPORT)
Register(new VTuneCodeObserver);
CodeObservers::Register(new VTuneCodeObserver);
#endif
}

View file

@ -21,6 +21,7 @@
#include "vm/dart.h"
#include "vm/debuginfo.h"
#include "vm/isolate.h"
#include "vm/vtune.h"
#include "vm/zone.h"
@ -477,7 +478,7 @@ void OS::RegisterCodeObservers() {
CodeObservers::Register(new PprofCodeObserver);
}
#if defined(DART_VTUNE_SUPPORT)
Register(new VTuneCodeObserver);
CodeObservers::Register(new VTuneCodeObserver);
#endif
}

View file

@ -6,6 +6,7 @@
#if defined(TARGET_OS_WINDOWS)
#include "vm/os.h"
#include "vm/vtune.h"
#include <malloc.h> // NOLINT
#include <time.h> // NOLINT
@ -254,7 +255,7 @@ bool OS::StringToInt64(const char* str, int64_t* value) {
void OS::RegisterCodeObservers() {
#if defined(DART_VTUNE_SUPPORT)
Register(new VTuneCodeObserver);
CodeObservers::Register(new VTuneCodeObserver);
#endif
}