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

Side by Side Diff: src/compiler/common-operator.cc

Issue 899433005: [turbofan] Split pure nodes in the scheduler if beneficial. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments Created 5 years, 10 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.cc ('k') | src/compiler/pipeline.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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 void PrintParameter(std::ostream& os) const OVERRIDE { 481 void PrintParameter(std::ostream& os) const OVERRIDE {
482 os << "[" << *parameter() << "]"; 482 os << "[" << *parameter() << "]";
483 } 483 }
484 }; 484 };
485 return new (zone()) CallOperator(descriptor, "Call"); 485 return new (zone()) CallOperator(descriptor, "Call");
486 } 486 }
487 487
488 488
489 const Operator* CommonOperatorBuilder::Projection(size_t index) { 489 const Operator* CommonOperatorBuilder::Projection(size_t index) {
490 return new (zone()) Operator1<size_t>( // -- 490 return new (zone()) Operator1<size_t>( // --
491 IrOpcode::kProjection, Operator::kPure, // opcode 491 IrOpcode::kProjection, // opcode
492 "Projection", // name 492 Operator::kFoldable | Operator::kNoThrow, // flags
493 1, 0, 0, 1, 0, 0, // counts 493 "Projection", // name
494 index); // parameter 494 1, 0, 0, 1, 0, 0, // counts
495 index); // parameter
495 } 496 }
496 497
497 498
498 const Operator* CommonOperatorBuilder::ResizeMergeOrPhi(const Operator* op, 499 const Operator* CommonOperatorBuilder::ResizeMergeOrPhi(const Operator* op,
499 int size) { 500 int size) {
500 if (op->opcode() == IrOpcode::kPhi) { 501 if (op->opcode() == IrOpcode::kPhi) {
501 return Phi(OpParameter<MachineType>(op), size); 502 return Phi(OpParameter<MachineType>(op), size);
502 } else if (op->opcode() == IrOpcode::kEffectPhi) { 503 } else if (op->opcode() == IrOpcode::kEffectPhi) {
503 return EffectPhi(size); 504 return EffectPhi(size);
504 } else if (op->opcode() == IrOpcode::kMerge) { 505 } else if (op->opcode() == IrOpcode::kMerge) {
505 return Merge(size); 506 return Merge(size);
506 } else if (op->opcode() == IrOpcode::kLoop) { 507 } else if (op->opcode() == IrOpcode::kLoop) {
507 return Loop(size); 508 return Loop(size);
508 } else { 509 } else {
509 UNREACHABLE(); 510 UNREACHABLE();
510 return nullptr; 511 return nullptr;
511 } 512 }
512 } 513 }
513 514
514 515
515 } // namespace compiler 516 } // namespace compiler
516 } // namespace internal 517 } // namespace internal
517 } // namespace v8 518 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698