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

Side by Side Diff: test/cctest/compiler/test-machine-operator-reducer.cc

Issue 562543002: Revert "Switch inlining to use simplified instead of machine loads.", "Fix size_t to int conversion… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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
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 "test/cctest/cctest.h" 5 #include "test/cctest/cctest.h"
6 6
7 #include "src/base/utils/random-number-generator.h" 7 #include "src/base/utils/random-number-generator.h"
8 #include "src/compiler/graph-inl.h" 8 #include "src/compiler/graph-inl.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator-reducer.h" 10 #include "src/compiler/machine-operator-reducer.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 class ReducerTester : public HandleAndZoneScope { 49 class ReducerTester : public HandleAndZoneScope {
50 public: 50 public:
51 explicit ReducerTester(int num_parameters = 0) 51 explicit ReducerTester(int num_parameters = 0)
52 : isolate(main_isolate()), 52 : isolate(main_isolate()),
53 binop(NULL), 53 binop(NULL),
54 unop(NULL), 54 unop(NULL),
55 machine(main_zone()), 55 machine(main_zone()),
56 common(main_zone()), 56 common(main_zone()),
57 graph(main_zone()), 57 graph(main_zone()),
58 javascript(main_zone()),
59 typer(main_zone()), 58 typer(main_zone()),
60 jsgraph(&graph, &common, &javascript, &typer, &machine), 59 jsgraph(&graph, &common, &typer),
61 maxuint32(Constant<int32_t>(kMaxUInt32)) { 60 maxuint32(Constant<int32_t>(kMaxUInt32)) {
62 Node* s = graph.NewNode(common.Start(num_parameters)); 61 Node* s = graph.NewNode(common.Start(num_parameters));
63 graph.SetStart(s); 62 graph.SetStart(s);
64 } 63 }
65 64
66 Isolate* isolate; 65 Isolate* isolate;
67 Operator* binop; 66 Operator* binop;
68 Operator* unop; 67 Operator* unop;
69 MachineOperatorBuilder machine; 68 MachineOperatorBuilder machine;
70 CommonOperatorBuilder common; 69 CommonOperatorBuilder common;
71 Graph graph; 70 Graph graph;
72 JSOperatorBuilder javascript;
73 Typer typer; 71 Typer typer;
74 JSGraph jsgraph; 72 JSGraph jsgraph;
75 Node* maxuint32; 73 Node* maxuint32;
76 74
77 template <typename T> 75 template <typename T>
78 Node* Constant(volatile T value) { 76 Node* Constant(volatile T value) {
79 return graph.NewNode(NewConstantOperator<T>(&common, value)); 77 return graph.NewNode(NewConstantOperator<T>(&common, value));
80 } 78 }
81 79
82 template <typename T> 80 template <typename T>
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 // TODO(titzer): test MachineOperatorReducer for Int64Mul 797 // TODO(titzer): test MachineOperatorReducer for Int64Mul
800 // TODO(titzer): test MachineOperatorReducer for Int64UMul 798 // TODO(titzer): test MachineOperatorReducer for Int64UMul
801 // TODO(titzer): test MachineOperatorReducer for Int64Div 799 // TODO(titzer): test MachineOperatorReducer for Int64Div
802 // TODO(titzer): test MachineOperatorReducer for Int64UDiv 800 // TODO(titzer): test MachineOperatorReducer for Int64UDiv
803 // TODO(titzer): test MachineOperatorReducer for Int64Mod 801 // TODO(titzer): test MachineOperatorReducer for Int64Mod
804 // TODO(titzer): test MachineOperatorReducer for Int64UMod 802 // TODO(titzer): test MachineOperatorReducer for Int64UMod
805 // TODO(titzer): test MachineOperatorReducer for Int64Neg 803 // TODO(titzer): test MachineOperatorReducer for Int64Neg
806 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 804 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64
807 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 805 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32
808 // TODO(titzer): test MachineOperatorReducer for Float64Compare 806 // TODO(titzer): test MachineOperatorReducer for Float64Compare
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-typed-lowering.cc ('k') | test/cctest/compiler/test-representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698