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

Side by Side Diff: test/cctest/compiler/test-instruction.cc

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 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
« no previous file with comments | « test/cctest/compiler/function-tester.cc ('k') | test/cctest/compiler/test-jump-threading.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/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 #include "src/compiler/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 CHECK_EQ(1u, move->size()); 262 CHECK_EQ(1u, move->size());
263 MoveOperands* cur = move->at(0); 263 MoveOperands* cur = move->at(0);
264 CHECK(op1.Equals(cur->source())); 264 CHECK(op1.Equals(cur->source()));
265 CHECK(op2.Equals(cur->destination())); 265 CHECK(op2.Equals(cur->destination()));
266 } 266 }
267 } 267 }
268 268
269 269
270 TEST(InstructionOperands) { 270 TEST(InstructionOperands) {
271 v8::internal::AccountingAllocator allocator; 271 v8::internal::AccountingAllocator allocator;
272 Zone zone(&allocator); 272 Zone zone(&allocator, ZONE_NAME);
273 273
274 { 274 {
275 TestInstr* i = TestInstr::New(&zone, 101); 275 TestInstr* i = TestInstr::New(&zone, 101);
276 CHECK_EQ(0, static_cast<int>(i->OutputCount())); 276 CHECK_EQ(0, static_cast<int>(i->OutputCount()));
277 CHECK_EQ(0, static_cast<int>(i->InputCount())); 277 CHECK_EQ(0, static_cast<int>(i->InputCount()));
278 CHECK_EQ(0, static_cast<int>(i->TempCount())); 278 CHECK_EQ(0, static_cast<int>(i->TempCount()));
279 } 279 }
280 280
281 int vreg = 15; 281 int vreg = 15;
282 InstructionOperand outputs[] = { 282 InstructionOperand outputs[] = {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 CHECK(temps[z].Equals(*m->TempAt(z))); 318 CHECK(temps[z].Equals(*m->TempAt(z)));
319 } 319 }
320 } 320 }
321 } 321 }
322 } 322 }
323 } 323 }
324 324
325 } // namespace compiler 325 } // namespace compiler
326 } // namespace internal 326 } // namespace internal
327 } // namespace v8 327 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/function-tester.cc ('k') | test/cctest/compiler/test-jump-threading.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698