| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 5 |
| 6 // Defined when linking against shared lib on Windows. | 6 // Defined when linking against shared lib on Windows. |
| 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |
| 8 #define V8_SHARED | 8 #define V8_SHARED |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2480 PerIsolateData data(isolate); | 2480 PerIsolateData data(isolate); |
| 2481 | 2481 |
| 2482 if (options.trace_enabled) { | 2482 if (options.trace_enabled) { |
| 2483 trace_file.open("v8_trace.json"); | 2483 trace_file.open("v8_trace.json"); |
| 2484 platform::tracing::TracingController* tracing_controller = | 2484 platform::tracing::TracingController* tracing_controller = |
| 2485 new platform::tracing::TracingController(); | 2485 new platform::tracing::TracingController(); |
| 2486 platform::tracing::TraceBuffer* trace_buffer = | 2486 platform::tracing::TraceBuffer* trace_buffer = |
| 2487 platform::tracing::TraceBuffer::CreateTraceBufferRingBuffer( | 2487 platform::tracing::TraceBuffer::CreateTraceBufferRingBuffer( |
| 2488 platform::tracing::TraceBuffer::kRingBufferChunks, | 2488 platform::tracing::TraceBuffer::kRingBufferChunks, |
| 2489 platform::tracing::TraceWriter::CreateJSONTraceWriter( | 2489 platform::tracing::TraceWriter::CreateJSONTraceWriter( |
| 2490 trace_file)); | 2490 isolate, trace_file)); |
| 2491 platform::tracing::TraceConfig* trace_config; | 2491 platform::tracing::TraceConfig* trace_config; |
| 2492 trace_config = new platform::tracing::TraceConfig(); | 2492 trace_config = new platform::tracing::TraceConfig(); |
| 2493 trace_config->AddIncludedCategory("v8"); | 2493 trace_config->AddIncludedCategory("v8"); |
| 2494 tracing_controller->Initialize(trace_buffer); | 2494 tracing_controller->Initialize(trace_buffer); |
| 2495 tracing_controller->StartTracing(trace_config); | 2495 tracing_controller->StartTracing(trace_config); |
| 2496 #ifndef V8_SHARED | 2496 #ifndef V8_SHARED |
| 2497 if (!i::FLAG_verify_predictable) { | 2497 if (!i::FLAG_verify_predictable) { |
| 2498 platform::SetTracingController(g_platform, tracing_controller); | 2498 platform::SetTracingController(g_platform, tracing_controller); |
| 2499 } | 2499 } |
| 2500 #else | 2500 #else |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2576 } | 2576 } |
| 2577 | 2577 |
| 2578 } // namespace v8 | 2578 } // namespace v8 |
| 2579 | 2579 |
| 2580 | 2580 |
| 2581 #ifndef GOOGLE3 | 2581 #ifndef GOOGLE3 |
| 2582 int main(int argc, char* argv[]) { | 2582 int main(int argc, char* argv[]) { |
| 2583 return v8::Shell::Main(argc, argv); | 2583 return v8::Shell::Main(argc, argv); |
| 2584 } | 2584 } |
| 2585 #endif | 2585 #endif |
| OLD | NEW |