| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 } | 810 } |
| 811 return jsonObject; | 811 return jsonObject; |
| 812 } | 812 } |
| 813 ASSERT_NOT_REACHED(); | 813 ASSERT_NOT_REACHED(); |
| 814 return nullptr; | 814 return nullptr; |
| 815 } | 815 } |
| 816 | 816 |
| 817 V8TestingScope::V8TestingScope(v8::Isolate* isolate) | 817 V8TestingScope::V8TestingScope(v8::Isolate* isolate) |
| 818 : m_handleScope(isolate) | 818 : m_handleScope(isolate) |
| 819 , m_contextScope(v8::Context::New(isolate)) | 819 , m_contextScope(v8::Context::New(isolate)) |
| 820 , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(),
DOMWrapperWorld::create())) | 820 , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(),
DOMWrapperWorld::create(FakeWorld))) |
| 821 { | 821 { |
| 822 } | 822 } |
| 823 | 823 |
| 824 V8TestingScope::~V8TestingScope() | 824 V8TestingScope::~V8TestingScope() |
| 825 { | 825 { |
| 826 m_scriptState->disposePerContextData(); | 826 m_scriptState->disposePerContextData(); |
| 827 } | 827 } |
| 828 | 828 |
| 829 ScriptState* V8TestingScope::scriptState() const | 829 ScriptState* V8TestingScope::scriptState() const |
| 830 { | 830 { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 854 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) | 854 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) |
| 855 { | 855 { |
| 856 int scriptId = 0; | 856 int scriptId = 0; |
| 857 String resourceName; | 857 String resourceName; |
| 858 int lineNumber = 1; | 858 int lineNumber = 1; |
| 859 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe
r); | 859 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe
r); |
| 860 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin
eNumber); | 860 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin
eNumber); |
| 861 } | 861 } |
| 862 | 862 |
| 863 } // namespace blink | 863 } // namespace blink |
| OLD | NEW |