| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 v8::Local<v8::Object> prototypeForType(const WrapperTypeInfo*); | 86 v8::Local<v8::Object> prototypeForType(const WrapperTypeInfo*); |
| 87 | 87 |
| 88 V8NPObjectMap* v8NPObjectMap() { return &m_v8NPObjectMap; } | 88 V8NPObjectMap* v8NPObjectMap() { return &m_v8NPObjectMap; } |
| 89 | 89 |
| 90 void addCustomElementBinding(CustomElementDefinition*, PassOwnPtr<CustomElem
entBinding>); | 90 void addCustomElementBinding(CustomElementDefinition*, PassOwnPtr<CustomElem
entBinding>); |
| 91 | 91 |
| 92 V8DOMActivityLogger* activityLogger() const { return m_activityLogger; } | 92 V8DOMActivityLogger* activityLogger() const { return m_activityLogger; } |
| 93 void setActivityLogger(V8DOMActivityLogger* activityLogger) { m_activityLogg
er = activityLogger; } | 93 void setActivityLogger(V8DOMActivityLogger* activityLogger) { m_activityLogg
er = activityLogger; } |
| 94 | 94 |
| 95 v8::Handle<v8::Value> compiledPrivateScript(String); | 95 v8::Local<v8::Value> compiledPrivateScript(String); |
| 96 void setCompiledPrivateScript(String, v8::Handle<v8::Value>); | 96 void setCompiledPrivateScript(String, v8::Local<v8::Value>); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 V8PerContextData(v8::Local<v8::Context>); | 99 V8PerContextData(v8::Local<v8::Context>); |
| 100 | 100 |
| 101 v8::Local<v8::Object> createWrapperFromCacheSlowCase(const WrapperTypeInfo*)
; | 101 v8::Local<v8::Object> createWrapperFromCacheSlowCase(const WrapperTypeInfo*)
; |
| 102 v8::Local<v8::Function> constructorForTypeSlowCase(const WrapperTypeInfo*); | 102 v8::Local<v8::Function> constructorForTypeSlowCase(const WrapperTypeInfo*); |
| 103 | 103 |
| 104 v8::Isolate* m_isolate; | 104 v8::Isolate* m_isolate; |
| 105 | 105 |
| 106 // For each possible type of wrapper, we keep a boilerplate object. | 106 // For each possible type of wrapper, we keep a boilerplate object. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 123 | 123 |
| 124 // This is owned by a static hash map in V8DOMActivityLogger. | 124 // This is owned by a static hash map in V8DOMActivityLogger. |
| 125 V8DOMActivityLogger* m_activityLogger; | 125 V8DOMActivityLogger* m_activityLogger; |
| 126 | 126 |
| 127 V8GlobalValueMap<String, v8::Value, v8::kNotWeak> m_compiledPrivateScript; | 127 V8GlobalValueMap<String, v8::Value, v8::kNotWeak> m_compiledPrivateScript; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace blink | 130 } // namespace blink |
| 131 | 131 |
| 132 #endif // V8PerContextData_h | 132 #endif // V8PerContextData_h |
| OLD | NEW |