OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |