Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "core/dom/ExecutionContext.h" 34 #include "core/dom/ExecutionContext.h"
35 #include "core/fetch/CachedMetadata.h" 35 #include "core/fetch/CachedMetadata.h"
36 #include "core/fetch/ScriptResource.h" 36 #include "core/fetch/ScriptResource.h"
37 #include "core/frame/LocalFrame.h" 37 #include "core/frame/LocalFrame.h"
38 #include "core/inspector/InspectorInstrumentation.h" 38 #include "core/inspector/InspectorInstrumentation.h"
39 #include "core/inspector/InspectorTraceEvents.h" 39 #include "core/inspector/InspectorTraceEvents.h"
40 #include "core/inspector/ThreadDebugger.h" 40 #include "core/inspector/ThreadDebugger.h"
41 #include "platform/Histogram.h" 41 #include "platform/Histogram.h"
42 #include "platform/ScriptForbiddenScope.h" 42 #include "platform/ScriptForbiddenScope.h"
43 #include "platform/TraceEvent.h" 43 #include "platform/tracing/TraceEvent.h"
44 #include "public/platform/Platform.h" 44 #include "public/platform/Platform.h"
45 #include "wtf/CurrentTime.h" 45 #include "wtf/CurrentTime.h"
46 46
47 #if OS(WIN) 47 #if OS(WIN)
48 #include <malloc.h> 48 #include <malloc.h>
49 #else 49 #else
50 #include <alloca.h> 50 #include <alloca.h>
51 #endif 51 #endif
52 52
53 namespace blink { 53 namespace blink {
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 V8CompileHistogram::Cacheability::Noncacheable, isolate, 594 V8CompileHistogram::Cacheability::Noncacheable, isolate,
595 v8AtomicString(isolate, "((e) => { throw e; })"), origin) 595 v8AtomicString(isolate, "((e) => { throw e; })"), origin)
596 .ToLocalChecked(); 596 .ToLocalChecked();
597 v8::Local<v8::Function> thrower = runCompiledInternalScript(isolate, script) 597 v8::Local<v8::Function> thrower = runCompiledInternalScript(isolate, script)
598 .ToLocalChecked().As<v8::Function>(); 598 .ToLocalChecked().As<v8::Function>();
599 v8::Local<v8::Value> args[] = { exception }; 599 v8::Local<v8::Value> args[] = { exception };
600 callInternalFunction(thrower, thrower, WTF_ARRAY_LENGTH(args), args, isolate ); 600 callInternalFunction(thrower, thrower, WTF_ARRAY_LENGTH(args), args, isolate );
601 } 601 }
602 602
603 } // namespace blink 603 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698