| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "core/inspector/MainThreadDebugger.h" | 52 #include "core/inspector/MainThreadDebugger.h" |
| 53 #include "core/inspector/ScriptArguments.h" | 53 #include "core/inspector/ScriptArguments.h" |
| 54 #include "core/workers/WorkerGlobalScope.h" | 54 #include "core/workers/WorkerGlobalScope.h" |
| 55 #include "platform/EventDispatchForbiddenScope.h" | 55 #include "platform/EventDispatchForbiddenScope.h" |
| 56 #include "platform/RuntimeEnabledFeatures.h" | 56 #include "platform/RuntimeEnabledFeatures.h" |
| 57 #include "platform/TraceEvent.h" | 57 #include "platform/TraceEvent.h" |
| 58 #include "public/platform/Platform.h" | 58 #include "public/platform/Platform.h" |
| 59 #include "public/platform/WebScheduler.h" | 59 #include "public/platform/WebScheduler.h" |
| 60 #include "public/platform/WebThread.h" | 60 #include "public/platform/WebThread.h" |
| 61 #include "wtf/AddressSanitizer.h" | 61 #include "wtf/AddressSanitizer.h" |
| 62 #include "wtf/ArrayBufferContents.h" | |
| 63 #include "wtf/RefPtr.h" | 62 #include "wtf/RefPtr.h" |
| 64 #include "wtf/text/WTFString.h" | 63 #include "wtf/text/WTFString.h" |
| 64 #include "wtf/typed_arrays/ArrayBufferContents.h" |
| 65 #include <v8-debug.h> | 65 #include <v8-debug.h> |
| 66 #include <v8-profiler.h> | 66 #include <v8-profiler.h> |
| 67 | 67 |
| 68 namespace blink { | 68 namespace blink { |
| 69 | 69 |
| 70 static Frame* findFrame(v8::Isolate* isolate, v8::Local<v8::Object> host, v8::Lo
cal<v8::Value> data) | 70 static Frame* findFrame(v8::Isolate* isolate, v8::Local<v8::Object> host, v8::Lo
cal<v8::Value> data) |
| 71 { | 71 { |
| 72 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data); | 72 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data); |
| 73 | 73 |
| 74 if (V8Window::wrapperTypeInfo.equals(type)) { | 74 if (V8Window::wrapperTypeInfo.equals(type)) { |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 457 |
| 458 isolate->AddMessageListener(messageHandlerInWorker); | 458 isolate->AddMessageListener(messageHandlerInWorker); |
| 459 isolate->SetFatalErrorHandler(reportFatalErrorInWorker); | 459 isolate->SetFatalErrorHandler(reportFatalErrorInWorker); |
| 460 | 460 |
| 461 uint32_t here; | 461 uint32_t here; |
| 462 isolate->SetStackLimit(reinterpret_cast<uintptr_t>(&here - kWorkerMaxStackSi
ze / sizeof(uint32_t*))); | 462 isolate->SetStackLimit(reinterpret_cast<uintptr_t>(&here - kWorkerMaxStackSi
ze / sizeof(uint32_t*))); |
| 463 isolate->SetPromiseRejectCallback(promiseRejectHandlerInWorker); | 463 isolate->SetPromiseRejectCallback(promiseRejectHandlerInWorker); |
| 464 } | 464 } |
| 465 | 465 |
| 466 } // namespace blink | 466 } // namespace blink |
| OLD | NEW |