| OLD | NEW |
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> ScriptCallStack::asyncCallStack() c
onst | 62 PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> ScriptCallStack::asyncCallStack() c
onst |
| 63 { | 63 { |
| 64 return m_asyncCallStack; | 64 return m_asyncCallStack; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void ScriptCallStack::setAsyncCallStack(PassRefPtrWillBeRawPtr<ScriptAsyncCallSt
ack> asyncCallStack) | 67 void ScriptCallStack::setAsyncCallStack(PassRefPtrWillBeRawPtr<ScriptAsyncCallSt
ack> asyncCallStack) |
| 68 { | 68 { |
| 69 m_asyncCallStack = asyncCallStack; | 69 m_asyncCallStack = asyncCallStack; |
| 70 } | 70 } |
| 71 | 71 |
| 72 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > ScriptCallStack
::buildInspectorArray() const | 72 PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame>> ScriptCallStack:
:buildInspectorArray() const |
| 73 { | 73 { |
| 74 RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBu
ilder::Array<TypeBuilder::Console::CallFrame>::create(); | 74 RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame>> frames = TypeBui
lder::Array<TypeBuilder::Console::CallFrame>::create(); |
| 75 for (size_t i = 0; i < m_frames.size(); i++) | 75 for (size_t i = 0; i < m_frames.size(); i++) |
| 76 frames->addItem(m_frames.at(i).buildInspectorObject()); | 76 frames->addItem(m_frames.at(i).buildInspectorObject()); |
| 77 return frames; | 77 return frames; |
| 78 } | 78 } |
| 79 | 79 |
| 80 void ScriptCallStack::toTracedValue(TracedValue* value, const char* name) const | 80 void ScriptCallStack::toTracedValue(TracedValue* value, const char* name) const |
| 81 { | 81 { |
| 82 value->beginArray(name); | 82 value->beginArray(name); |
| 83 for (size_t i = 0; i < m_frames.size(); i++) | 83 for (size_t i = 0; i < m_frames.size(); i++) |
| 84 m_frames.at(i).toTracedValue(value); | 84 m_frames.at(i).toTracedValue(value); |
| 85 value->endArray(); | 85 value->endArray(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void ScriptCallStack::trace(Visitor* visitor) | 88 void ScriptCallStack::trace(Visitor* visitor) |
| 89 { | 89 { |
| 90 visitor->trace(m_asyncCallStack); | 90 visitor->trace(m_asyncCallStack); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| OLD | NEW |