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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 AssembleArchLookupSwitch(instr); 1001 AssembleArchLookupSwitch(instr);
1002 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1002 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1003 break; 1003 break;
1004 case kArchTableSwitch: 1004 case kArchTableSwitch:
1005 AssembleArchTableSwitch(instr); 1005 AssembleArchTableSwitch(instr);
1006 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1006 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1007 break; 1007 break;
1008 case kArchDebugBreak: 1008 case kArchDebugBreak:
1009 __ stop("kArchDebugBreak"); 1009 __ stop("kArchDebugBreak");
1010 break; 1010 break;
1011 case kArchImpossible:
1012 __ Abort(kConversionFromImpossibleValue);
1013 break;
1011 case kArchNop: 1014 case kArchNop:
1012 case kArchThrowTerminator: 1015 case kArchThrowTerminator:
1013 // don't emit code for nops. 1016 // don't emit code for nops.
1014 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1017 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1015 break; 1018 break;
1016 case kArchDeoptimize: { 1019 case kArchDeoptimize: {
1017 int deopt_state_id = 1020 int deopt_state_id =
1018 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 1021 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
1019 Deoptimizer::BailoutType bailout_type = 1022 Deoptimizer::BailoutType bailout_type =
1020 Deoptimizer::BailoutType(MiscField::decode(instr->opcode())); 1023 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 padding_size -= v8::internal::Assembler::kInstrSize; 2373 padding_size -= v8::internal::Assembler::kInstrSize;
2371 } 2374 }
2372 } 2375 }
2373 } 2376 }
2374 2377
2375 #undef __ 2378 #undef __
2376 2379
2377 } // namespace compiler 2380 } // namespace compiler
2378 } // namespace internal 2381 } // namespace internal
2379 } // namespace v8 2382 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698