| 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 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 |
| 5 #include "src/compiler/js-context-specialization.h" | 8 #include "src/compiler/js-context-specialization.h" |
| 6 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 7 #include "src/compiler/js-operator.h" | 10 #include "src/compiler/js-operator.h" |
| 8 #include "src/compiler/node-matchers.h" | 11 #include "src/compiler/node-matchers.h" |
| 9 #include "src/compiler/node-properties.h" | 12 #include "src/compiler/node-properties.h" |
| 10 #include "src/compiler/source-position.h" | 13 #include "src/compiler/source-position.h" |
| 11 #include "test/cctest/cctest.h" | 14 #include "test/cctest/cctest.h" |
| 12 #include "test/cctest/compiler/function-tester.h" | 15 #include "test/cctest/compiler/function-tester.h" |
| 13 #include "test/cctest/compiler/graph-builder-tester.h" | 16 #include "test/cctest/compiler/graph-builder-tester.h" |
| 14 | 17 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 { | 311 { |
| 309 FunctionTester T( | 312 FunctionTester T( |
| 310 "(function() { if (false) { var x = 1; } function inc(a)" | 313 "(function() { if (false) { var x = 1; } function inc(a)" |
| 311 " { return a + x; } return inc; })()"); // x is undefined! | 314 " { return a + x; } return inc; })()"); // x is undefined! |
| 312 | 315 |
| 313 CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); | 316 CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); |
| 314 CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); | 317 CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); |
| 315 CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsNaN()); | 318 CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsNaN()); |
| 316 } | 319 } |
| 317 } | 320 } |
| OLD | NEW |