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

Side by Side Diff: Source/modules/indexeddb/IDBDatabase.cpp

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.h ('k') | Source/modules/indexeddb/IDBRequest.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 void IDBDatabase::trace(Visitor* visitor) 94 void IDBDatabase::trace(Visitor* visitor)
95 { 95 {
96 visitor->trace(m_versionChangeTransaction); 96 visitor->trace(m_versionChangeTransaction);
97 visitor->trace(m_transactions); 97 visitor->trace(m_transactions);
98 #if ENABLE(OILPAN) 98 #if ENABLE(OILPAN)
99 visitor->trace(m_enqueuedEvents); 99 visitor->trace(m_enqueuedEvents);
100 #endif 100 #endif
101 visitor->trace(m_databaseCallbacks); 101 visitor->trace(m_databaseCallbacks);
102 EventTargetWithInlineData::trace(visitor);
102 } 103 }
103 104
104 int64_t IDBDatabase::nextTransactionId() 105 int64_t IDBDatabase::nextTransactionId()
105 { 106 {
106 // Only keep a 32-bit counter to allow ports to use the other 32 107 // Only keep a 32-bit counter to allow ports to use the other 32
107 // bits of the id. 108 // bits of the id.
108 AtomicallyInitializedStatic(int, currentTransactionId = 0); 109 AtomicallyInitializedStatic(int, currentTransactionId = 0);
109 return atomicIncrement(&currentTransactionId); 110 return atomicIncrement(&currentTransactionId);
110 } 111 }
111 112
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 { 461 {
461 return EventTargetNames::IDBDatabase; 462 return EventTargetNames::IDBDatabase;
462 } 463 }
463 464
464 ExecutionContext* IDBDatabase::executionContext() const 465 ExecutionContext* IDBDatabase::executionContext() const
465 { 466 {
466 return ActiveDOMObject::executionContext(); 467 return ActiveDOMObject::executionContext();
467 } 468 }
468 469
469 } // namespace WebCore 470 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.h ('k') | Source/modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698