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 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 |
5 #include "src/v8.h" | 8 #include "src/v8.h" |
6 | 9 |
7 #include "src/ast.h" | 10 #include "src/ast.h" |
8 #include "src/ast-expression-visitor.h" | 11 #include "src/ast-expression-visitor.h" |
9 #include "src/parser.h" | 12 #include "src/parser.h" |
10 #include "src/rewriter.h" | 13 #include "src/rewriter.h" |
11 #include "src/scopes.h" | 14 #include "src/scopes.h" |
12 #include "src/type-cache.h" | 15 #include "src/type-cache.h" |
13 #include "src/typing-asm.h" | 16 #include "src/typing-asm.h" |
14 #include "test/cctest/cctest.h" | 17 #include "test/cctest/cctest.h" |
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1368 "return {foo: foo, bar: 1};" | 1371 "return {foo: foo, bar: 1};" |
1369 "}\n"; | 1372 "}\n"; |
1370 | 1373 |
1371 v8::V8::Initialize(); | 1374 v8::V8::Initialize(); |
1372 HandleAndZoneScope handles; | 1375 HandleAndZoneScope handles; |
1373 Zone* zone = handles.main_zone(); | 1376 Zone* zone = handles.main_zone(); |
1374 ZoneVector<ExpressionTypeEntry> types(zone); | 1377 ZoneVector<ExpressionTypeEntry> types(zone); |
1375 CHECK_EQ("asm: line 40: non-function in function table\n", | 1378 CHECK_EQ("asm: line 40: non-function in function table\n", |
1376 Validate(zone, test_function, &types)); | 1379 Validate(zone, test_function, &types)); |
1377 } | 1380 } |
OLD | NEW |