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

Side by Side Diff: src/inspector/JavaScriptCallFrame.cpp

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners Created 4 years, 3 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
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "src/inspector/JavaScriptCallFrame.h" 31 #include "src/inspector/JavaScriptCallFrame.h"
32 32
33 #include "src/inspector/StringUtil.h" 33 #include "src/inspector/StringUtil.h"
34 #include "src/inspector/V8Compat.h"
35 34
36 #include <v8-debug.h> 35 #include "include/v8-debug.h"
37 36
38 namespace v8_inspector { 37 namespace v8_inspector {
39 38
40 JavaScriptCallFrame::JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, 39 JavaScriptCallFrame::JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext,
41 v8::Local<v8::Object> callFrame) 40 v8::Local<v8::Object> callFrame)
42 : m_isolate(debuggerContext->GetIsolate()), 41 : m_isolate(debuggerContext->GetIsolate()),
43 m_debuggerContext(m_isolate, debuggerContext), 42 m_debuggerContext(m_isolate, debuggerContext),
44 m_callFrame(m_isolate, callFrame) {} 43 m_callFrame(m_isolate, callFrame) {}
45 44
46 JavaScriptCallFrame::~JavaScriptCallFrame() {} 45 JavaScriptCallFrame::~JavaScriptCallFrame() {}
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 toV8StringInternalized(m_isolate, "setVariableValue"))); 136 toV8StringInternalized(m_isolate, "setVariableValue")));
138 v8::Local<v8::Value> argv[] = { 137 v8::Local<v8::Value> argv[] = {
139 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)), 138 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)),
140 variableName, newValue}; 139 variableName, newValue};
141 return setVariableValueFunction->Call(m_debuggerContext.Get(m_isolate), 140 return setVariableValueFunction->Call(m_debuggerContext.Get(m_isolate),
142 callFrame, 141 callFrame,
143 V8_INSPECTOR_ARRAY_LENGTH(argv), argv); 142 V8_INSPECTOR_ARRAY_LENGTH(argv), argv);
144 } 143 }
145 144
146 } // namespace v8_inspector 145 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698