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

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

Issue 686213002: Inline trivial OperatorProperties methods. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | src/compiler/js-builtin-reducer.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 "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // TODO(bmeurer): Get rid of the CallBuffer business and make 272 // TODO(bmeurer): Get rid of the CallBuffer business and make
273 // InstructionSelector::VisitCall platform independent instead. 273 // InstructionSelector::VisitCall platform independent instead.
274 void InstructionSelector::InitializeCallBuffer(Node* call, CallBuffer* buffer, 274 void InstructionSelector::InitializeCallBuffer(Node* call, CallBuffer* buffer,
275 bool call_code_immediate, 275 bool call_code_immediate,
276 bool call_address_immediate) { 276 bool call_address_immediate) {
277 OperandGenerator g(this); 277 OperandGenerator g(this);
278 DCHECK_EQ(call->op()->OutputCount(), 278 DCHECK_EQ(call->op()->OutputCount(),
279 static_cast<int>(buffer->descriptor->ReturnCount())); 279 static_cast<int>(buffer->descriptor->ReturnCount()));
280 DCHECK_EQ( 280 DCHECK_EQ(
281 OperatorProperties::GetValueInputCount(call->op()), 281 call->op()->ValueInputCount(),
282 static_cast<int>(buffer->input_count() + buffer->frame_state_count())); 282 static_cast<int>(buffer->input_count() + buffer->frame_state_count()));
283 283
284 if (buffer->descriptor->ReturnCount() > 0) { 284 if (buffer->descriptor->ReturnCount() > 0) {
285 // Collect the projections that represent multiple outputs from this call. 285 // Collect the projections that represent multiple outputs from this call.
286 if (buffer->descriptor->ReturnCount() == 1) { 286 if (buffer->descriptor->ReturnCount() == 1) {
287 buffer->output_nodes.push_back(call); 287 buffer->output_nodes.push_back(call);
288 } else { 288 } else {
289 buffer->output_nodes.resize(buffer->descriptor->ReturnCount(), NULL); 289 buffer->output_nodes.resize(buffer->descriptor->ReturnCount(), NULL);
290 call->CollectProjections(&buffer->output_nodes); 290 call->CollectProjections(&buffer->output_nodes);
291 } 291 }
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 MachineOperatorBuilder::Flags 1079 MachineOperatorBuilder::Flags
1080 InstructionSelector::SupportedMachineOperatorFlags() { 1080 InstructionSelector::SupportedMachineOperatorFlags() {
1081 return MachineOperatorBuilder::Flag::kNoFlags; 1081 return MachineOperatorBuilder::Flag::kNoFlags;
1082 } 1082 }
1083 1083
1084 #endif // !V8_TURBOFAN_BACKEND 1084 #endif // !V8_TURBOFAN_BACKEND
1085 1085
1086 } // namespace compiler 1086 } // namespace compiler
1087 } // namespace internal 1087 } // namespace internal
1088 } // namespace v8 1088 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698