| 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 | 992 |
| 993 virtual void requestInterrupt() override | 993 virtual void requestInterrupt() override |
| 994 { | 994 { |
| 995 m_isolate->RequestInterrupt(&onInterruptCallback, this); | 995 m_isolate->RequestInterrupt(&onInterruptCallback, this); |
| 996 } | 996 } |
| 997 | 997 |
| 998 private: | 998 private: |
| 999 v8::Isolate* m_isolate; | 999 v8::Isolate* m_isolate; |
| 1000 }; | 1000 }; |
| 1001 | 1001 |
| 1002 class V8TestingScope { | |
| 1003 public: | |
| 1004 explicit V8TestingScope(v8::Isolate*); | |
| 1005 ScriptState* scriptState() const; | |
| 1006 v8::Isolate* isolate() const; | |
| 1007 ~V8TestingScope(); | |
| 1008 | |
| 1009 private: | |
| 1010 v8::HandleScope m_handleScope; | |
| 1011 v8::Context::Scope m_contextScope; | |
| 1012 RefPtr<ScriptState> m_scriptState; | |
| 1013 }; | |
| 1014 | |
| 1015 class DevToolsFunctionInfo final { | 1002 class DevToolsFunctionInfo final { |
| 1016 public: | 1003 public: |
| 1017 explicit DevToolsFunctionInfo(v8::Handle<v8::Function>& function) | 1004 explicit DevToolsFunctionInfo(v8::Handle<v8::Function>& function) |
| 1018 : m_scriptId(0) | 1005 : m_scriptId(0) |
| 1019 , m_lineNumber(1) | 1006 , m_lineNumber(1) |
| 1020 , m_function(function) | 1007 , m_function(function) |
| 1021 { | 1008 { |
| 1022 ASSERT(!m_function.IsEmpty()); | 1009 ASSERT(!m_function.IsEmpty()); |
| 1023 } | 1010 } |
| 1024 | 1011 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 | 1046 |
| 1060 // Callback functions used by generated code. | 1047 // Callback functions used by generated code. |
| 1061 void v8ConstructorAttributeGetterAsProperty(v8::Local<v8::Name> propertyName, co
nst v8::PropertyCallbackInfo<v8::Value>&); | 1048 void v8ConstructorAttributeGetterAsProperty(v8::Local<v8::Name> propertyName, co
nst v8::PropertyCallbackInfo<v8::Value>&); |
| 1062 void v8ConstructorAttributeGetterAsAccessor(const v8::FunctionCallbackInfo<v8::V
alue>&); | 1049 void v8ConstructorAttributeGetterAsAccessor(const v8::FunctionCallbackInfo<v8::V
alue>&); |
| 1063 | 1050 |
| 1064 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso
late*); | 1051 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso
late*); |
| 1065 | 1052 |
| 1066 } // namespace blink | 1053 } // namespace blink |
| 1067 | 1054 |
| 1068 #endif // V8Binding_h | 1055 #endif // V8Binding_h |
| OLD | NEW |