| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 62ba43f578b9b8ab84c2e0b5e8f4fde9bd0fa9ea..793034c1e2232b4b364c4ee16f86c56fd5903084 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -1705,31 +1705,13 @@ Handle<Code> StringAddStub::GenerateCode() {
|
| template <>
|
| HValue* CodeStubGraphBuilder<ToBooleanStub>::BuildCodeInitializedStub() {
|
| ToBooleanStub* stub = casted_stub();
|
| - HValue* true_value = NULL;
|
| - HValue* false_value = NULL;
|
| -
|
| - switch (stub->mode()) {
|
| - case ToBooleanStub::RESULT_AS_SMI:
|
| - true_value = graph()->GetConstant1();
|
| - false_value = graph()->GetConstant0();
|
| - break;
|
| - case ToBooleanStub::RESULT_AS_ODDBALL:
|
| - true_value = graph()->GetConstantTrue();
|
| - false_value = graph()->GetConstantFalse();
|
| - break;
|
| - case ToBooleanStub::RESULT_AS_INVERSE_ODDBALL:
|
| - true_value = graph()->GetConstantFalse();
|
| - false_value = graph()->GetConstantTrue();
|
| - break;
|
| - }
|
| -
|
| IfBuilder if_true(this);
|
| if_true.If<HBranch>(GetParameter(0), stub->types());
|
| if_true.Then();
|
| - if_true.Return(true_value);
|
| + if_true.Return(graph()->GetConstantTrue());
|
| if_true.Else();
|
| if_true.End();
|
| - return false_value;
|
| + return graph()->GetConstantFalse();
|
| }
|
|
|
|
|
|
|