| 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1051   Node* left = node->InputAt(0); | 1051   Node* left = node->InputAt(0); | 
| 1052   Node* right = node->InputAt(1); | 1052   Node* right = node->InputAt(1); | 
| 1053   Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1053   Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 
| 1054        g.UseRegister(left), g.UseRegister(right)); | 1054        g.UseRegister(left), g.UseRegister(right)); | 
| 1055 } | 1055 } | 
| 1056 | 1056 | 
| 1057 | 1057 | 
| 1058 // static | 1058 // static | 
| 1059 MachineOperatorBuilder::Flags | 1059 MachineOperatorBuilder::Flags | 
| 1060 InstructionSelector::SupportedMachineOperatorFlags() { | 1060 InstructionSelector::SupportedMachineOperatorFlags() { | 
| 1061   MachineOperatorBuilder::Flags flags = | 1061   MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; | 
| 1062       MachineOperatorBuilder::kFloat32Abs | MachineOperatorBuilder::kFloat64Abs; |  | 
| 1063 |  | 
| 1064   if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && | 1062   if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && | 
| 1065       IsFp64Mode()) { | 1063       IsFp64Mode()) { | 
| 1066     flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1064     flags |= MachineOperatorBuilder::kFloat64RoundDown | | 
| 1067              MachineOperatorBuilder::kFloat64RoundTruncate; | 1065              MachineOperatorBuilder::kFloat64RoundTruncate; | 
| 1068   } | 1066   } | 
| 1069   return flags; | 1067   return flags; | 
| 1070 } | 1068 } | 
| 1071 | 1069 | 
| 1072 }  // namespace compiler | 1070 }  // namespace compiler | 
| 1073 }  // namespace internal | 1071 }  // namespace internal | 
| 1074 }  // namespace v8 | 1072 }  // namespace v8 | 
| OLD | NEW | 
|---|