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

Side by Side Diff: src/compiler/x64/code-generator-x64.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/verifier.cc ('k') | src/compiler/x87/code-generator-x87.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/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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 AssembleArchTableSwitch(instr); 859 AssembleArchTableSwitch(instr);
860 break; 860 break;
861 case kArchComment: { 861 case kArchComment: {
862 Address comment_string = i.InputExternalReference(0).address(); 862 Address comment_string = i.InputExternalReference(0).address();
863 __ RecordComment(reinterpret_cast<const char*>(comment_string)); 863 __ RecordComment(reinterpret_cast<const char*>(comment_string));
864 break; 864 break;
865 } 865 }
866 case kArchDebugBreak: 866 case kArchDebugBreak:
867 __ int3(); 867 __ int3();
868 break; 868 break;
869 case kArchImpossible:
870 __ Abort(kConversionFromImpossibleValue);
871 break;
872 case kArchNop: 869 case kArchNop:
873 case kArchThrowTerminator: 870 case kArchThrowTerminator:
874 // don't emit code for nops. 871 // don't emit code for nops.
875 break; 872 break;
876 case kArchDeoptimize: { 873 case kArchDeoptimize: {
877 int deopt_state_id = 874 int deopt_state_id =
878 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 875 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
879 Deoptimizer::BailoutType bailout_type = 876 Deoptimizer::BailoutType bailout_type =
880 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); 877 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
881 CodeGenResult result = 878 CodeGenResult result =
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2670 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2674 __ Nop(padding_size); 2671 __ Nop(padding_size);
2675 } 2672 }
2676 } 2673 }
2677 2674
2678 #undef __ 2675 #undef __
2679 2676
2680 } // namespace compiler 2677 } // namespace compiler
2681 } // namespace internal 2678 } // namespace internal
2682 } // namespace v8 2679 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x87/code-generator-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698