| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 101 } | 101 } |
| 102 | 102 |
| 103 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 103 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 104 { | 104 { |
| 105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 106 V8TestSpecialOperationsCustom::namedPropertySetterCustom(name, jsValue, info
); | 106 V8TestSpecialOperationsCustom::namedPropertySetterCustom(name, jsValue, info
); |
| 107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 108 } | 108 } |
| 109 | 109 |
| 110 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Integer>& info) |
| 111 { |
| 112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 113 V8TestSpecialOperationsCustom::namedPropertyQueryCustom(name, info); |
| 114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 115 } |
| 116 |
| 110 static void namedPropertyDeleterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Boolean>& info) | 117 static void namedPropertyDeleterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Boolean>& info) |
| 111 { | 118 { |
| 112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 113 V8TestSpecialOperationsCustom::namedPropertyDeleterCustom(name, info); | 120 V8TestSpecialOperationsCustom::namedPropertyDeleterCustom(name, info); |
| 114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 115 } | 122 } |
| 116 | 123 |
| 117 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Integer>& info) | |
| 118 { | |
| 119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | |
| 120 V8TestSpecialOperationsCustom::namedPropertyQueryCustom(name, info); | |
| 121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
| 122 } | |
| 123 | |
| 124 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 124 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
| 125 { | 125 { |
| 126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
| 127 V8TestSpecialOperationsCustom::namedPropertyEnumeratorCustom(info); | 127 V8TestSpecialOperationsCustom::namedPropertyEnumeratorCustom(info); |
| 128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace TestSpecialOperationsCustomV8Internal | 131 } // namespace TestSpecialOperationsCustomV8Internal |
| 132 | 132 |
| 133 static void configureV8TestSpecialOperationsCustomTemplate(v8::Handle<v8::Functi
onTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorl
dType) | 133 static void configureV8TestSpecialOperationsCustomTemplate(v8::Handle<v8::Functi
onTemplate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorl
dType) |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 fromInternalPointer(object)->deref(); | 195 fromInternalPointer(object)->deref(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 template<> | 198 template<> |
| 199 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsCustom* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 199 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsCustom* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
| 200 { | 200 { |
| 201 return toV8(impl, creationContext, isolate); | 201 return toV8(impl, creationContext, isolate); |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace WebCore | 204 } // namespace WebCore |
| OLD | NEW |