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 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 void ensureInitialized() const; | 1037 void ensureInitialized() const; |
1038 | 1038 |
1039 mutable int m_scriptId; | 1039 mutable int m_scriptId; |
1040 mutable int m_lineNumber; | 1040 mutable int m_lineNumber; |
1041 mutable String m_resourceName; | 1041 mutable String m_resourceName; |
1042 mutable v8::Handle<v8::Function> m_function; | 1042 mutable v8::Handle<v8::Function> m_function; |
1043 }; | 1043 }; |
1044 | 1044 |
1045 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol
ate*, ExecutionContext*, v8::Handle<v8::Function>); | 1045 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol
ate*, ExecutionContext*, v8::Handle<v8::Function>); |
1046 | 1046 |
1047 class V8RethrowTryCatchScope final { | |
1048 public: | |
1049 explicit V8RethrowTryCatchScope(v8::TryCatch& block) : m_block(block) { } | |
1050 ~V8RethrowTryCatchScope() | |
1051 { | |
1052 // ReThrow() is a no-op if no exception has been caught, so always call. | |
1053 m_block.ReThrow(); | |
1054 } | |
1055 | |
1056 private: | |
1057 v8::TryCatch& m_block; | |
1058 }; | |
1059 | |
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 |