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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 | 115 |
116 v8::Handle<v8::Value> JavaScriptCallFrame::thisObject() const | 116 v8::Handle<v8::Value> JavaScriptCallFrame::thisObject() const |
117 { | 117 { |
118 return m_callFrame.get()->Get(v8::String::NewSymbol("thisObject")); | 118 return m_callFrame.get()->Get(v8::String::NewSymbol("thisObject")); |
119 } | 119 } |
120 | 120 |
121 v8::Handle<v8::Value> JavaScriptCallFrame::evaluate(const String& expression) | 121 v8::Handle<v8::Value> JavaScriptCallFrame::evaluate(const String& expression) |
122 { | 122 { |
123 v8::Handle<v8::Function> evalFunction = v8::Handle<v8::Function>::Cast(m_cal
lFrame.get()->Get(v8::String::NewSymbol("evaluate"))); | 123 v8::Handle<v8::Function> evalFunction = v8::Handle<v8::Function>::Cast(m_cal
lFrame.get()->Get(v8::String::NewSymbol("evaluate"))); |
124 v8::Handle<v8::Value> argv[] = { v8String(expression, m_debuggerContext->Get
Isolate()) }; | 124 v8::Handle<v8::Value> argv[] = { deprecatedV8String(expression) }; |
125 return evalFunction->Call(m_callFrame.get(), 1, argv); | 125 return evalFunction->Call(m_callFrame.get(), 1, argv); |
126 } | 126 } |
127 | 127 |
128 v8::Handle<v8::Value> JavaScriptCallFrame::restart() | 128 v8::Handle<v8::Value> JavaScriptCallFrame::restart() |
129 { | 129 { |
130 v8::Handle<v8::Function> restartFunction = v8::Handle<v8::Function>::Cast(m_
callFrame.get()->Get(v8::String::NewSymbol("restart"))); | 130 v8::Handle<v8::Function> restartFunction = v8::Handle<v8::Function>::Cast(m_
callFrame.get()->Get(v8::String::NewSymbol("restart"))); |
131 v8::Debug::SetLiveEditEnabled(true); | 131 v8::Debug::SetLiveEditEnabled(true); |
132 v8::Handle<v8::Value> result = restartFunction->Call(m_callFrame.get(), 0, 0
); | 132 v8::Handle<v8::Value> result = restartFunction->Call(m_callFrame.get(), 0, 0
); |
133 v8::Debug::SetLiveEditEnabled(false); | 133 v8::Debug::SetLiveEditEnabled(false); |
134 return result; | 134 return result; |
135 } | 135 } |
136 | 136 |
137 } // namespace WebCore | 137 } // namespace WebCore |
138 | 138 |
139 #endif // ENABLE(JAVASCRIPT_DEBUGGER) | 139 #endif // ENABLE(JAVASCRIPT_DEBUGGER) |
OLD | NEW |