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

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

Issue 2640963007: [wrapper-tracing] Remove flag and object grouping entry points (Closed)
Patch Set: Fix merge artifact Created 3 years, 10 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 return policy->allowEval(ScriptState::from(context), 314 return policy->allowEval(ScriptState::from(context),
315 ContentSecurityPolicy::SendReport, 315 ContentSecurityPolicy::SendReport,
316 ContentSecurityPolicy::WillThrowException); 316 ContentSecurityPolicy::WillThrowException);
317 } 317 }
318 return false; 318 return false;
319 } 319 }
320 320
321 static void initializeV8Common(v8::Isolate* isolate) { 321 static void initializeV8Common(v8::Isolate* isolate) {
322 isolate->AddGCPrologueCallback(V8GCController::gcPrologue); 322 isolate->AddGCPrologueCallback(V8GCController::gcPrologue);
323 isolate->AddGCEpilogueCallback(V8GCController::gcEpilogue); 323 isolate->AddGCEpilogueCallback(V8GCController::gcEpilogue);
324 if (RuntimeEnabledFeatures::traceWrappablesEnabled()) { 324 std::unique_ptr<ScriptWrappableVisitor> visitor(
325 std::unique_ptr<ScriptWrappableVisitor> visitor( 325 new ScriptWrappableVisitor(isolate));
326 new ScriptWrappableVisitor(isolate)); 326 V8PerIsolateData::from(isolate)->setScriptWrappableVisitor(
327 V8PerIsolateData::from(isolate)->setScriptWrappableVisitor( 327 std::move(visitor));
328 std::move(visitor)); 328 isolate->SetEmbedderHeapTracer(
329 isolate->SetEmbedderHeapTracer( 329 V8PerIsolateData::from(isolate)->scriptWrappableVisitor());
330 V8PerIsolateData::from(isolate)->scriptWrappableVisitor());
331 }
332 330
333 v8::Debug::SetLiveEditEnabled(isolate, false); 331 v8::Debug::SetLiveEditEnabled(isolate, false);
334 332
335 isolate->SetMicrotasksPolicy(v8::MicrotasksPolicy::kScoped); 333 isolate->SetMicrotasksPolicy(v8::MicrotasksPolicy::kScoped);
336 } 334 }
337 335
338 namespace { 336 namespace {
339 337
340 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 338 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
341 // Allocate() methods return null to signal allocation failure to V8, which 339 // Allocate() methods return null to signal allocation failure to V8, which
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 v8::Isolate::kMessageLog); 520 v8::Isolate::kMessageLog);
523 isolate->SetFatalErrorHandler(reportFatalErrorInWorker); 521 isolate->SetFatalErrorHandler(reportFatalErrorInWorker);
524 522
525 uint32_t here; 523 uint32_t here;
526 isolate->SetStackLimit(reinterpret_cast<uintptr_t>(&here) - 524 isolate->SetStackLimit(reinterpret_cast<uintptr_t>(&here) -
527 kWorkerMaxStackSize); 525 kWorkerMaxStackSize);
528 isolate->SetPromiseRejectCallback(promiseRejectHandlerInWorker); 526 isolate->SetPromiseRejectCallback(promiseRejectHandlerInWorker);
529 } 527 }
530 528
531 } // namespace blink 529 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698