| 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/ast.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class IgnitionCompilerDispatcherJobTest : public CompilerDispatcherJobTest { | 38 class IgnitionCompilerDispatcherJobTest : public CompilerDispatcherJobTest { |
| 39 public: | 39 public: |
| 40 IgnitionCompilerDispatcherJobTest() {} | 40 IgnitionCompilerDispatcherJobTest() {} |
| 41 ~IgnitionCompilerDispatcherJobTest() override {} | 41 ~IgnitionCompilerDispatcherJobTest() override {} |
| 42 | 42 |
| 43 static void SetUpTestCase() { | 43 static void SetUpTestCase() { |
| 44 old_flag_ = i::FLAG_ignition; | 44 old_flag_ = i::FLAG_ignition; |
| 45 i::FLAG_ignition = true; | 45 i::FLAG_ignition = true; |
| 46 i::FLAG_never_compact = true; | |
| 47 TestWithContext::SetUpTestCase(); | 46 TestWithContext::SetUpTestCase(); |
| 48 } | 47 } |
| 49 | 48 |
| 50 static void TearDownTestCase() { | 49 static void TearDownTestCase() { |
| 51 TestWithContext::TearDownTestCase(); | 50 TestWithContext::TearDownTestCase(); |
| 52 i::FLAG_ignition = old_flag_; | 51 i::FLAG_ignition = old_flag_; |
| 53 } | 52 } |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 static bool old_flag_; | 55 static bool old_flag_; |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 Handle<JSFunction> e = Handle<JSFunction>::cast(RunJS(isolate(), "f();")); | 348 Handle<JSFunction> e = Handle<JSFunction>::cast(RunJS(isolate(), "f();")); |
| 350 | 349 |
| 351 ASSERT_FALSE(e->shared()->HasBaselineCode()); | 350 ASSERT_FALSE(e->shared()->HasBaselineCode()); |
| 352 | 351 |
| 353 job->ResetOnMainThread(); | 352 job->ResetOnMainThread(); |
| 354 ASSERT_TRUE(job->status() == CompileJobStatus::kInitial); | 353 ASSERT_TRUE(job->status() == CompileJobStatus::kInitial); |
| 355 } | 354 } |
| 356 | 355 |
| 357 } // namespace internal | 356 } // namespace internal |
| 358 } // namespace v8 | 357 } // namespace v8 |
| OLD | NEW |