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

Side by Side Diff: sky/engine/bindings/core/v8/V8PerIsolateData.h

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Actually works Created 6 years, 1 month 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 GCEventData* gcEventData() { return m_gcEventData.get(); } 87 GCEventData* gcEventData() { return m_gcEventData.get(); }
88 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); } 88 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); }
89 89
90 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> 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);
91 v8::Handle<v8::FunctionTemplate> existingDOMTemplate(void* domTemplateKey); 91 v8::Handle<v8::FunctionTemplate> existingDOMTemplate(void* domTemplateKey);
92 void setDOMTemplate(void* domTemplateKey, v8::Handle<v8::FunctionTemplate>); 92 void setDOMTemplate(void* domTemplateKey, v8::Handle<v8::FunctionTemplate>);
93 93
94 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>); 94 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>);
95 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Handle<v8::Value>); 95 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Handle<v8::Value>);
96 96
97 v8::Local<v8::Context> ensureScriptRegexpContext();
98
97 const char* previousSamplingState() const { return m_previousSamplingState; } 99 const char* previousSamplingState() const { return m_previousSamplingState; }
98 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; } 100 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; }
99 101
100 private: 102 private:
101 V8PerIsolateData(); 103 V8PerIsolateData();
102 ~V8PerIsolateData(); 104 ~V8PerIsolateData();
103 105
104 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate Map; 106 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate Map;
105 DOMTemplateMap& currentDOMTemplateMap(); 107 DOMTemplateMap& currentDOMTemplateMap();
106 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateM ap&); 108 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateM ap&);
107 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateMap&); 109 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateMap&);
108 110
109 OwnPtr<gin::IsolateHolder> m_isolateHolder; 111 OwnPtr<gin::IsolateHolder> m_isolateHolder;
110 DOMTemplateMap m_domTemplateMapForMainWorld; 112 DOMTemplateMap m_domTemplateMapForMainWorld;
111 DOMTemplateMap m_domTemplateMapForNonMainWorld; 113 DOMTemplateMap m_domTemplateMapForNonMainWorld;
112 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; 114 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate;
113 OwnPtr<StringCache> m_stringCache; 115 OwnPtr<StringCache> m_stringCache;
114 OwnPtr<V8HiddenValue> m_hiddenValue; 116 OwnPtr<V8HiddenValue> m_hiddenValue;
115 ScopedPersistent<v8::Value> m_liveRoot; 117 ScopedPersistent<v8::Value> m_liveRoot;
118 RefPtr<ScriptState> m_scriptRegexpScriptState;
116 119
117 const char* m_previousSamplingState; 120 const char* m_previousSamplingState;
118 121
119 bool m_constructorMode; 122 bool m_constructorMode;
120 friend class ConstructorMode; 123 friend class ConstructorMode;
121 124
122 int m_recursionLevel; 125 int m_recursionLevel;
123 bool m_isHandlingRecursionLevelError; 126 bool m_isHandlingRecursionLevelError;
124 127
125 #if ENABLE(ASSERT) 128 #if ENABLE(ASSERT)
126 int m_internalScriptRecursionLevel; 129 int m_internalScriptRecursionLevel;
127 #endif 130 #endif
128 OwnPtr<GCEventData> m_gcEventData; 131 OwnPtr<GCEventData> m_gcEventData;
129 bool m_performingMicrotaskCheckpoint; 132 bool m_performingMicrotaskCheckpoint;
130 }; 133 };
131 134
132 } // namespace blink 135 } // namespace blink
133 136
134 #endif // V8PerIsolateData_h 137 #endif // V8PerIsolateData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698