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

Side by Side Diff: Source/bindings/tests/results/V8TestSpecialOperationsCustom.cpp

Issue 149993003: IDL compiler: [Custom=PropertyEnumerator] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698