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

Side by Side Diff: src/compiler/x87/code-generator-x87.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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 AssembleArchTableSwitch(instr); 697 AssembleArchTableSwitch(instr);
698 break; 698 break;
699 case kArchComment: { 699 case kArchComment: {
700 Address comment_string = i.InputExternalReference(0).address(); 700 Address comment_string = i.InputExternalReference(0).address();
701 __ RecordComment(reinterpret_cast<const char*>(comment_string)); 701 __ RecordComment(reinterpret_cast<const char*>(comment_string));
702 break; 702 break;
703 } 703 }
704 case kArchDebugBreak: 704 case kArchDebugBreak:
705 __ int3(); 705 __ int3();
706 break; 706 break;
707 case kArchImpossible:
708 __ Abort(kConversionFromImpossibleValue);
709 break;
707 case kArchNop: 710 case kArchNop:
708 case kArchThrowTerminator: 711 case kArchThrowTerminator:
709 // don't emit code for nops. 712 // don't emit code for nops.
710 break; 713 break;
711 case kArchDeoptimize: { 714 case kArchDeoptimize: {
712 int deopt_state_id = 715 int deopt_state_id =
713 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 716 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
714 int double_register_param_count = 0; 717 int double_register_param_count = 0;
715 int x87_layout = 0; 718 int x87_layout = 0;
716 for (size_t i = 0; i < instr->InputCount(); i++) { 719 for (size_t i = 0; i < instr->InputCount(); i++) {
(...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after
2699 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2702 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2700 __ Nop(padding_size); 2703 __ Nop(padding_size);
2701 } 2704 }
2702 } 2705 }
2703 2706
2704 #undef __ 2707 #undef __
2705 2708
2706 } // namespace compiler 2709 } // namespace compiler
2707 } // namespace internal 2710 } // namespace internal
2708 } // namespace v8 2711 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698