Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: Source/WebCore/bindings/v8/JavaScriptCallFrame.cpp

Issue 12087054: Revert 140611 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/bindings/v8/NPV8Object.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/bindings/v8/NPV8Object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698