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

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

Issue 219003002: [ABANDONED] Call Microtask::performCheckpoint for each worker task. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 GCEventData* gcEventData() { return m_gcEventData.get(); } 86 GCEventData* gcEventData() { return m_gcEventData.get(); }
87 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); } 87 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); }
88 88
89 v8::Handle<v8::FunctionTemplate> domTemplate(void* domTemplateKey, v8::Funct ionCallback = 0, v8::Handle<v8::Value> data = v8::Handle<v8::Value>(), v8::Handl e<v8::Signature> = v8::Handle<v8::Signature>(), int length = 0); 89 v8::Handle<v8::FunctionTemplate> domTemplate(void* domTemplateKey, v8::Funct ionCallback = 0, v8::Handle<v8::Value> data = v8::Handle<v8::Value>(), v8::Handl e<v8::Signature> = v8::Handle<v8::Signature>(), int length = 0);
90 v8::Handle<v8::FunctionTemplate> existingDOMTemplate(void* domTemplateKey); 90 v8::Handle<v8::FunctionTemplate> existingDOMTemplate(void* domTemplateKey);
91 void setDOMTemplate(void* domTemplateKey, v8::Handle<v8::FunctionTemplate>); 91 void setDOMTemplate(void* domTemplateKey, v8::Handle<v8::FunctionTemplate>);
92 92
93 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>); 93 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>);
94 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Handle<v8::Value>); 94 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Handle<v8::Value>);
95 95
96 // This method may return an empty handle when the script execution
97 // is terminated.
96 v8::Local<v8::Context> ensureDomInJSContext(); 98 v8::Local<v8::Context> ensureDomInJSContext();
97 99
98 const char* previousSamplingState() const { return m_previousSamplingState; } 100 const char* previousSamplingState() const { return m_previousSamplingState; }
99 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; } 101 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; }
100 102
101 private: 103 private:
102 explicit V8PerIsolateData(v8::Isolate*); 104 explicit V8PerIsolateData(v8::Isolate*);
103 ~V8PerIsolateData(); 105 ~V8PerIsolateData();
104 106
105 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate Map; 107 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate Map;
(...skipping 21 matching lines...) Expand all
127 #ifndef NDEBUG 129 #ifndef NDEBUG
128 int m_internalScriptRecursionLevel; 130 int m_internalScriptRecursionLevel;
129 #endif 131 #endif
130 OwnPtr<GCEventData> m_gcEventData; 132 OwnPtr<GCEventData> m_gcEventData;
131 bool m_performingMicrotaskCheckpoint; 133 bool m_performingMicrotaskCheckpoint;
132 }; 134 };
133 135
134 } // namespace WebCore 136 } // namespace WebCore
135 137
136 #endif // V8PerIsolateData_h 138 #endif // V8PerIsolateData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698