| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/address-map.h" | 7 #include "src/address-map.h" |
| 8 #include "src/base/adapters.h" | 8 #include "src/base/adapters.h" |
| 9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 // Note: | 691 // Note: |
| 692 // If translation is null, we just skip the relevant instruction operands. | 692 // If translation is null, we just skip the relevant instruction operands. |
| 693 if (desc->IsNested()) { | 693 if (desc->IsNested()) { |
| 694 if (translation != nullptr) { | 694 if (translation != nullptr) { |
| 695 translation->BeginCapturedObject(static_cast<int>(nested->size())); | 695 translation->BeginCapturedObject(static_cast<int>(nested->size())); |
| 696 } | 696 } |
| 697 for (auto field : *nested) { | 697 for (auto field : *nested) { |
| 698 TranslateStateValueDescriptor(field.desc, field.nested, translation, | 698 TranslateStateValueDescriptor(field.desc, field.nested, translation, |
| 699 iter); | 699 iter); |
| 700 } | 700 } |
| 701 } else if (desc->IsArguments()) { | 701 } else if (desc->IsArgumentsElements()) { |
| 702 if (translation != nullptr) { | 702 if (translation != nullptr) { |
| 703 translation->BeginArgumentsObject(0); | 703 translation->ArgumentsElements(desc->is_rest()); |
| 704 } | 704 } |
| 705 } else if (desc->IsDuplicate()) { | 705 } else if (desc->IsDuplicate()) { |
| 706 if (translation != nullptr) { | 706 if (translation != nullptr) { |
| 707 translation->DuplicateObject(static_cast<int>(desc->id())); | 707 translation->DuplicateObject(static_cast<int>(desc->id())); |
| 708 } | 708 } |
| 709 } else if (desc->IsPlain()) { | 709 } else if (desc->IsPlain()) { |
| 710 InstructionOperand* op = iter->Advance(); | 710 InstructionOperand* op = iter->Advance(); |
| 711 if (translation != nullptr) { | 711 if (translation != nullptr) { |
| 712 AddTranslationForOperand(translation, iter->instruction(), op, | 712 AddTranslationForOperand(translation, iter->instruction(), op, |
| 713 desc->type()); | 713 desc->type()); |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 992 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
| 993 gen->ools_ = this; | 993 gen->ools_ = this; |
| 994 } | 994 } |
| 995 | 995 |
| 996 | 996 |
| 997 OutOfLineCode::~OutOfLineCode() {} | 997 OutOfLineCode::~OutOfLineCode() {} |
| 998 | 998 |
| 999 } // namespace compiler | 999 } // namespace compiler |
| 1000 } // namespace internal | 1000 } // namespace internal |
| 1001 } // namespace v8 | 1001 } // namespace v8 |
| OLD | NEW |