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

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

Issue 1707133003: [Interpreter] Fix deopt when accumulator needs to be materialized. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments and add test Created 4 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/arm64/builtins-arm64.cc ('k') | src/deoptimizer.cc » ('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/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 switch (descriptor->type()) { 584 switch (descriptor->type()) {
585 case FrameStateType::kJavaScriptFunction: 585 case FrameStateType::kJavaScriptFunction:
586 translation->BeginJSFrame( 586 translation->BeginJSFrame(
587 descriptor->bailout_id(), shared_info_id, 587 descriptor->bailout_id(), shared_info_id,
588 static_cast<unsigned int>(descriptor->GetSize(state_combine) - 588 static_cast<unsigned int>(descriptor->GetSize(state_combine) -
589 (1 + descriptor->parameters_count()))); 589 (1 + descriptor->parameters_count())));
590 break; 590 break;
591 case FrameStateType::kInterpretedFunction: 591 case FrameStateType::kInterpretedFunction:
592 translation->BeginInterpretedFrame( 592 translation->BeginInterpretedFrame(
593 descriptor->bailout_id(), shared_info_id, 593 descriptor->bailout_id(), shared_info_id,
594 static_cast<unsigned int>(descriptor->locals_count())); 594 static_cast<unsigned int>(descriptor->locals_count() + 1));
595 break; 595 break;
596 case FrameStateType::kArgumentsAdaptor: 596 case FrameStateType::kArgumentsAdaptor:
597 translation->BeginArgumentsAdaptorFrame( 597 translation->BeginArgumentsAdaptorFrame(
598 shared_info_id, 598 shared_info_id,
599 static_cast<unsigned int>(descriptor->parameters_count())); 599 static_cast<unsigned int>(descriptor->parameters_count()));
600 break; 600 break;
601 case FrameStateType::kConstructStub: 601 case FrameStateType::kConstructStub:
602 translation->BeginConstructStubFrame( 602 translation->BeginConstructStubFrame(
603 shared_info_id, 603 shared_info_id,
604 static_cast<unsigned int>(descriptor->parameters_count())); 604 static_cast<unsigned int>(descriptor->parameters_count()));
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
737 gen->ools_ = this; 737 gen->ools_ = this;
738 } 738 }
739 739
740 740
741 OutOfLineCode::~OutOfLineCode() {} 741 OutOfLineCode::~OutOfLineCode() {}
742 742
743 } // namespace compiler 743 } // namespace compiler
744 } // namespace internal 744 } // namespace internal
745 } // namespace v8 745 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698