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

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

Issue 610373003: fix win compilation after r24267 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « no previous file | no next file » | 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/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 default: 250 default:
251 UNREACHABLE(); 251 UNREACHABLE();
252 return; 252 return;
253 } 253 }
254 254
255 X64OperandGenerator g(this); 255 X64OperandGenerator g(this);
256 AddressingModeMatcher matcher(&g, base, index); 256 AddressingModeMatcher matcher(&g, base, index);
257 InstructionCode code = opcode | AddressingModeField::encode(matcher.mode_); 257 InstructionCode code = opcode | AddressingModeField::encode(matcher.mode_);
258 InstructionOperand* outputs[] = {g.DefineAsRegister(node)}; 258 InstructionOperand* outputs[] = {g.DefineAsRegister(node)};
259 InstructionOperand* inputs[AddressingModeMatcher::kMaxInputCount]; 259 InstructionOperand* inputs[AddressingModeMatcher::kMaxInputCount];
260 int input_count = matcher.SetInputs(inputs); 260 size_t input_count = matcher.SetInputs(inputs);
261 Emit(code, 1, outputs, input_count, inputs); 261 Emit(code, 1, outputs, input_count, inputs);
262 } 262 }
263 263
264 264
265 void InstructionSelector::VisitStore(Node* node) { 265 void InstructionSelector::VisitStore(Node* node) {
266 X64OperandGenerator g(this); 266 X64OperandGenerator g(this);
267 Node* base = node->InputAt(0); 267 Node* base = node->InputAt(0);
268 Node* index = node->InputAt(1); 268 Node* index = node->InputAt(1);
269 Node* value = node->InputAt(2); 269 Node* value = node->InputAt(2);
270 270
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 InstructionOperand* val; 312 InstructionOperand* val;
313 if (g.CanBeImmediate(value)) { 313 if (g.CanBeImmediate(value)) {
314 val = g.UseImmediate(value); 314 val = g.UseImmediate(value);
315 } else { 315 } else {
316 val = g.UseRegister(value); 316 val = g.UseRegister(value);
317 } 317 }
318 318
319 AddressingModeMatcher matcher(&g, base, index); 319 AddressingModeMatcher matcher(&g, base, index);
320 InstructionCode code = opcode | AddressingModeField::encode(matcher.mode_); 320 InstructionCode code = opcode | AddressingModeField::encode(matcher.mode_);
321 InstructionOperand* inputs[AddressingModeMatcher::kMaxInputCount + 1]; 321 InstructionOperand* inputs[AddressingModeMatcher::kMaxInputCount + 1];
322 int input_count = matcher.SetInputs(inputs); 322 size_t input_count = matcher.SetInputs(inputs);
323 inputs[input_count++] = val; 323 inputs[input_count++] = val;
324 Emit(code, 0, static_cast<InstructionOperand**>(NULL), input_count, inputs); 324 Emit(code, 0, static_cast<InstructionOperand**>(NULL), input_count, inputs);
325 } 325 }
326 326
327 327
328 // Shared routine for multiple binary operations. 328 // Shared routine for multiple binary operations.
329 static void VisitBinop(InstructionSelector* selector, Node* node, 329 static void VisitBinop(InstructionSelector* selector, Node* node,
330 InstructionCode opcode, FlagsContinuation* cont) { 330 InstructionCode opcode, FlagsContinuation* cont) {
331 X64OperandGenerator g(selector); 331 X64OperandGenerator g(selector);
332 Int32BinopMatcher m(node); 332 Int32BinopMatcher m(node);
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 call_instr->MarkAsCall(); 882 call_instr->MarkAsCall();
883 if (deoptimization != NULL) { 883 if (deoptimization != NULL) {
884 DCHECK(continuation != NULL); 884 DCHECK(continuation != NULL);
885 call_instr->MarkAsControl(); 885 call_instr->MarkAsControl();
886 } 886 }
887 } 887 }
888 888
889 } // namespace compiler 889 } // namespace compiler
890 } // namespace internal 890 } // namespace internal
891 } // namespace v8 891 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698