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

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

Issue 1528913003: [Interpreter] Add basic deoptimization support from TurboFan to Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_deopt_1
Patch Set: Add MIPS port and fix comment Created 5 years 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/builtins.h ('k') | src/deoptimizer.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/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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 int shared_info_id = DefineDeoptimizationLiteral(shared_info); 552 int shared_info_id = DefineDeoptimizationLiteral(shared_info);
553 553
554 switch (descriptor->type()) { 554 switch (descriptor->type()) {
555 case FrameStateType::kJavaScriptFunction: 555 case FrameStateType::kJavaScriptFunction:
556 translation->BeginJSFrame( 556 translation->BeginJSFrame(
557 descriptor->bailout_id(), shared_info_id, 557 descriptor->bailout_id(), shared_info_id,
558 static_cast<unsigned int>(descriptor->GetSize(state_combine) - 558 static_cast<unsigned int>(descriptor->GetSize(state_combine) -
559 (1 + descriptor->parameters_count()))); 559 (1 + descriptor->parameters_count())));
560 break; 560 break;
561 case FrameStateType::kInterpretedFunction: 561 case FrameStateType::kInterpretedFunction:
562 // TODO(rmcilroy): Implement interpreted function translation. 562 translation->BeginInterpretedFrame(
563 descriptor->bailout_id(), shared_info_id,
564 static_cast<unsigned int>(descriptor->locals_count()));
563 break; 565 break;
564 case FrameStateType::kArgumentsAdaptor: 566 case FrameStateType::kArgumentsAdaptor:
565 translation->BeginArgumentsAdaptorFrame( 567 translation->BeginArgumentsAdaptorFrame(
566 shared_info_id, 568 shared_info_id,
567 static_cast<unsigned int>(descriptor->parameters_count())); 569 static_cast<unsigned int>(descriptor->parameters_count()));
568 break; 570 break;
569 case FrameStateType::kConstructStub: 571 case FrameStateType::kConstructStub:
570 translation->BeginConstructStubFrame( 572 translation->BeginConstructStubFrame(
571 shared_info_id, 573 shared_info_id,
572 static_cast<unsigned int>(descriptor->parameters_count())); 574 static_cast<unsigned int>(descriptor->parameters_count()));
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 708 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
707 gen->ools_ = this; 709 gen->ools_ = this;
708 } 710 }
709 711
710 712
711 OutOfLineCode::~OutOfLineCode() {} 713 OutOfLineCode::~OutOfLineCode() {}
712 714
713 } // namespace compiler 715 } // namespace compiler
714 } // namespace internal 716 } // namespace internal
715 } // namespace v8 717 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698