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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 static const size_t maxCallStackSizeToCapture = 200; | 44 static const size_t maxCallStackSizeToCapture = 200; |
45 | 45 |
46 static PassRefPtr<ScriptCallStack> create(Vector<ScriptCallFrame>&); | 46 static PassRefPtr<ScriptCallStack> create(Vector<ScriptCallFrame>&); |
47 | 47 |
48 ~ScriptCallStack(); | 48 ~ScriptCallStack(); |
49 | 49 |
50 const ScriptCallFrame &at(size_t) const; | 50 const ScriptCallFrame &at(size_t) const; |
51 size_t size() const; | 51 size_t size() const; |
52 | 52 |
53 bool isEqual(ScriptCallStack*) const; | |
54 | |
55 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > buildInspec
torArray() const; | 53 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > buildInspec
torArray() const; |
56 | 54 |
57 private: | 55 private: |
58 ScriptCallStack(Vector<ScriptCallFrame>&); | 56 ScriptCallStack(Vector<ScriptCallFrame>&); |
59 | 57 |
60 Vector<ScriptCallFrame> m_frames; | 58 Vector<ScriptCallFrame> m_frames; |
61 }; | 59 }; |
62 | 60 |
63 } // namespace WebCore | 61 } // namespace WebCore |
64 | 62 |
65 #endif // ScriptCallStack_h | 63 #endif // ScriptCallStack_h |
OLD | NEW |