| 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 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 | 1553 |
| 1554 | 1554 |
| 1555 void EmitWordCompareZero(InstructionSelector* selector, Node* value, | 1555 void EmitWordCompareZero(InstructionSelector* selector, Node* value, |
| 1556 FlagsContinuation* cont) { | 1556 FlagsContinuation* cont) { |
| 1557 Mips64OperandGenerator g(selector); | 1557 Mips64OperandGenerator g(selector); |
| 1558 InstructionCode opcode = cont->Encode(kMips64Cmp); | 1558 InstructionCode opcode = cont->Encode(kMips64Cmp); |
| 1559 InstructionOperand const value_operand = g.UseRegister(value); | 1559 InstructionOperand const value_operand = g.UseRegister(value); |
| 1560 if (cont->IsBranch()) { | 1560 if (cont->IsBranch()) { |
| 1561 selector->Emit(opcode, g.NoOutput(), value_operand, g.TempImmediate(0), | 1561 selector->Emit(opcode, g.NoOutput(), value_operand, g.TempImmediate(0), |
| 1562 g.Label(cont->true_block()), g.Label(cont->false_block())); | 1562 g.Label(cont->true_block()), g.Label(cont->false_block())); |
| 1563 } else if (cont->IsDeoptimize()) { |
| 1564 selector->EmitDeoptimize(opcode, g.NoOutput(), value_operand, |
| 1565 g.TempImmediate(0), cont->frame_state()); |
| 1563 } else { | 1566 } else { |
| 1564 selector->Emit(opcode, g.DefineAsRegister(cont->result()), value_operand, | 1567 selector->Emit(opcode, g.DefineAsRegister(cont->result()), value_operand, |
| 1565 g.TempImmediate(0)); | 1568 g.TempImmediate(0)); |
| 1566 } | 1569 } |
| 1567 } | 1570 } |
| 1568 | 1571 |
| 1569 | 1572 |
| 1570 // Shared routine for word comparisons against zero. | 1573 // Shared routine for word comparisons against zero. |
| 1571 void VisitWordCompareZero(InstructionSelector* selector, Node* user, | 1574 void VisitWordCompareZero(InstructionSelector* selector, Node* user, |
| 1572 Node* value, FlagsContinuation* cont) { | 1575 Node* value, FlagsContinuation* cont) { |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1932 MachineOperatorBuilder::kFloat32RoundUp | | 1935 MachineOperatorBuilder::kFloat32RoundUp | |
| 1933 MachineOperatorBuilder::kFloat64RoundTruncate | | 1936 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1934 MachineOperatorBuilder::kFloat32RoundTruncate | | 1937 MachineOperatorBuilder::kFloat32RoundTruncate | |
| 1935 MachineOperatorBuilder::kFloat64RoundTiesEven | | 1938 MachineOperatorBuilder::kFloat64RoundTiesEven | |
| 1936 MachineOperatorBuilder::kFloat32RoundTiesEven; | 1939 MachineOperatorBuilder::kFloat32RoundTiesEven; |
| 1937 } | 1940 } |
| 1938 | 1941 |
| 1939 } // namespace compiler | 1942 } // namespace compiler |
| 1940 } // namespace internal | 1943 } // namespace internal |
| 1941 } // namespace v8 | 1944 } // namespace v8 |
| OLD | NEW |