Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: test/cctest/compiler/test-js-context-specialization.cc

Issue 1408283006: Remove deprecated API usage from compiler cctests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-arguments-inline-3
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-constant-cache.cc ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698