OLD | NEW |
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 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 21 matching lines...) Expand all Loading... |
32 #include "core/inspector/JavaScriptCallFrame.h" | 32 #include "core/inspector/JavaScriptCallFrame.h" |
33 | 33 |
34 #include "bindings/v8/V8Binding.h" | 34 #include "bindings/v8/V8Binding.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 JavaScriptCallFrame::JavaScriptCallFrame(v8::Handle<v8::Context> debuggerContext
, v8::Handle<v8::Object> callFrame) | 38 JavaScriptCallFrame::JavaScriptCallFrame(v8::Handle<v8::Context> debuggerContext
, v8::Handle<v8::Object> callFrame) |
39 : m_debuggerContext(debuggerContext) | 39 : m_debuggerContext(debuggerContext) |
40 , m_callFrame(callFrame) | 40 , m_callFrame(callFrame) |
41 { | 41 { |
| 42 ScriptWrappable::init(this); |
42 } | 43 } |
43 | 44 |
44 JavaScriptCallFrame::~JavaScriptCallFrame() | 45 JavaScriptCallFrame::~JavaScriptCallFrame() |
45 { | 46 { |
46 } | 47 } |
47 | 48 |
48 JavaScriptCallFrame* JavaScriptCallFrame::caller() | 49 JavaScriptCallFrame* JavaScriptCallFrame::caller() |
49 { | 50 { |
50 if (!m_caller) { | 51 if (!m_caller) { |
51 v8::HandleScope handleScope; | 52 v8::HandleScope handleScope; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 v8::Handle<v8::Value> argv[] = { | 139 v8::Handle<v8::Value> argv[] = { |
139 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)), | 140 v8::Handle<v8::Value>(v8::Integer::New(scopeNumber)), |
140 v8String(variableName, m_debuggerContext->GetIsolate()), | 141 v8String(variableName, m_debuggerContext->GetIsolate()), |
141 newValue | 142 newValue |
142 }; | 143 }; |
143 return setVariableValueFunction->Call(m_callFrame.get(), 3, argv); | 144 return setVariableValueFunction->Call(m_callFrame.get(), 3, argv); |
144 } | 145 } |
145 | 146 |
146 } // namespace WebCore | 147 } // namespace WebCore |
147 | 148 |
OLD | NEW |