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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 470593002: Unify MachineType and RepType. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 Node* user = *i; 225 Node* user = *i;
226 if (user->opcode() != IrOpcode::kPhi) continue; 226 if (user->opcode() != IrOpcode::kPhi) continue;
227 if (IsReference(user)) continue; 227 if (IsReference(user)) continue;
228 MarkAsReference(user); 228 MarkAsReference(user);
229 } 229 }
230 } 230 }
231 231
232 232
233 void InstructionSelector::MarkAsRepresentation(MachineType rep, Node* node) { 233 void InstructionSelector::MarkAsRepresentation(MachineType rep, Node* node) {
234 DCHECK_NOT_NULL(node); 234 DCHECK_NOT_NULL(node);
235 if (rep == kMachineFloat64) MarkAsDouble(node); 235 if (RepresentationOf(rep) == kRepFloat64) MarkAsDouble(node);
236 if (rep == kMachineTagged) MarkAsReference(node); 236 if (RepresentationOf(rep) == kRepTagged) MarkAsReference(node);
237 } 237 }
238 238
239 239
240 // TODO(bmeurer): Get rid of the CallBuffer business and make 240 // TODO(bmeurer): Get rid of the CallBuffer business and make
241 // InstructionSelector::VisitCall platform independent instead. 241 // InstructionSelector::VisitCall platform independent instead.
242 CallBuffer::CallBuffer(Zone* zone, CallDescriptor* d) 242 CallBuffer::CallBuffer(Zone* zone, CallDescriptor* d)
243 : output_count(0), 243 : output_count(0),
244 descriptor(d), 244 descriptor(d),
245 output_nodes(zone->NewArray<Node*>(d->ReturnCount())), 245 output_nodes(zone->NewArray<Node*>(d->ReturnCount())),
246 outputs(zone->NewArray<InstructionOperand*>(d->ReturnCount())), 246 outputs(zone->NewArray<InstructionOperand*>(d->ReturnCount())),
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 1051
1052 1052
1053 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, 1053 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation,
1054 BasicBlock* deoptimization) {} 1054 BasicBlock* deoptimization) {}
1055 1055
1056 #endif // !V8_TURBOFAN_BACKEND 1056 #endif // !V8_TURBOFAN_BACKEND
1057 1057
1058 } // namespace compiler 1058 } // namespace compiler
1059 } // namespace internal 1059 } // namespace internal
1060 } // namespace v8 1060 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698