| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 6ea42a95f8b97882e013d447c7f846b4da8a1631..11b1157179028e2bc259018d761e2288398367bd 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -7125,8 +7125,7 @@ void HGraphBuilder::GenerateValueOf(CallRuntime* call) {
|
| void HGraphBuilder::GenerateDateField(CallRuntime* call) {
|
| ASSERT(call->arguments()->length() == 2);
|
| ASSERT_NE(NULL, call->arguments()->at(1)->AsLiteral());
|
| - int index =
|
| - Smi::cast(*(call->arguments()->at(1)->AsLiteral()->handle()))->value();
|
| + Smi* index = Smi::cast(*(call->arguments()->at(1)->AsLiteral()->handle()));
|
| CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
|
| HValue* date = Pop();
|
| HDateField* result = new(zone()) HDateField(date, index);
|
| @@ -7176,22 +7175,6 @@ void HGraphBuilder::GenerateSetValueOf(CallRuntime* call) {
|
| }
|
|
|
|
|
| -void HGraphBuilder::GenerateSetDateField(CallRuntime* call) {
|
| - ASSERT(call->arguments()->length() == 3);
|
| - ASSERT_NE(NULL, call->arguments()->at(1)->AsLiteral());
|
| - int index =
|
| - Smi::cast(*(call->arguments()->at(1)->AsLiteral()->handle()))->value();
|
| - CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
|
| - CHECK_ALIVE(VisitForValue(call->arguments()->at(2)));
|
| - HValue* value = Pop();
|
| - HValue* date = Pop();
|
| - HValue* context = environment()->LookupContext();
|
| - HSetDateField* result =
|
| - new(zone()) HSetDateField(context, date, value, index);
|
| - return ast_context()->ReturnInstruction(result, call->id());
|
| -}
|
| -
|
| -
|
| // Fast support for charCodeAt(n).
|
| void HGraphBuilder::GenerateStringCharCodeAt(CallRuntime* call) {
|
| ASSERT(call->arguments()->length() == 2);
|
|
|