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

Side by Side Diff: Source/bindings/v8/V8PerIsolateData.cpp

Issue 142193004: Create & use microtask work queue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: sync Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 : m_isolate(isolate) 39 : m_isolate(isolate)
40 , m_stringCache(adoptPtr(new StringCache())) 40 , m_stringCache(adoptPtr(new StringCache()))
41 , m_workerDomDataStore(0) 41 , m_workerDomDataStore(0)
42 , m_constructorMode(ConstructorMode::CreateNewObject) 42 , m_constructorMode(ConstructorMode::CreateNewObject)
43 , m_recursionLevel(0) 43 , m_recursionLevel(0)
44 #ifndef NDEBUG 44 #ifndef NDEBUG
45 , m_internalScriptRecursionLevel(0) 45 , m_internalScriptRecursionLevel(0)
46 #endif 46 #endif
47 , m_gcEventData(adoptPtr(new GCEventData())) 47 , m_gcEventData(adoptPtr(new GCEventData()))
48 , m_shouldCollectGarbageSoon(false) 48 , m_shouldCollectGarbageSoon(false)
49 , m_performingMicrotaskCheckpoint(false)
49 { 50 {
50 } 51 }
51 52
52 V8PerIsolateData::~V8PerIsolateData() 53 V8PerIsolateData::~V8PerIsolateData()
53 { 54 {
54 } 55 }
55 56
56 V8PerIsolateData* V8PerIsolateData::create(v8::Isolate* isolate) 57 V8PerIsolateData* V8PerIsolateData::create(v8::Isolate* isolate)
57 { 58 {
58 ASSERT(isolate); 59 ASSERT(isolate);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // obscure and unlikely to be a problem. 156 // obscure and unlikely to be a problem.
156 v8::Handle<v8::Value> value = info.Callee()->Get(v8AtomicString(info.GetIsol ate(), "toString")); 157 v8::Handle<v8::Value> value = info.Callee()->Get(v8AtomicString(info.GetIsol ate(), "toString"));
157 if (!value->IsFunction()) { 158 if (!value->IsFunction()) {
158 v8SetReturnValue(info, v8::String::Empty(info.GetIsolate())); 159 v8SetReturnValue(info, v8::String::Empty(info.GetIsolate()));
159 return; 160 return;
160 } 161 }
161 v8SetReturnValue(info, V8ScriptRunner::callInternalFunction(v8::Handle<v8::F unction>::Cast(value), info.This(), 0, 0, v8::Isolate::GetCurrent())); 162 v8SetReturnValue(info, V8ScriptRunner::callInternalFunction(v8::Handle<v8::F unction>::Cast(value), info.This(), 0, 0, v8::Isolate::GetCurrent()));
162 } 163 }
163 164
164 } // namespace WebCore 165 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698