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

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

Issue 1702423002: [turbofan] Further fixing ES6 tail call elimination in Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-turbo
Patch Set: Addressing comments Created 4 years, 9 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/mips64/code-generator-mips64.cc ('k') | src/compiler/x64/code-generator-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/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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()), 1318 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(input.node()),
1319 g.TempImmediate(static_cast<int>(n << kPointerSizeLog2))); 1319 g.TempImmediate(static_cast<int>(n << kPointerSizeLog2)));
1320 } 1320 }
1321 } 1321 }
1322 } 1322 }
1323 } 1323 }
1324 1324
1325 1325
1326 bool InstructionSelector::IsTailCallAddressImmediate() { return false; } 1326 bool InstructionSelector::IsTailCallAddressImmediate() { return false; }
1327 1327
1328 int InstructionSelector::GetTempsCountForTailCallFromJSFunction() { return 3; }
1328 1329
1329 void InstructionSelector::VisitCheckedLoad(Node* node) { 1330 void InstructionSelector::VisitCheckedLoad(Node* node) {
1330 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); 1331 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op());
1331 Mips64OperandGenerator g(this); 1332 Mips64OperandGenerator g(this);
1332 Node* const buffer = node->InputAt(0); 1333 Node* const buffer = node->InputAt(0);
1333 Node* const offset = node->InputAt(1); 1334 Node* const offset = node->InputAt(1);
1334 Node* const length = node->InputAt(2); 1335 Node* const length = node->InputAt(2);
1335 ArchOpcode opcode = kArchNop; 1336 ArchOpcode opcode = kArchNop;
1336 switch (load_rep.representation()) { 1337 switch (load_rep.representation()) {
1337 case MachineRepresentation::kWord8: 1338 case MachineRepresentation::kWord8:
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 MachineOperatorBuilder::kFloat32RoundUp | 1936 MachineOperatorBuilder::kFloat32RoundUp |
1936 MachineOperatorBuilder::kFloat64RoundTruncate | 1937 MachineOperatorBuilder::kFloat64RoundTruncate |
1937 MachineOperatorBuilder::kFloat32RoundTruncate | 1938 MachineOperatorBuilder::kFloat32RoundTruncate |
1938 MachineOperatorBuilder::kFloat64RoundTiesEven | 1939 MachineOperatorBuilder::kFloat64RoundTiesEven |
1939 MachineOperatorBuilder::kFloat32RoundTiesEven; 1940 MachineOperatorBuilder::kFloat32RoundTiesEven;
1940 } 1941 }
1941 1942
1942 } // namespace compiler 1943 } // namespace compiler
1943 } // namespace internal 1944 } // namespace internal
1944 } // namespace v8 1945 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698