OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008, 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 static const size_t maxCallStackSizeToCapture = 200; | 49 static const size_t maxCallStackSizeToCapture = 200; |
50 | 50 |
51 static PassRefPtrWillBeRawPtr<ScriptCallStack> create(Vector<ScriptCallFrame
>&); | 51 static PassRefPtrWillBeRawPtr<ScriptCallStack> create(Vector<ScriptCallFrame
>&); |
52 | 52 |
53 const ScriptCallFrame &at(size_t) const; | 53 const ScriptCallFrame &at(size_t) const; |
54 size_t size() const; | 54 size_t size() const; |
55 | 55 |
56 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> asyncCallStack() const; | 56 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> asyncCallStack() const; |
57 void setAsyncCallStack(PassRefPtrWillBeRawPtr<ScriptAsyncCallStack>); | 57 void setAsyncCallStack(PassRefPtrWillBeRawPtr<ScriptAsyncCallStack>); |
58 | 58 |
59 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > buildInspec
torArray() const; | 59 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame>> buildInspect
orArray() const; |
60 void toTracedValue(TracedValue*, const char* name) const; | 60 void toTracedValue(TracedValue*, const char* name) const; |
61 | 61 |
62 void trace(Visitor*); | 62 void trace(Visitor*); |
63 | 63 |
64 private: | 64 private: |
65 explicit ScriptCallStack(Vector<ScriptCallFrame>&); | 65 explicit ScriptCallStack(Vector<ScriptCallFrame>&); |
66 | 66 |
67 Vector<ScriptCallFrame> m_frames; | 67 Vector<ScriptCallFrame> m_frames; |
68 RefPtrWillBeMember<ScriptAsyncCallStack> m_asyncCallStack; | 68 RefPtrWillBeMember<ScriptAsyncCallStack> m_asyncCallStack; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace blink | 71 } // namespace blink |
72 | 72 |
73 #endif // ScriptCallStack_h | 73 #endif // ScriptCallStack_h |
OLD | NEW |