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

Side by Side Diff: Source/platform/heap/HeapTest.cpp

Issue 851563003: Revert of Oilpan: Query stack frame register instead of manual bookkeeping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « Source/platform/heap/Heap.cpp ('k') | Source/platform/heap/InlinedGlobalMarkingVisitor.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 { \ 232 { \
233 return ensureMarked(objectPointer); \ 233 return ensureMarked(objectPointer); \
234 } 234 }
235 235
236 class CountingVisitor : public Visitor { 236 class CountingVisitor : public Visitor {
237 public: 237 public:
238 CountingVisitor() 238 CountingVisitor()
239 : Visitor(Visitor::GenericVisitorType) 239 : Visitor(Visitor::GenericVisitorType)
240 , m_count(0) 240 , m_count(0)
241 { 241 {
242 configureEagerTraceLimit();
243 } 242 }
244 243
245 virtual void mark(const void* object, TraceCallback) override 244 virtual void mark(const void* object, TraceCallback) override
246 { 245 {
247 if (object) 246 if (object)
248 m_count++; 247 m_count++;
249 } 248 }
250 249
251 virtual void markHeader(HeapObjectHeader* header, TraceCallback callback) ov erride 250 virtual void markHeader(HeapObjectHeader* header, TraceCallback callback) ov erride
252 { 251 {
(...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5487 // re-adjusting both start&end indices in terms of that expanded buffer. 5486 // re-adjusting both start&end indices in terms of that expanded buffer.
5488 EXPECT_EQ(80u, deque->size()); 5487 EXPECT_EQ(80u, deque->size());
5489 i = 0; 5488 i = 0;
5490 for (const auto& intWrapper : *deque) { 5489 for (const auto& intWrapper : *deque) {
5491 EXPECT_EQ(i + 50, intWrapper->value()); 5490 EXPECT_EQ(i + 50, intWrapper->value());
5492 i++; 5491 i++;
5493 } 5492 }
5494 } 5493 }
5495 5494
5496 } // namespace blink 5495 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/platform/heap/InlinedGlobalMarkingVisitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698