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

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

Issue 1933653002: Version 5.0.71.42 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 years, 7 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 | « include/v8-version.h ('k') | src/compiler/x64/instruction-selector-x64.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 #include "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 IA32OperandGenerator g(selector); 523 IA32OperandGenerator g(selector);
524 InstructionOperand temps[] = {g.TempRegister(edx)}; 524 InstructionOperand temps[] = {g.TempRegister(edx)};
525 selector->Emit(opcode, g.DefineAsFixed(node, eax), 525 selector->Emit(opcode, g.DefineAsFixed(node, eax),
526 g.UseFixed(node->InputAt(0), eax), 526 g.UseFixed(node->InputAt(0), eax),
527 g.UseUnique(node->InputAt(1)), arraysize(temps), temps); 527 g.UseUnique(node->InputAt(1)), arraysize(temps), temps);
528 } 528 }
529 529
530 530
531 void VisitMod(InstructionSelector* selector, Node* node, ArchOpcode opcode) { 531 void VisitMod(InstructionSelector* selector, Node* node, ArchOpcode opcode) {
532 IA32OperandGenerator g(selector); 532 IA32OperandGenerator g(selector);
533 InstructionOperand temps[] = {g.TempRegister(eax)};
533 selector->Emit(opcode, g.DefineAsFixed(node, edx), 534 selector->Emit(opcode, g.DefineAsFixed(node, edx),
534 g.UseFixed(node->InputAt(0), eax), 535 g.UseFixed(node->InputAt(0), eax),
535 g.UseUnique(node->InputAt(1))); 536 g.UseUnique(node->InputAt(1)), arraysize(temps), temps);
536 } 537 }
537 538
538 void EmitLea(InstructionSelector* selector, Node* result, Node* index, 539 void EmitLea(InstructionSelector* selector, Node* result, Node* index,
539 int scale, Node* base, Node* displacement) { 540 int scale, Node* base, Node* displacement) {
540 IA32OperandGenerator g(selector); 541 IA32OperandGenerator g(selector);
541 InstructionOperand inputs[4]; 542 InstructionOperand inputs[4];
542 size_t input_count = 0; 543 size_t input_count = 0;
543 AddressingMode mode = g.GenerateMemoryOperandInputs( 544 AddressingMode mode = g.GenerateMemoryOperandInputs(
544 index, scale, base, displacement, inputs, &input_count); 545 index, scale, base, displacement, inputs, &input_count);
545 546
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 MachineOperatorBuilder::kFloat64RoundTruncate | 1413 MachineOperatorBuilder::kFloat64RoundTruncate |
1413 MachineOperatorBuilder::kFloat32RoundTiesEven | 1414 MachineOperatorBuilder::kFloat32RoundTiesEven |
1414 MachineOperatorBuilder::kFloat64RoundTiesEven; 1415 MachineOperatorBuilder::kFloat64RoundTiesEven;
1415 } 1416 }
1416 return flags; 1417 return flags;
1417 } 1418 }
1418 1419
1419 } // namespace compiler 1420 } // namespace compiler
1420 } // namespace internal 1421 } // namespace internal
1421 } // namespace v8 1422 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698