Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
5 #include "src/compiler/code-generator.h"
24 // A testing helper for the register code abstraction.
32 code(NULL) {}
38 TestInstrSeq* code;
50 code = new (main_zone())
81 return code->AddInstruction(instr);
93 return code->InstructionBlockAt(RpoFor(block));
97 code->GetInstructionBlock(instruction_index);
126 CHECK_EQ(static_cast<int>(blocks->size()), R.code->InstructionBlockCount());
149 R.code->StartBlock(R.RpoFor(b0));
152 R.code->EndBlock(R.RpoFor(b0));
153 R.code->StartBlock(R.RpoFor(b1));
158 R.code->EndBlock(R.RpoFor(b1));
159 R.code->StartBlock(R.RpoFor(b2));
163 R.code->EndBlock(R.RpoFor(b2));
164 R.code->StartBlock(R.RpoFor(b3));
165 R.code->EndBlock(R.RpoFor(b3));
202 R.code->StartBlock(R.RpoFor(b0));
203 R.code->AddInstruction(i0);
204 R.code->AddInstruction(g);
205 R.code->EndBlock(R.RpoFor(b0));
207 CHECK(R.code->instructions().size() == 2);
222 R.code->StartBlock(R.RpoFor(b0));
223 R.code->AddInstruction(i0);
224 R.code->AddInstruction(g);
225 R.code->EndBlock(R.RpoFor(b0));
229 R.code->StartBlock(R.RpoFor(b1));
230 R.code->AddInstruction(i1);
231 R.code->AddInstruction(g1);
232 R.code->EndBlock(R.RpoFor(b1));
234 CHECK(R.code->instructions().size() == 4);
247 R.code->StartBlock(R.RpoFor(b0));
248 R.code->AddInstruction(i0);
249 R.code->AddInstruction(g);
250 R.code->EndBlock(R.RpoFor(b0));
252 CHECK(R.code->instructions().size() == 2);
255 for (auto instr : R.code->instructions()) {