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: Source/core/inspector/ScriptCallStack.cpp

Issue 896603002: Oilpan: declare and define various inspector class dtors out-of-line. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/core/inspector/ScriptCallStack.h ('k') | no next file » | 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) 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2008, 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/inspector/ScriptCallStack.h" 32 #include "core/inspector/ScriptCallStack.h"
33 33
34 #include "core/inspector/ScriptAsyncCallStack.h" 34 #include "core/inspector/ScriptAsyncCallStack.h"
35 #include "platform/TracedValue.h" 35 #include "platform/TracedValue.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptCallStack);
40
41 PassRefPtrWillBeRawPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCal lFrame>& frames) 39 PassRefPtrWillBeRawPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCal lFrame>& frames)
42 { 40 {
43 return adoptRefWillBeNoop(new ScriptCallStack(frames)); 41 return adoptRefWillBeNoop(new ScriptCallStack(frames));
44 } 42 }
45 43
46 ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames) 44 ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames)
47 { 45 {
48 m_frames.swap(frames); 46 m_frames.swap(frames);
49 } 47 }
50 48
49 ScriptCallStack::~ScriptCallStack()
50 {
51 }
52
51 const ScriptCallFrame &ScriptCallStack::at(size_t index) const 53 const ScriptCallFrame &ScriptCallStack::at(size_t index) const
52 { 54 {
53 ASSERT(m_frames.size() > index); 55 ASSERT(m_frames.size() > index);
54 return m_frames[index]; 56 return m_frames[index];
55 } 57 }
56 58
57 size_t ScriptCallStack::size() const 59 size_t ScriptCallStack::size() const
58 { 60 {
59 return m_frames.size(); 61 return m_frames.size();
60 } 62 }
(...skipping 23 matching lines...) Expand all
84 m_frames.at(i).toTracedValue(value); 86 m_frames.at(i).toTracedValue(value);
85 value->endArray(); 87 value->endArray();
86 } 88 }
87 89
88 void ScriptCallStack::trace(Visitor* visitor) 90 void ScriptCallStack::trace(Visitor* visitor)
89 { 91 {
90 visitor->trace(m_asyncCallStack); 92 visitor->trace(m_asyncCallStack);
91 } 93 }
92 94
93 } // namespace blink 95 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/ScriptCallStack.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698