| Index: src/compiler-dispatcher/compiler-dispatcher-job.cc
|
| diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.cc b/src/compiler-dispatcher/compiler-dispatcher-job.cc
|
| index d6b570449f64e92541ed61ec6b3982dea9758479..b602c5bfceba5901cb70daca30a6d3e9d5b032ac 100644
|
| --- a/src/compiler-dispatcher/compiler-dispatcher-job.cc
|
| +++ b/src/compiler-dispatcher/compiler-dispatcher-job.cc
|
| @@ -111,8 +111,7 @@ void CompilerDispatcherJob::Parse() {
|
| // use it.
|
| parse_info_->set_isolate(nullptr);
|
|
|
| - uintptr_t stack_limit =
|
| - reinterpret_cast<uintptr_t>(&stack_limit) - max_stack_size_ * KB;
|
| + uintptr_t stack_limit = GetCurrentStackPosition() - max_stack_size_ * KB;
|
|
|
| parser_->set_stack_limit(stack_limit);
|
| parser_->ParseOnBackground(parse_info_.get());
|
| @@ -207,8 +206,7 @@ void CompilerDispatcherJob::Compile() {
|
| // Disallowing of handle dereference and heap access dealt with in
|
| // CompilationJob::ExecuteJob.
|
|
|
| - uintptr_t stack_limit =
|
| - reinterpret_cast<uintptr_t>(&stack_limit) - max_stack_size_ * KB;
|
| + uintptr_t stack_limit = GetCurrentStackPosition() - max_stack_size_ * KB;
|
| compile_job_->set_stack_limit(stack_limit);
|
|
|
| CompilationJob::Status status = compile_job_->ExecuteJob();
|
|
|