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

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

Issue 1268273003: [turbofan] Remove kInterpreterDispatch CallDescriptor kind in favor of flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/mips64/instruction-selector-mips64.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/base/bits.h" 6 #include "src/base/bits.h"
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.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { 603 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) {
604 CallBuffer buffer(zone(), descriptor, nullptr); 604 CallBuffer buffer(zone(), descriptor, nullptr);
605 605
606 // Compute InstructionOperands for inputs and outputs. 606 // Compute InstructionOperands for inputs and outputs.
607 InitializeCallBuffer(node, &buffer, true, false); 607 InitializeCallBuffer(node, &buffer, true, false);
608 608
609 // Select the appropriate opcode based on the call type. 609 // Select the appropriate opcode based on the call type.
610 InstructionCode opcode; 610 InstructionCode opcode;
611 switch (descriptor->kind()) { 611 switch (descriptor->kind()) {
612 case CallDescriptor::kCallCodeObject: 612 case CallDescriptor::kCallCodeObject:
613 case CallDescriptor::kInterpreterDispatch:
614 opcode = kArchTailCallCodeObject; 613 opcode = kArchTailCallCodeObject;
615 break; 614 break;
616 case CallDescriptor::kCallJSFunction: 615 case CallDescriptor::kCallJSFunction:
617 opcode = kArchTailCallJSFunction; 616 opcode = kArchTailCallJSFunction;
618 break; 617 break;
619 default: 618 default:
620 UNREACHABLE(); 619 UNREACHABLE();
621 return; 620 return;
622 } 621 }
623 opcode |= MiscField::encode(descriptor->flags()); 622 opcode |= MiscField::encode(descriptor->flags());
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 IsFp64Mode()) { 1094 IsFp64Mode()) {
1096 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1095 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1097 MachineOperatorBuilder::kFloat64RoundTruncate; 1096 MachineOperatorBuilder::kFloat64RoundTruncate;
1098 } 1097 }
1099 return flags; 1098 return flags;
1100 } 1099 }
1101 1100
1102 } // namespace compiler 1101 } // namespace compiler
1103 } // namespace internal 1102 } // namespace internal
1104 } // namespace v8 1103 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698