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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 CORE_EXPORT void moveEventListenerToNewWrapper(v8::Isolate*, v8::Local<v8::Objec
t>, EventListener* oldValue, v8::Local<v8::Value> newValue, int cacheIndex); | 1023 CORE_EXPORT void moveEventListenerToNewWrapper(v8::Isolate*, v8::Local<v8::Objec
t>, EventListener* oldValue, v8::Local<v8::Value> newValue, int cacheIndex); |
1024 | 1024 |
1025 // Result values for platform object 'deleter' methods, | 1025 // Result values for platform object 'deleter' methods, |
1026 // http://www.w3.org/TR/WebIDL/#delete | 1026 // http://www.w3.org/TR/WebIDL/#delete |
1027 enum DeleteResult { | 1027 enum DeleteResult { |
1028 DeleteSuccess, | 1028 DeleteSuccess, |
1029 DeleteReject, | 1029 DeleteReject, |
1030 DeleteUnknownProperty | 1030 DeleteUnknownProperty |
1031 }; | 1031 }; |
1032 | 1032 |
1033 class V8IsolateInterruptor : public BlinkGCInterruptor { | 1033 class V8IsolateInterruptor final : public BlinkGCInterruptor { |
1034 USING_FAST_MALLOC(V8IsolateInterruptor); | |
1035 public: | 1034 public: |
1036 explicit V8IsolateInterruptor(v8::Isolate* isolate) | 1035 explicit V8IsolateInterruptor(v8::Isolate* isolate) |
1037 : m_isolate(isolate) | 1036 : m_isolate(isolate) |
1038 { | 1037 { |
1039 } | 1038 } |
1040 | 1039 |
1041 static void onInterruptCallback(v8::Isolate* isolate, void* data) | 1040 static void onInterruptCallback(v8::Isolate* isolate, void* data) |
1042 { | 1041 { |
1043 V8IsolateInterruptor* interruptor = reinterpret_cast<V8IsolateInterrupto
r*>(data); | 1042 V8IsolateInterruptor* interruptor = reinterpret_cast<V8IsolateInterrupto
r*>(data); |
1044 interruptor->onInterrupted(); | 1043 interruptor->onInterrupted(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 | 1110 |
1112 template <size_t N> | 1111 template <size_t N> |
1113 v8::Local<v8::Value> v8CallExtraOrCrash(ScriptState* scriptState, const char* na
me, v8::Local<v8::Value>(&args)[N]) | 1112 v8::Local<v8::Value> v8CallExtraOrCrash(ScriptState* scriptState, const char* na
me, v8::Local<v8::Value>(&args)[N]) |
1114 { | 1113 { |
1115 return v8CallOrCrash(v8CallExtraHelper(scriptState, name, N, args)); | 1114 return v8CallOrCrash(v8CallExtraHelper(scriptState, name, N, args)); |
1116 } | 1115 } |
1117 | 1116 |
1118 } // namespace blink | 1117 } // namespace blink |
1119 | 1118 |
1120 #endif // V8Binding_h | 1119 #endif // V8Binding_h |
OLD | NEW |