Index: test/cctest/test-log-stack-tracer.cc |
diff --git a/test/cctest/test-log-stack-tracer.cc b/test/cctest/test-log-stack-tracer.cc |
index 1961377235b262317c7e898518777a3ed1b128b3..a4bd2ed0dd0b36e045e902b9cb7e88a2382f3671 100644 |
--- a/test/cctest/test-log-stack-tracer.cc |
+++ b/test/cctest/test-log-stack-tracer.cc |
@@ -29,14 +29,13 @@ |
#include <stdlib.h> |
-#include "src/v8.h" |
- |
+#include "include/v8-profiler.h" |
#include "src/api.h" |
#include "src/codegen.h" |
#include "src/disassembler.h" |
#include "src/isolate.h" |
#include "src/log.h" |
-#include "src/profiler/tick-sample.h" |
+#include "src/v8.h" |
#include "src/vm-state-inl.h" |
#include "test/cctest/cctest.h" |
#include "test/cctest/trace-extension.h" |
@@ -46,6 +45,7 @@ using v8::Local; |
using v8::Object; |
using v8::Script; |
using v8::String; |
+using v8::TickSample; |
using v8::Value; |
using v8::internal::byte; |
@@ -53,18 +53,15 @@ using v8::internal::Address; |
using v8::internal::Handle; |
using v8::internal::Isolate; |
using v8::internal::JSFunction; |
-using v8::internal::TickSample; |
- |
-static bool IsAddressWithinFuncCode(JSFunction* function, Address addr) { |
+static bool IsAddressWithinFuncCode(JSFunction* function, void* addr) { |
+ Address address = reinterpret_cast<Address>(addr); |
i::AbstractCode* code = function->abstract_code(); |
- return code->contains(addr); |
+ return code->contains(address); |
} |
- |
static bool IsAddressWithinFuncCode(v8::Local<v8::Context> context, |
- const char* func_name, |
- Address addr) { |
+ const char* func_name, void* addr) { |
v8::Local<v8::Value> func = |
context->Global()->Get(context, v8_str(func_name)).ToLocalChecked(); |
CHECK(func->IsFunction()); |