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

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

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 8 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.h ('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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 CHECK(move); 261 CHECK(move);
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 Zone zone; 271 base::AccountingAllocator allocator;
272 Zone zone(&allocator);
272 273
273 { 274 {
274 TestInstr* i = TestInstr::New(&zone, 101); 275 TestInstr* i = TestInstr::New(&zone, 101);
275 CHECK_EQ(0, static_cast<int>(i->OutputCount())); 276 CHECK_EQ(0, static_cast<int>(i->OutputCount()));
276 CHECK_EQ(0, static_cast<int>(i->InputCount())); 277 CHECK_EQ(0, static_cast<int>(i->InputCount()));
277 CHECK_EQ(0, static_cast<int>(i->TempCount())); 278 CHECK_EQ(0, static_cast<int>(i->TempCount()));
278 } 279 }
279 280
280 int vreg = 15; 281 int vreg = 15;
281 InstructionOperand outputs[] = { 282 InstructionOperand outputs[] = {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 CHECK(temps[z].Equals(*m->TempAt(z))); 318 CHECK(temps[z].Equals(*m->TempAt(z)));
318 } 319 }
319 } 320 }
320 } 321 }
321 } 322 }
322 } 323 }
323 324
324 } // namespace compiler 325 } // namespace compiler
325 } // namespace internal 326 } // namespace internal
326 } // namespace v8 327 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/function-tester.h ('k') | test/cctest/compiler/test-jump-threading.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698