Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index 30fcb80e6af2df78bbe63650cfe74340335a680e..d723453c017518329fdb440bec63d62e6468a8d2 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -761,9 +761,9 @@ void InstructionSelector::VisitSwitch(Node* node, BasicBlock* default_branch, |
// Determine whether to issue an ArchTableSwitch or an ArchLookupSwitch |
// instruction. |
- size_t table_space_cost = 4 + value_range; |
- size_t table_time_cost = 3; |
- size_t lookup_space_cost = 3 + 2 * case_count; |
+ size_t table_space_cost = 9 + value_range; |
+ size_t table_time_cost = 9; |
+ size_t lookup_space_cost = 2 + 2 * case_count; |
size_t lookup_time_cost = case_count; |
if (case_count > 0 && |
table_space_cost + 3 * table_time_cost <= |