| 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 return nullptr; | 738 return nullptr; |
| 739 TOSTRING_DEFAULT(V8StringResource<WithNullCheck>, nameString, name,
nullptr); | 739 TOSTRING_DEFAULT(V8StringResource<WithNullCheck>, nameString, name,
nullptr); |
| 740 jsonObject->setValue(nameString, propertyValue); | 740 jsonObject->setValue(nameString, propertyValue); |
| 741 } | 741 } |
| 742 return jsonObject; | 742 return jsonObject; |
| 743 } | 743 } |
| 744 ASSERT_NOT_REACHED(); | 744 ASSERT_NOT_REACHED(); |
| 745 return nullptr; | 745 return nullptr; |
| 746 } | 746 } |
| 747 | 747 |
| 748 PassOwnPtr<V8TestingScope> V8TestingScope::create(v8::Isolate* isolate) | |
| 749 { | |
| 750 return adoptPtr(new V8TestingScope(isolate)); | |
| 751 } | |
| 752 | |
| 753 V8TestingScope::V8TestingScope(v8::Isolate* isolate) | 748 V8TestingScope::V8TestingScope(v8::Isolate* isolate) |
| 754 : m_handleScope(isolate) | 749 : m_handleScope(isolate) |
| 755 , m_contextScope(v8::Context::New(isolate)) | 750 , m_contextScope(v8::Context::New(isolate)) |
| 756 , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(),
DOMWrapperWorld::create())) | 751 , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(),
DOMWrapperWorld::create())) |
| 757 { | 752 { |
| 758 } | 753 } |
| 759 | 754 |
| 760 V8TestingScope::~V8TestingScope() | 755 V8TestingScope::~V8TestingScope() |
| 761 { | 756 { |
| 762 m_scriptState->disposePerContextData(); | 757 m_scriptState->disposePerContextData(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 790 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) | 785 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio
nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) |
| 791 { | 786 { |
| 792 int scriptId = 0; | 787 int scriptId = 0; |
| 793 String resourceName; | 788 String resourceName; |
| 794 int lineNumber = 1; | 789 int lineNumber = 1; |
| 795 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe
r); | 790 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe
r); |
| 796 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin
eNumber); | 791 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin
eNumber); |
| 797 } | 792 } |
| 798 | 793 |
| 799 } // namespace WebCore | 794 } // namespace WebCore |
| OLD | NEW |