| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/compiler/bytecode-analysis.h" | 7 #include "src/compiler/bytecode-analysis.h" |
| 8 #include "src/interpreter/bytecode-array-builder.h" | 8 #include "src/interpreter/bytecode-array-builder.h" |
| 9 #include "src/interpreter/bytecode-array-iterator.h" | 9 #include "src/interpreter/bytecode-array-iterator.h" |
| 10 #include "src/interpreter/bytecode-decoder.h" | 10 #include "src/interpreter/bytecode-decoder.h" |
| 11 #include "src/interpreter/bytecode-label.h" | 11 #include "src/interpreter/bytecode-label.h" |
| 12 #include "src/interpreter/control-flow-builders.h" | 12 #include "src/interpreter/control-flow-builders.h" |
| 13 #include "src/objects-inl.h" |
| 13 #include "test/unittests/test-utils.h" | 14 #include "test/unittests/test-utils.h" |
| 14 | 15 |
| 15 namespace v8 { | 16 namespace v8 { |
| 16 namespace internal { | 17 namespace internal { |
| 17 namespace compiler { | 18 namespace compiler { |
| 18 | 19 |
| 19 class BytecodeAnalysisTest : public TestWithIsolateAndZone { | 20 class BytecodeAnalysisTest : public TestWithIsolateAndZone { |
| 20 public: | 21 public: |
| 21 BytecodeAnalysisTest() {} | 22 BytecodeAnalysisTest() {} |
| 22 ~BytecodeAnalysisTest() override {} | 23 ~BytecodeAnalysisTest() override {} |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 expected_liveness.emplace_back("...L", "...."); | 409 expected_liveness.emplace_back("...L", "...."); |
| 409 | 410 |
| 410 Handle<BytecodeArray> bytecode = builder.ToBytecodeArray(isolate()); | 411 Handle<BytecodeArray> bytecode = builder.ToBytecodeArray(isolate()); |
| 411 | 412 |
| 412 EnsureLivenessMatches(bytecode, expected_liveness); | 413 EnsureLivenessMatches(bytecode, expected_liveness); |
| 413 } | 414 } |
| 414 | 415 |
| 415 } // namespace compiler | 416 } // namespace compiler |
| 416 } // namespace internal | 417 } // namespace internal |
| 417 } // namespace v8 | 418 } // namespace v8 |
| OLD | NEW |