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

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

Issue 818253005: Oilpan: Query stack frame register instead of manual bookkeeping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ENABLE(STACKFRAME_POINTER_ESTIMATION) 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
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();
242 } 243 }
243 244
244 virtual void mark(const void* object, TraceCallback) override 245 virtual void mark(const void* object, TraceCallback) override
245 { 246 {
246 if (object) 247 if (object)
247 m_count++; 248 m_count++;
248 } 249 }
249 250
250 virtual void markHeader(HeapObjectHeader* header, TraceCallback callback) ov erride 251 virtual void markHeader(HeapObjectHeader* header, TraceCallback callback) ov erride
251 { 252 {
(...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5486 // re-adjusting both start&end indices in terms of that expanded buffer. 5487 // re-adjusting both start&end indices in terms of that expanded buffer.
5487 EXPECT_EQ(80u, deque->size()); 5488 EXPECT_EQ(80u, deque->size());
5488 i = 0; 5489 i = 0;
5489 for (const auto& intWrapper : *deque) { 5490 for (const auto& intWrapper : *deque) {
5490 EXPECT_EQ(i + 50, intWrapper->value()); 5491 EXPECT_EQ(i + 50, intWrapper->value());
5491 i++; 5492 i++;
5492 } 5493 }
5493 } 5494 }
5494 5495
5495 } // namespace blink 5496 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698