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

Side by Side Diff: test/cctest/compiler/simplified-graph-builder.h

Issue 763963002: [turbofan] Add checked load/store operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reapply fix. Created 6 years 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
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | test/cctest/compiler/test-simplified-lowering.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 #ifndef V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ 5 #ifndef V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_
6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ 6 #define V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-builder.h" 9 #include "src/compiler/graph-builder.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 Node* ChangeBitToBool(Node* a) { 120 Node* ChangeBitToBool(Node* a) {
121 return NewNode(simplified()->ChangeBitToBool(), a); 121 return NewNode(simplified()->ChangeBitToBool(), a);
122 } 122 }
123 123
124 Node* LoadField(const FieldAccess& access, Node* object) { 124 Node* LoadField(const FieldAccess& access, Node* object) {
125 return NewNode(simplified()->LoadField(access), object); 125 return NewNode(simplified()->LoadField(access), object);
126 } 126 }
127 Node* StoreField(const FieldAccess& access, Node* object, Node* value) { 127 Node* StoreField(const FieldAccess& access, Node* object, Node* value) {
128 return NewNode(simplified()->StoreField(access), object, value); 128 return NewNode(simplified()->StoreField(access), object, value);
129 } 129 }
130 Node* LoadElement(const ElementAccess& access, Node* object, Node* index, 130 Node* LoadElement(const ElementAccess& access, Node* object, Node* index) {
131 Node* length) { 131 return NewNode(simplified()->LoadElement(access), object, index);
132 return NewNode(simplified()->LoadElement(access), object, index, length);
133 } 132 }
134 Node* StoreElement(const ElementAccess& access, Node* object, Node* index, 133 Node* StoreElement(const ElementAccess& access, Node* object, Node* index,
135 Node* length, Node* value) { 134 Node* value) {
136 return NewNode(simplified()->StoreElement(access), object, index, length, 135 return NewNode(simplified()->StoreElement(access), object, index, value);
137 value);
138 } 136 }
139 137
140 protected: 138 protected:
141 virtual Node* MakeNode(const Operator* op, int value_input_count, 139 virtual Node* MakeNode(const Operator* op, int value_input_count,
142 Node** value_inputs, bool incomplete) FINAL; 140 Node** value_inputs, bool incomplete) FINAL;
143 141
144 private: 142 private:
145 Node* effect_; 143 Node* effect_;
146 Node* return_; 144 Node* return_;
147 CommonOperatorBuilder* common_; 145 CommonOperatorBuilder* common_;
148 MachineOperatorBuilder* machine_; 146 MachineOperatorBuilder* machine_;
149 SimplifiedOperatorBuilder* simplified_; 147 SimplifiedOperatorBuilder* simplified_;
150 }; 148 };
151 149
152 } // namespace compiler 150 } // namespace compiler
153 } // namespace internal 151 } // namespace internal
154 } // namespace v8 152 } // namespace v8
155 153
156 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_ 154 #endif // V8_CCTEST_COMPILER_SIMPLIFIED_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698