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

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

Issue 2277283002: Reland of [turbofan] Insert dummy values when changing from None type. (Closed)
Patch Set: Workaround for uninhabited representations. Created 4 years, 3 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/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/instruction-codes.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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 AssembleArchTableSwitch(instr); 630 AssembleArchTableSwitch(instr);
631 break; 631 break;
632 case kArchComment: { 632 case kArchComment: {
633 Address comment_string = i.InputExternalReference(0).address(); 633 Address comment_string = i.InputExternalReference(0).address();
634 __ RecordComment(reinterpret_cast<const char*>(comment_string)); 634 __ RecordComment(reinterpret_cast<const char*>(comment_string));
635 break; 635 break;
636 } 636 }
637 case kArchDebugBreak: 637 case kArchDebugBreak:
638 __ int3(); 638 __ int3();
639 break; 639 break;
640 case kArchImpossible:
641 __ Abort(kConversionFromImpossibleValue);
642 break;
643 case kArchNop: 640 case kArchNop:
644 case kArchThrowTerminator: 641 case kArchThrowTerminator:
645 // don't emit code for nops. 642 // don't emit code for nops.
646 break; 643 break;
647 case kArchDeoptimize: { 644 case kArchDeoptimize: {
648 int deopt_state_id = 645 int deopt_state_id =
649 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 646 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
650 Deoptimizer::BailoutType bailout_type = 647 Deoptimizer::BailoutType bailout_type =
651 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); 648 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
652 CodeGenResult result = 649 CodeGenResult result =
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2265 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2269 __ Nop(padding_size); 2266 __ Nop(padding_size);
2270 } 2267 }
2271 } 2268 }
2272 2269
2273 #undef __ 2270 #undef __
2274 2271
2275 } // namespace compiler 2272 } // namespace compiler
2276 } // namespace internal 2273 } // namespace internal
2277 } // namespace v8 2274 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698