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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1106613003: [turbofan] Unify frame state inputs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment. Created 5 years, 8 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/graph-replay.cc ('k') | src/compiler/js-generic-lowering.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 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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 Emit(kArchRet, g.NoOutput(), 1050 Emit(kArchRet, g.NoOutput(),
1051 g.UseLocation(value, linkage()->GetReturnLocation(), 1051 g.UseLocation(value, linkage()->GetReturnLocation(),
1052 linkage()->GetReturnType())); 1052 linkage()->GetReturnType()));
1053 } else { 1053 } else {
1054 Emit(kArchRet, g.NoOutput()); 1054 Emit(kArchRet, g.NoOutput());
1055 } 1055 }
1056 } 1056 }
1057 1057
1058 1058
1059 void InstructionSelector::VisitDeoptimize(Node* value) { 1059 void InstructionSelector::VisitDeoptimize(Node* value) {
1060 DCHECK(FLAG_turbo_deoptimization);
1061
1062 OperandGenerator g(this); 1060 OperandGenerator g(this);
1063 1061
1064 FrameStateDescriptor* desc = GetFrameStateDescriptor(value); 1062 FrameStateDescriptor* desc = GetFrameStateDescriptor(value);
1065 size_t arg_count = desc->GetTotalSize() + 1; // Include deopt id. 1063 size_t arg_count = desc->GetTotalSize() + 1; // Include deopt id.
1066 1064
1067 InstructionOperandVector args(instruction_zone()); 1065 InstructionOperandVector args(instruction_zone());
1068 args.reserve(arg_count); 1066 args.reserve(arg_count);
1069 1067
1070 InstructionSequence::StateId state_id = 1068 InstructionSequence::StateId state_id =
1071 sequence()->AddFrameStateDescriptor(desc); 1069 sequence()->AddFrameStateDescriptor(desc);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 MachineOperatorBuilder::Flags 1198 MachineOperatorBuilder::Flags
1201 InstructionSelector::SupportedMachineOperatorFlags() { 1199 InstructionSelector::SupportedMachineOperatorFlags() {
1202 return MachineOperatorBuilder::Flag::kNoFlags; 1200 return MachineOperatorBuilder::Flag::kNoFlags;
1203 } 1201 }
1204 1202
1205 #endif // !V8_TURBOFAN_BACKEND 1203 #endif // !V8_TURBOFAN_BACKEND
1206 1204
1207 } // namespace compiler 1205 } // namespace compiler
1208 } // namespace internal 1206 } // namespace internal
1209 } // namespace v8 1207 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-replay.cc ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698