| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 } | 920 } |
| 921 | 921 |
| 922 private: | 922 private: |
| 923 v8::Isolate* m_isolate; | 923 v8::Isolate* m_isolate; |
| 924 }; | 924 }; |
| 925 | 925 |
| 926 class V8ExecutionScope { | 926 class V8ExecutionScope { |
| 927 public: | 927 public: |
| 928 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*); | 928 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*); |
| 929 explicit V8ExecutionScope(v8::Isolate*); | 929 explicit V8ExecutionScope(v8::Isolate*); |
| 930 ScriptState* scriptState() const; |
| 931 v8::Isolate* isolate() const; |
| 930 ~V8ExecutionScope(); | 932 ~V8ExecutionScope(); |
| 931 | 933 |
| 932 private: | 934 private: |
| 933 v8::HandleScope m_handleScope; | 935 v8::HandleScope m_handleScope; |
| 934 v8::Context::Scope m_contextScope; | 936 v8::Context::Scope m_contextScope; |
| 935 RefPtr<ScriptState> m_scriptState; | 937 RefPtr<ScriptState> m_scriptState; |
| 936 }; | 938 }; |
| 937 | 939 |
| 938 } // namespace WebCore | 940 } // namespace WebCore |
| 939 | 941 |
| 940 #endif // V8Binding_h | 942 #endif // V8Binding_h |
| OLD | NEW |