OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/inspector/V8InjectedScriptHost.h" | 5 #include "src/inspector/v8-injected-script-host.h" |
6 | 6 |
7 #include "src/base/macros.h" | 7 #include "src/base/macros.h" |
8 #include "src/inspector/InjectedScriptNative.h" | 8 #include "src/inspector/injected-script-native.h" |
9 #include "src/inspector/StringUtil.h" | 9 #include "src/inspector/string-util.h" |
10 #include "src/inspector/V8Debugger.h" | 10 #include "src/inspector/v8-debugger.h" |
11 #include "src/inspector/V8InspectorImpl.h" | 11 #include "src/inspector/v8-inspector-impl.h" |
12 #include "src/inspector/V8InternalValueType.h" | 12 #include "src/inspector/v8-internal-value-type.h" |
13 #include "src/inspector/V8ValueCopier.h" | 13 #include "src/inspector/v8-value-copier.h" |
14 | 14 |
15 #include "include/v8-inspector.h" | 15 #include "include/v8-inspector.h" |
16 | 16 |
17 namespace v8_inspector { | 17 namespace v8_inspector { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 void setFunctionProperty(v8::Local<v8::Context> context, | 21 void setFunctionProperty(v8::Local<v8::Context> context, |
22 v8::Local<v8::Object> obj, const char* name, | 22 v8::Local<v8::Object> obj, const char* name, |
23 v8::FunctionCallback callback, | 23 v8::FunctionCallback callback, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 UNREACHABLE(); | 207 UNREACHABLE(); |
208 return; | 208 return; |
209 } | 209 } |
210 v8::Local<v8::Object> target = info[0].As<v8::Proxy>(); | 210 v8::Local<v8::Object> target = info[0].As<v8::Proxy>(); |
211 while (target->IsProxy()) | 211 while (target->IsProxy()) |
212 target = v8::Local<v8::Proxy>::Cast(target)->GetTarget(); | 212 target = v8::Local<v8::Proxy>::Cast(target)->GetTarget(); |
213 info.GetReturnValue().Set(target); | 213 info.GetReturnValue().Set(target); |
214 } | 214 } |
215 | 215 |
216 } // namespace v8_inspector | 216 } // namespace v8_inspector |
OLD | NEW |