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/ast.h" |
9 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
10 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" | 11 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" |
11 #include "src/flags.h" | 12 #include "src/flags.h" |
12 #include "src/isolate-inl.h" | 13 #include "src/isolate-inl.h" |
13 #include "src/parsing/parse-info.h" | 14 #include "src/parsing/parse-info.h" |
14 #include "test/unittests/test-utils.h" | 15 #include "test/unittests/test-utils.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 namespace v8 { | 18 namespace v8 { |
18 namespace internal { | 19 namespace internal { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 ASSERT_TRUE(job->status() == CompileJobStatus::kFailed); | 233 ASSERT_TRUE(job->status() == CompileJobStatus::kFailed); |
233 ASSERT_TRUE(i_isolate()->has_pending_exception()); | 234 ASSERT_TRUE(i_isolate()->has_pending_exception()); |
234 | 235 |
235 i_isolate()->clear_pending_exception(); | 236 i_isolate()->clear_pending_exception(); |
236 job->ResetOnMainThread(); | 237 job->ResetOnMainThread(); |
237 ASSERT_TRUE(job->status() == CompileJobStatus::kInitial); | 238 ASSERT_TRUE(job->status() == CompileJobStatus::kInitial); |
238 } | 239 } |
239 | 240 |
240 } // namespace internal | 241 } // namespace internal |
241 } // namespace v8 | 242 } // namespace v8 |
OLD | NEW |