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

Side by Side Diff: src/compiler/int64-lowering.cc

Issue 2656563003: [wasm] Do the default int64-lowering for all non-i64 stores. (Closed)
Patch Set: rebase. Created 3 years, 10 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
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-5884.js » ('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/compiler/int64-lowering.h" 5 #include "src/compiler/int64-lowering.h"
6 #include "src/compiler/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/diamond.h" 7 #include "src/compiler/diamond.h"
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } else { 230 } else {
231 high_node = graph()->NewNode(store_op, base, index_high, 231 high_node = graph()->NewNode(store_op, base, index_high,
232 GetReplacementHigh(value)); 232 GetReplacementHigh(value));
233 } 233 }
234 234
235 node->ReplaceInput(1, index_low); 235 node->ReplaceInput(1, index_low);
236 node->ReplaceInput(2, GetReplacementLow(value)); 236 node->ReplaceInput(2, GetReplacementLow(value));
237 NodeProperties::ChangeOp(node, store_op); 237 NodeProperties::ChangeOp(node, store_op);
238 ReplaceNode(node, node, high_node); 238 ReplaceNode(node, node, high_node);
239 } else { 239 } else {
240 if (HasReplacementLow(node->InputAt(2))) { 240 DefaultLowering(node);
241 node->ReplaceInput(2, GetReplacementLow(node->InputAt(2)));
242 }
243 } 241 }
244 break; 242 break;
245 } 243 }
246 case IrOpcode::kStart: { 244 case IrOpcode::kStart: {
247 int parameter_count = GetParameterCountAfterLowering(signature()); 245 int parameter_count = GetParameterCountAfterLowering(signature());
248 // Only exchange the node if the parameter count actually changed. 246 // Only exchange the node if the parameter count actually changed.
249 if (parameter_count != static_cast<int>(signature()->parameter_count())) { 247 if (parameter_count != static_cast<int>(signature()->parameter_count())) {
250 int delta = 248 int delta =
251 parameter_count - static_cast<int>(signature()->parameter_count()); 249 parameter_count - static_cast<int>(signature()->parameter_count());
252 int new_output_count = node->op()->ValueOutputCount() + delta; 250 int new_output_count = node->op()->ValueOutputCount() + delta;
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 common()->Phi(MachineRepresentation::kWord32, value_count), 890 common()->Phi(MachineRepresentation::kWord32, value_count),
893 value_count + 1, inputs_low, false), 891 value_count + 1, inputs_low, false),
894 graph()->NewNode( 892 graph()->NewNode(
895 common()->Phi(MachineRepresentation::kWord32, value_count), 893 common()->Phi(MachineRepresentation::kWord32, value_count),
896 value_count + 1, inputs_high, false)); 894 value_count + 1, inputs_high, false));
897 } 895 }
898 } 896 }
899 } // namespace compiler 897 } // namespace compiler
900 } // namespace internal 898 } // namespace internal
901 } // namespace v8 899 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-5884.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698