Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: src/compiler/code-generator.cc

Issue 2655233002: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)
Patch Set: Fix formatting. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 // Note: 696 // Note:
697 // If translation is null, we just skip the relevant instruction operands. 697 // If translation is null, we just skip the relevant instruction operands.
698 if (desc->IsNested()) { 698 if (desc->IsNested()) {
699 if (translation != nullptr) { 699 if (translation != nullptr) {
700 translation->BeginCapturedObject(static_cast<int>(nested->size())); 700 translation->BeginCapturedObject(static_cast<int>(nested->size()));
701 } 701 }
702 for (auto field : *nested) { 702 for (auto field : *nested) {
703 TranslateStateValueDescriptor(field.desc, field.nested, translation, 703 TranslateStateValueDescriptor(field.desc, field.nested, translation,
704 iter); 704 iter);
705 } 705 }
706 } else if (desc->IsArguments()) {
707 if (translation != nullptr) {
708 translation->BeginArgumentsObject(0);
709 }
706 } else if (desc->IsDuplicate()) { 710 } else if (desc->IsDuplicate()) {
707 if (translation != nullptr) { 711 if (translation != nullptr) {
708 translation->DuplicateObject(static_cast<int>(desc->id())); 712 translation->DuplicateObject(static_cast<int>(desc->id()));
709 } 713 }
710 } else if (desc->IsPlain()) { 714 } else if (desc->IsPlain()) {
711 InstructionOperand* op = iter->Advance(); 715 InstructionOperand* op = iter->Advance();
712 if (translation != nullptr) { 716 if (translation != nullptr) {
713 AddTranslationForOperand(translation, iter->instruction(), op, 717 AddTranslationForOperand(translation, iter->instruction(), op,
714 desc->type()); 718 desc->type());
715 } 719 }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 1009 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
1006 gen->ools_ = this; 1010 gen->ools_ = this;
1007 } 1011 }
1008 1012
1009 1013
1010 OutOfLineCode::~OutOfLineCode() {} 1014 OutOfLineCode::~OutOfLineCode() {}
1011 1015
1012 } // namespace compiler 1016 } // namespace compiler
1013 } // namespace internal 1017 } // namespace internal
1014 } // namespace v8 1018 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698