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 642883003: [turbofan] Add support for deferred code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add cctest Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/operator-properties-inl.h » ('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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 142
143 Instruction* InstructionSelector::Emit(Instruction* instr) { 143 Instruction* InstructionSelector::Emit(Instruction* instr) {
144 instructions_.push_back(instr); 144 instructions_.push_back(instr);
145 return instr; 145 return instr;
146 } 146 }
147 147
148 148
149 bool InstructionSelector::IsNextInAssemblyOrder(const BasicBlock* block) const { 149 bool InstructionSelector::IsNextInAssemblyOrder(const BasicBlock* block) const {
150 return current_block_->GetRpoNumber().IsNext(block->GetRpoNumber()); 150 return current_block_->GetAoNumber().IsNext(block->GetAoNumber());
151 } 151 }
152 152
153 153
154 bool InstructionSelector::CanCover(Node* user, Node* node) const { 154 bool InstructionSelector::CanCover(Node* user, Node* node) const {
155 return node->OwnedBy(user) && 155 return node->OwnedBy(user) &&
156 schedule()->block(node) == schedule()->block(user); 156 schedule()->block(node) == schedule()->block(user);
157 } 157 }
158 158
159 159
160 bool InstructionSelector::IsDefined(Node* node) const { 160 bool InstructionSelector::IsDefined(Node* node) const {
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, 1039 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch,
1040 BasicBlock* fbranch) { 1040 BasicBlock* fbranch) {
1041 UNIMPLEMENTED(); 1041 UNIMPLEMENTED();
1042 } 1042 }
1043 1043
1044 #endif // !V8_TURBOFAN_BACKEND 1044 #endif // !V8_TURBOFAN_BACKEND
1045 1045
1046 } // namespace compiler 1046 } // namespace compiler
1047 } // namespace internal 1047 } // namespace internal
1048 } // namespace v8 1048 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/operator-properties-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698