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

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

Issue 2803853005: Inline Array.prototype.forEach in TurboFan (Closed)
Patch Set: fix v8heapconst.py Created 3 years, 7 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
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/assembler-inl.h" 8 #include "src/assembler-inl.h"
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/callable.h"
10 #include "src/compilation-info.h" 11 #include "src/compilation-info.h"
11 #include "src/compiler/code-generator-impl.h" 12 #include "src/compiler/code-generator-impl.h"
12 #include "src/compiler/linkage.h" 13 #include "src/compiler/linkage.h"
13 #include "src/compiler/pipeline.h" 14 #include "src/compiler/pipeline.h"
14 #include "src/frames-inl.h" 15 #include "src/frames-inl.h"
15 #include "src/macro-assembler-inl.h" 16 #include "src/macro-assembler-inl.h"
16 17
17 namespace v8 { 18 namespace v8 {
18 namespace internal { 19 namespace internal {
19 namespace compiler { 20 namespace compiler {
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 break; 817 break;
817 case FrameStateType::kTailCallerFunction: 818 case FrameStateType::kTailCallerFunction:
818 translation->BeginTailCallerFrame(shared_info_id); 819 translation->BeginTailCallerFrame(shared_info_id);
819 break; 820 break;
820 case FrameStateType::kConstructStub: 821 case FrameStateType::kConstructStub:
821 DCHECK(descriptor->bailout_id().IsValidForConstructStub()); 822 DCHECK(descriptor->bailout_id().IsValidForConstructStub());
822 translation->BeginConstructStubFrame( 823 translation->BeginConstructStubFrame(
823 descriptor->bailout_id(), shared_info_id, 824 descriptor->bailout_id(), shared_info_id,
824 static_cast<unsigned int>(descriptor->parameters_count())); 825 static_cast<unsigned int>(descriptor->parameters_count()));
825 break; 826 break;
827 case FrameStateType::kBuiltinContinuation: {
828 BailoutId bailout_id = descriptor->bailout_id();
829 int parameter_count =
830 static_cast<unsigned int>(descriptor->parameters_count());
831 translation->BeginBuiltinContinuationFrame(bailout_id, shared_info_id,
832 parameter_count);
833 break;
834 }
826 case FrameStateType::kGetterStub: 835 case FrameStateType::kGetterStub:
827 translation->BeginGetterStubFrame(shared_info_id); 836 translation->BeginGetterStubFrame(shared_info_id);
828 break; 837 break;
829 case FrameStateType::kSetterStub: 838 case FrameStateType::kSetterStub:
830 translation->BeginSetterStubFrame(shared_info_id); 839 translation->BeginSetterStubFrame(shared_info_id);
831 break; 840 break;
832 } 841 }
833 842
834 TranslateFrameStateDescriptorOperands(descriptor, iter, state_combine, 843 TranslateFrameStateDescriptorOperands(descriptor, iter, state_combine,
835 translation); 844 translation);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 1014 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
1006 gen->ools_ = this; 1015 gen->ools_ = this;
1007 } 1016 }
1008 1017
1009 1018
1010 OutOfLineCode::~OutOfLineCode() {} 1019 OutOfLineCode::~OutOfLineCode() {}
1011 1020
1012 } // namespace compiler 1021 } // namespace compiler
1013 } // namespace internal 1022 } // namespace internal
1014 } // namespace v8 1023 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698