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

Side by Side Diff: test/cctest/compiler/test-codegen-deopt.cc

Issue 426833005: Fix MIPS build: use stubbed-out TF implementation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: White space fix Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/mips64/simulator-mips64.cc ('k') | test/cctest/compiler/test-instruction-selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/v8.h" 5 #include "src/v8.h"
6 #include "test/cctest/cctest.h" 6 #include "test/cctest/cctest.h"
7 7
8 #include "src/compiler/code-generator.h" 8 #include "src/compiler/code-generator.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
11 #include "src/compiler/instruction-selector.h" 11 #include "src/compiler/instruction-selector.h"
12 #include "src/compiler/machine-operator.h" 12 #include "src/compiler/machine-operator.h"
13 #include "src/compiler/node.h" 13 #include "src/compiler/node.h"
14 #include "src/compiler/operator.h" 14 #include "src/compiler/operator.h"
15 #include "src/compiler/raw-machine-assembler.h" 15 #include "src/compiler/raw-machine-assembler.h"
16 #include "src/compiler/register-allocator.h" 16 #include "src/compiler/register-allocator.h"
17 #include "src/compiler/schedule.h" 17 #include "src/compiler/schedule.h"
18 18
19 #include "src/full-codegen.h" 19 #include "src/full-codegen.h"
20 #include "src/parser.h" 20 #include "src/parser.h"
21 #include "src/rewriter.h" 21 #include "src/rewriter.h"
22 22
23 #include "test/cctest/compiler/function-tester.h" 23 #include "test/cctest/compiler/function-tester.h"
24 24
25 using namespace v8::internal; 25 using namespace v8::internal;
26 using namespace v8::internal::compiler; 26 using namespace v8::internal::compiler;
27 27
28
29 #if V8_TURBOFAN_TARGET
30
28 typedef RawMachineAssembler::Label MLabel; 31 typedef RawMachineAssembler::Label MLabel;
29 32
30 static Handle<JSFunction> NewFunction(const char* source) { 33 static Handle<JSFunction> NewFunction(const char* source) {
31 return v8::Utils::OpenHandle( 34 return v8::Utils::OpenHandle(
32 *v8::Handle<v8::Function>::Cast(CompileRun(source))); 35 *v8::Handle<v8::Function>::Cast(CompileRun(source)));
33 } 36 }
34 37
35 38
36 class DeoptCodegenTester { 39 class DeoptCodegenTester {
37 public: 40 public:
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 325
323 Isolate* isolate = scope.main_isolate(); 326 Isolate* isolate = scope.main_isolate();
324 Handle<Object> result; 327 Handle<Object> result;
325 bool has_pending_exception = 328 bool has_pending_exception =
326 !Execution::Call(isolate, t.function, 329 !Execution::Call(isolate, t.function,
327 isolate->factory()->undefined_value(), 0, NULL, 330 isolate->factory()->undefined_value(), 0, NULL,
328 false).ToHandle(&result); 331 false).ToHandle(&result);
329 CHECK(!has_pending_exception); 332 CHECK(!has_pending_exception);
330 CHECK(result->SameValue(Smi::FromInt(42))); 333 CHECK(result->SameValue(Smi::FromInt(42)));
331 } 334 }
335
336 #endif
OLDNEW
« no previous file with comments | « src/mips64/simulator-mips64.cc ('k') | test/cctest/compiler/test-instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698