aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/sampler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/sampler.cc')
-rw-r--r--deps/v8/src/sampler.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/deps/v8/src/sampler.cc b/deps/v8/src/sampler.cc
index 0aaa1e9b77..684ef486c7 100644
--- a/deps/v8/src/sampler.cc
+++ b/deps/v8/src/sampler.cc
@@ -216,11 +216,7 @@ class Sampler::PlatformData : public PlatformDataCommon {
class SimulatorHelper {
public:
inline bool Init(Sampler* sampler, Isolate* isolate) {
- ThreadId thread_id = sampler->platform_data()->profiled_thread_id();
- Isolate::PerIsolateThreadData* per_thread_data = isolate->
- FindPerThreadDataForThread(thread_id);
- if (!per_thread_data) return false;
- simulator_ = per_thread_data->simulator();
+ simulator_ = isolate->thread_local_top()->simulator_;
// Check if there is active simulator.
return simulator_ != NULL;
}