| 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 12 matching lines...) Expand all Loading... |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "bindings/core/v8/V8ScriptRunner.h" | 26 #include "bindings/core/v8/V8ScriptRunner.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/BindingSecurity.h" | 28 #include "bindings/core/v8/BindingSecurity.h" |
| 29 #include "bindings/core/v8/ScriptSourceCode.h" | 29 #include "bindings/core/v8/ScriptSourceCode.h" |
| 30 #include "bindings/core/v8/ScriptStreamer.h" | 30 #include "bindings/core/v8/ScriptStreamer.h" |
| 31 #include "bindings/core/v8/V8BindingForCore.h" | 31 #include "bindings/core/v8/V8BindingForCore.h" |
| 32 #include "bindings/core/v8/V8GCController.h" | 32 #include "bindings/core/v8/V8GCController.h" |
| 33 #include "bindings/core/v8/V8ThrowException.h" | |
| 34 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
| 35 #include "core/dom/ExecutionContext.h" | 34 #include "core/dom/ExecutionContext.h" |
| 36 #include "core/frame/LocalDOMWindow.h" | 35 #include "core/frame/LocalDOMWindow.h" |
| 37 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
| 38 #include "core/inspector/InspectorTraceEvents.h" | 37 #include "core/inspector/InspectorTraceEvents.h" |
| 39 #include "core/inspector/ThreadDebugger.h" | 38 #include "core/inspector/ThreadDebugger.h" |
| 40 #include "core/loader/resource/ScriptResource.h" | 39 #include "core/loader/resource/ScriptResource.h" |
| 41 #include "core/probe/CoreProbes.h" | 40 #include "core/probe/CoreProbes.h" |
| 42 #include "platform/Histogram.h" | 41 #include "platform/Histogram.h" |
| 43 #include "platform/ScriptForbiddenScope.h" | 42 #include "platform/ScriptForbiddenScope.h" |
| 43 #include "platform/bindings/V8ThrowException.h" |
| 44 #include "platform/instrumentation/tracing/TraceEvent.h" | 44 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 45 #include "platform/loader/fetch/CachedMetadata.h" | 45 #include "platform/loader/fetch/CachedMetadata.h" |
| 46 #include "platform/wtf/CurrentTime.h" | 46 #include "platform/wtf/CurrentTime.h" |
| 47 #include "public/platform/Platform.h" | 47 #include "public/platform/Platform.h" |
| 48 | 48 |
| 49 #if OS(WIN) | 49 #if OS(WIN) |
| 50 #include <malloc.h> | 50 #include <malloc.h> |
| 51 #else | 51 #else |
| 52 #include <alloca.h> | 52 #include <alloca.h> |
| 53 #endif | 53 #endif |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 if (!context->GetExtrasBindingObject() | 763 if (!context->GetExtrasBindingObject() |
| 764 ->Get(context, V8AtomicString(isolate, name)) | 764 ->Get(context, V8AtomicString(isolate, name)) |
| 765 .ToLocal(&function_value)) | 765 .ToLocal(&function_value)) |
| 766 return v8::MaybeLocal<v8::Value>(); | 766 return v8::MaybeLocal<v8::Value>(); |
| 767 v8::Local<v8::Function> function = function_value.As<v8::Function>(); | 767 v8::Local<v8::Function> function = function_value.As<v8::Function>(); |
| 768 return V8ScriptRunner::CallInternalFunction(function, v8::Undefined(isolate), | 768 return V8ScriptRunner::CallInternalFunction(function, v8::Undefined(isolate), |
| 769 num_args, args, isolate); | 769 num_args, args, isolate); |
| 770 } | 770 } |
| 771 | 771 |
| 772 } // namespace blink | 772 } // namespace blink |
| OLD | NEW |