| Index: src/a64/lithium-a64.cc
|
| diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc
|
| index 5f9a67f7931e8232ddb235ae9664940742ccd48f..d524d974e8884362728f2cc323a3999a888ee731 100644
|
| --- a/src/a64/lithium-a64.cc
|
| +++ b/src/a64/lithium-a64.cc
|
| @@ -592,7 +592,7 @@ LOperand* LChunkBuilder::FixedTemp(DoubleRegister reg) {
|
|
|
| LPlatformChunk* LChunkBuilder::Build() {
|
| ASSERT(is_unused());
|
| - chunk_ = new(zone_) LPlatformChunk(info_, graph_);
|
| + chunk_ = new(zone()) LPlatformChunk(info_, graph_);
|
| LPhase phase("L_Building chunk", chunk_);
|
| status_ = BUILDING;
|
|
|
| @@ -768,91 +768,6 @@ LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) {
|
| }
|
|
|
|
|
| -LEnvironment* LChunkBuilder::CreateEnvironment(
|
| - HEnvironment* hydrogen_env,
|
| - int* argument_index_accumulator,
|
| - ZoneList<HValue*>* objects_to_materialize) {
|
| - if (hydrogen_env == NULL) return NULL;
|
| -
|
| - LEnvironment* outer = CreateEnvironment(hydrogen_env->outer(),
|
| - argument_index_accumulator,
|
| - objects_to_materialize);
|
| - BailoutId ast_id = hydrogen_env->ast_id();
|
| - ASSERT(!ast_id.IsNone() || (hydrogen_env->frame_type() != JS_FUNCTION));
|
| - int value_count = hydrogen_env->length() - hydrogen_env->specials_count();
|
| -
|
| - LEnvironment* result = new(zone()) LEnvironment(
|
| - hydrogen_env->closure(),
|
| - hydrogen_env->frame_type(),
|
| - ast_id,
|
| - hydrogen_env->parameter_count(),
|
| - argument_count(),
|
| - value_count,
|
| - outer,
|
| - hydrogen_env->entry(),
|
| - zone());
|
| -
|
| - int argument_index = *argument_index_accumulator;
|
| - int object_index = objects_to_materialize->length();
|
| - for (int i = 0; i < hydrogen_env->length(); ++i) {
|
| - if (hydrogen_env->is_special_index(i)) continue;
|
| -
|
| - LOperand* op;
|
| - HValue* value = hydrogen_env->values()->at(i);
|
| - if (value->IsArgumentsObject() || value->IsCapturedObject()) {
|
| - objects_to_materialize->Add(value, zone());
|
| - op = LEnvironment::materialization_marker();
|
| - } else if (value->IsPushArgument()) {
|
| - op = new(zone()) LArgument(argument_index++);
|
| - } else {
|
| - op = UseAny(value);
|
| - }
|
| - result->AddValue(op,
|
| - value->representation(),
|
| - value->CheckFlag(HInstruction::kUint32));
|
| - }
|
| -
|
| - for (int i = object_index; i < objects_to_materialize->length(); ++i) {
|
| - HValue* object_to_materialize = objects_to_materialize->at(i);
|
| - int previously_materialized_object = -1;
|
| - for (int prev = 0; prev < i; ++prev) {
|
| - if (objects_to_materialize->at(prev) == objects_to_materialize->at(i)) {
|
| - previously_materialized_object = prev;
|
| - break;
|
| - }
|
| - }
|
| - int length = object_to_materialize->OperandCount();
|
| - bool is_arguments = object_to_materialize->IsArgumentsObject();
|
| - if (previously_materialized_object >= 0) {
|
| - result->AddDuplicateObject(previously_materialized_object);
|
| - continue;
|
| - } else {
|
| - result->AddNewObject(is_arguments ? length - 1 : length, is_arguments);
|
| - }
|
| - for (int i = is_arguments ? 1 : 0; i < length; ++i) {
|
| - LOperand* op;
|
| - HValue* value = object_to_materialize->OperandAt(i);
|
| - if (value->IsArgumentsObject() || value->IsCapturedObject()) {
|
| - objects_to_materialize->Add(value, zone());
|
| - op = LEnvironment::materialization_marker();
|
| - } else {
|
| - ASSERT(!value->IsPushArgument());
|
| - op = UseAny(value);
|
| - }
|
| - result->AddValue(op,
|
| - value->representation(),
|
| - value->CheckFlag(HInstruction::kUint32));
|
| - }
|
| - }
|
| -
|
| - if (hydrogen_env->frame_type() == JS_FUNCTION) {
|
| - *argument_index_accumulator = argument_index;
|
| - }
|
| -
|
| - return result;
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
|
| // The control instruction marking the end of a block that completed
|
| // abruptly (e.g., threw an exception). There is nothing specific to do.
|
| @@ -1508,8 +1423,7 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
|
| instr->arguments_count(),
|
| instr->function(),
|
| undefined,
|
| - instr->inlining_kind(),
|
| - instr->undefined_receiver());
|
| + instr->inlining_kind());
|
| // Only replay binding of arguments object if it wasn't removed from graph.
|
| if ((instr->arguments_var() != NULL) &&
|
| instr->arguments_object()->IsLinked()) {
|
|
|