OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <memory> | 5 #include <memory> |
6 | 6 |
7 #include "include/v8.h" | 7 #include "include/v8.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" | 10 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" |
11 #include "src/flags.h" | 11 #include "src/flags.h" |
12 #include "src/isolate-inl.h" | 12 #include "src/isolate-inl.h" |
13 #include "src/parsing/parser.h" | 13 #include "src/parsing/parse-info.h" |
14 #include "test/unittests/test-utils.h" | 14 #include "test/unittests/test-utils.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 typedef TestWithContext CompilerDispatcherJobTest; | 20 typedef TestWithContext CompilerDispatcherJobTest; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 var = job->parse_info_->literal()->scope()->Lookup(var_g); | 147 var = job->parse_info_->literal()->scope()->Lookup(var_g); |
148 ASSERT_TRUE(var); | 148 ASSERT_TRUE(var); |
149 ASSERT_TRUE(var->IsContextSlot()); | 149 ASSERT_TRUE(var->IsContextSlot()); |
150 | 150 |
151 job->ResetOnMainThread(); | 151 job->ResetOnMainThread(); |
152 ASSERT_TRUE(job->status() == CompileJobStatus::kInitial); | 152 ASSERT_TRUE(job->status() == CompileJobStatus::kInitial); |
153 } | 153 } |
154 | 154 |
155 } // namespace internal | 155 } // namespace internal |
156 } // namespace v8 | 156 } // namespace v8 |
OLD | NEW |