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

Side by Side Diff: src/compiler/code-generator.cc

Issue 710323002: [turbofan] put gaps before instructions (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 | « no previous file | src/compiler/instruction.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 safepoint.DefinePointerRegister(reg, zone()); 126 safepoint.DefinePointerRegister(reg, zone());
127 } 127 }
128 } 128 }
129 } 129 }
130 130
131 131
132 void CodeGenerator::AssembleInstruction(Instruction* instr) { 132 void CodeGenerator::AssembleInstruction(Instruction* instr) {
133 if (instr->IsGapMoves()) { 133 if (instr->IsGapMoves()) {
134 // Handle parallel moves associated with the gap instruction. 134 // Handle parallel moves associated with the gap instruction.
135 AssembleGap(GapInstruction::cast(instr)); 135 AssembleGap(GapInstruction::cast(instr));
136 } else if (instr->IsBlockStart()) {
137 return;
136 } else if (instr->IsSourcePosition()) { 138 } else if (instr->IsSourcePosition()) {
137 AssembleSourcePosition(SourcePositionInstruction::cast(instr)); 139 AssembleSourcePosition(SourcePositionInstruction::cast(instr));
138 } else { 140 } else {
139 // Assemble architecture-specific code for the instruction. 141 // Assemble architecture-specific code for the instruction.
140 AssembleArchInstruction(instr); 142 AssembleArchInstruction(instr);
141 143
142 // Assemble branches or boolean materializations after this instruction. 144 // Assemble branches or boolean materializations after this instruction.
143 FlagsMode mode = FlagsModeField::decode(instr->opcode()); 145 FlagsMode mode = FlagsModeField::decode(instr->opcode());
144 FlagsCondition condition = FlagsConditionField::decode(instr->opcode()); 146 FlagsCondition condition = FlagsConditionField::decode(instr->opcode());
145 switch (mode) { 147 switch (mode) {
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 527 }
526 528
527 529
528 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } 530 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); }
529 531
530 #endif // !V8_TURBOFAN_BACKEND 532 #endif // !V8_TURBOFAN_BACKEND
531 533
532 } // namespace compiler 534 } // namespace compiler
533 } // namespace internal 535 } // namespace internal
534 } // namespace v8 536 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698