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

Side by Side Diff: test/cctest/compiler/test-run-stubs.cc

Issue 1282763002: [turbofan] Drop V8_TURBOFAN_BACKEND and V8_TURBOFAN_TARGET defines. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months 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 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/js-operator.h" 10 #include "src/compiler/js-operator.h"
11 #include "src/compiler/linkage.h" 11 #include "src/compiler/linkage.h"
12 #include "src/compiler/machine-operator.h" 12 #include "src/compiler/machine-operator.h"
13 #include "src/compiler/pipeline.h" 13 #include "src/compiler/pipeline.h"
14 #include "src/parser.h" 14 #include "src/parser.h"
15 #include "test/cctest/compiler/function-tester.h" 15 #include "test/cctest/compiler/function-tester.h"
16 16
17 #if V8_TURBOFAN_TARGET
18
19 using namespace v8::internal; 17 using namespace v8::internal;
20 using namespace v8::internal::compiler; 18 using namespace v8::internal::compiler;
21 19
22 20
23 TEST(RunOptimizedMathFloorStub) { 21 TEST(RunOptimizedMathFloorStub) {
24 HandleAndZoneScope scope; 22 HandleAndZoneScope scope;
25 Isolate* isolate = scope.main_isolate(); 23 Isolate* isolate = scope.main_isolate();
26 24
27 // Create code and an accompanying descriptor. 25 // Create code and an accompanying descriptor.
28 MathFloorStub stub(isolate, TurboFanIC::CALL_FROM_OPTIMIZED_CODE); 26 MathFloorStub stub(isolate, TurboFanIC::CALL_FROM_OPTIMIZED_CODE);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 graph.SetStart(start); 137 graph.SetStart(start);
140 graph.SetEnd(end); 138 graph.SetEnd(end);
141 FunctionTester ft(&graph); 139 FunctionTester ft(&graph);
142 140
143 // Actuall call through to the stub, verifying its result. 141 // Actuall call through to the stub, verifying its result.
144 Handle<String> leftArg = ft.Val("links"); 142 Handle<String> leftArg = ft.Val("links");
145 Handle<String> rightArg = ft.Val("rechts"); 143 Handle<String> rightArg = ft.Val("rechts");
146 Handle<Object> result = ft.Call(leftArg, rightArg).ToHandleChecked(); 144 Handle<Object> result = ft.Call(leftArg, rightArg).ToHandleChecked();
147 CHECK(String::Equals(ft.Val("linksrechts"), Handle<String>::cast(result))); 145 CHECK(String::Equals(ft.Val("linksrechts"), Handle<String>::cast(result)));
148 } 146 }
149
150 #endif // V8_TURBOFAN_TARGET
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698