OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "bindings/core/v8/DOMDataStore.h" | 28 #include "bindings/core/v8/DOMDataStore.h" |
29 #include "bindings/core/v8/ScriptSourceCode.h" | 29 #include "bindings/core/v8/ScriptSourceCode.h" |
30 #include "bindings/core/v8/V8Binding.h" | 30 #include "bindings/core/v8/V8Binding.h" |
31 #include "bindings/core/v8/V8HiddenValue.h" | 31 #include "bindings/core/v8/V8HiddenValue.h" |
32 #include "bindings/core/v8/V8ObjectConstructor.h" | 32 #include "bindings/core/v8/V8ObjectConstructor.h" |
33 #include "bindings/core/v8/V8RecursionScope.h" | 33 #include "bindings/core/v8/V8RecursionScope.h" |
34 #include "bindings/core/v8/V8ScriptRunner.h" | 34 #include "bindings/core/v8/V8ScriptRunner.h" |
35 #include "core/frame/Deprecation.h" | 35 #include "core/frame/Deprecation.h" |
36 #include "core/inspector/MainThreadDebugger.h" | 36 #include "core/inspector/MainThreadDebugger.h" |
37 #include "platform/ScriptForbiddenScope.h" | 37 #include "platform/ScriptForbiddenScope.h" |
| 38 #include "platform/TraceEvent.h" |
38 #include "public/platform/Platform.h" | 39 #include "public/platform/Platform.h" |
39 #include "wtf/LeakAnnotations.h" | 40 #include "wtf/LeakAnnotations.h" |
40 #include "wtf/MainThread.h" | 41 #include "wtf/MainThread.h" |
41 | 42 |
42 namespace blink { | 43 namespace blink { |
43 | 44 |
44 static V8PerIsolateData* mainThreadPerIsolateData = 0; | 45 static V8PerIsolateData* mainThreadPerIsolateData = 0; |
45 | 46 |
46 static void beforeCallEnteredCallback(v8::Isolate* isolate) | 47 static void beforeCallEnteredCallback(v8::Isolate* isolate) |
47 { | 48 { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 { | 345 { |
345 ASSERT(!m_threadDebugger); | 346 ASSERT(!m_threadDebugger); |
346 m_threadDebugger = std::move(threadDebugger); | 347 m_threadDebugger = std::move(threadDebugger); |
347 } | 348 } |
348 | 349 |
349 ThreadDebugger* V8PerIsolateData::threadDebugger() | 350 ThreadDebugger* V8PerIsolateData::threadDebugger() |
350 { | 351 { |
351 return m_threadDebugger.get(); | 352 return m_threadDebugger.get(); |
352 } | 353 } |
353 | 354 |
| 355 void V8PerIsolateData::onTraceLogEnabled() |
| 356 { |
| 357 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("v8", "Isolate", isolate(), "{}"); |
| 358 } |
| 359 |
| 360 void V8PerIsolateData::onTraceLogDisabled() |
| 361 { |
| 362 } |
| 363 |
354 } // namespace blink | 364 } // namespace blink |
OLD | NEW |