OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
| 6 #include "src/compiler.h" |
6 #include "src/compiler/ast-loop-assignment-analyzer.h" | 7 #include "src/compiler/ast-loop-assignment-analyzer.h" |
| 8 #include "src/parsing/parse-info.h" |
7 #include "src/parsing/parser.h" | 9 #include "src/parsing/parser.h" |
8 #include "src/parsing/rewriter.h" | 10 #include "src/parsing/rewriter.h" |
9 #include "test/cctest/cctest.h" | 11 #include "test/cctest/cctest.h" |
10 | 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 namespace compiler { | 15 namespace compiler { |
14 | 16 |
15 namespace { | 17 namespace { |
16 const int kBufferSize = 1024; | 18 const int kBufferSize = 1024; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 293 |
292 f.CheckLoopAssignedCount(1, "x"); | 294 f.CheckLoopAssignedCount(1, "x"); |
293 f.CheckLoopAssignedCount(3, "y"); | 295 f.CheckLoopAssignedCount(3, "y"); |
294 f.CheckLoopAssignedCount(5, "z"); | 296 f.CheckLoopAssignedCount(5, "z"); |
295 f.CheckLoopAssignedCount(0, "w"); | 297 f.CheckLoopAssignedCount(0, "w"); |
296 } | 298 } |
297 | 299 |
298 } // namespace compiler | 300 } // namespace compiler |
299 } // namespace internal | 301 } // namespace internal |
300 } // namespace v8 | 302 } // namespace v8 |
OLD | NEW |