Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 1609943003: Make platform/heap to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 CORE_EXPORT void moveEventListenerToNewWrapper(v8::Isolate*, v8::Local<v8::Objec t>, EventListener* oldValue, v8::Local<v8::Value> newValue, int cacheIndex); 1022 CORE_EXPORT void moveEventListenerToNewWrapper(v8::Isolate*, v8::Local<v8::Objec t>, EventListener* oldValue, v8::Local<v8::Value> newValue, int cacheIndex);
1023 1023
1024 // Result values for platform object 'deleter' methods, 1024 // Result values for platform object 'deleter' methods,
1025 // http://www.w3.org/TR/WebIDL/#delete 1025 // http://www.w3.org/TR/WebIDL/#delete
1026 enum DeleteResult { 1026 enum DeleteResult {
1027 DeleteSuccess, 1027 DeleteSuccess,
1028 DeleteReject, 1028 DeleteReject,
1029 DeleteUnknownProperty 1029 DeleteUnknownProperty
1030 }; 1030 };
1031 1031
1032 class V8IsolateInterruptor : public BlinkGCInterruptor { 1032 class V8IsolateInterruptor final : public BlinkGCInterruptor {
1033 USING_FAST_MALLOC(V8IsolateInterruptor);
1034 public: 1033 public:
1035 explicit V8IsolateInterruptor(v8::Isolate* isolate) 1034 explicit V8IsolateInterruptor(v8::Isolate* isolate)
1036 : m_isolate(isolate) 1035 : m_isolate(isolate)
1037 { 1036 {
1038 } 1037 }
1039 1038
1040 static void onInterruptCallback(v8::Isolate* isolate, void* data) 1039 static void onInterruptCallback(v8::Isolate* isolate, void* data)
1041 { 1040 {
1042 V8IsolateInterruptor* interruptor = reinterpret_cast<V8IsolateInterrupto r*>(data); 1041 V8IsolateInterruptor* interruptor = reinterpret_cast<V8IsolateInterrupto r*>(data);
1043 interruptor->onInterrupted(); 1042 interruptor->onInterrupted();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol ate*, ExecutionContext*, v8::Local<v8::Function>); 1085 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(v8::Isol ate*, ExecutionContext*, v8::Local<v8::Function>);
1087 1086
1088 // Callback functions used by generated code. 1087 // Callback functions used by generated code.
1089 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>&); 1088 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>&);
1090 1089
1091 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*); 1090 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*);
1092 1091
1093 } // namespace blink 1092 } // namespace blink
1094 1093
1095 #endif // V8Binding_h 1094 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698