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

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

Issue 2177483002: [turbofan] Handle impossible types (Type::None()) in the backend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix?? Created 4 years, 5 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/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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 AssembleArchTableSwitch(instr); 617 AssembleArchTableSwitch(instr);
618 break; 618 break;
619 case kArchComment: { 619 case kArchComment: {
620 Address comment_string = i.InputExternalReference(0).address(); 620 Address comment_string = i.InputExternalReference(0).address();
621 __ RecordComment(reinterpret_cast<const char*>(comment_string)); 621 __ RecordComment(reinterpret_cast<const char*>(comment_string));
622 break; 622 break;
623 } 623 }
624 case kArchDebugBreak: 624 case kArchDebugBreak:
625 __ int3(); 625 __ int3();
626 break; 626 break;
627 case kArchImpossible:
628 __ Abort(kConversionFromImpossibleValue);
629 break;
627 case kArchNop: 630 case kArchNop:
628 case kArchThrowTerminator: 631 case kArchThrowTerminator:
629 // don't emit code for nops. 632 // don't emit code for nops.
630 break; 633 break;
631 case kArchDeoptimize: { 634 case kArchDeoptimize: {
632 int deopt_state_id = 635 int deopt_state_id =
633 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 636 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
634 Deoptimizer::BailoutType bailout_type = 637 Deoptimizer::BailoutType bailout_type =
635 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); 638 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
636 CodeGenResult result = 639 CodeGenResult result =
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2180 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2178 __ Nop(padding_size); 2181 __ Nop(padding_size);
2179 } 2182 }
2180 } 2183 }
2181 2184
2182 #undef __ 2185 #undef __
2183 2186
2184 } // namespace compiler 2187 } // namespace compiler
2185 } // namespace internal 2188 } // namespace internal
2186 } // namespace v8 2189 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698