| 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 5209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5220 | 5220 |
| 5221 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 5221 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 5222 { | 5222 { |
| 5223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); | 5223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); |
| 5224 TestObjV8Internal::indexedPropertyGetter(index, info); | 5224 TestObjV8Internal::indexedPropertyGetter(index, info); |
| 5225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5226 } | 5226 } |
| 5227 | 5227 |
| 5228 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 5228 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 5229 { | 5229 { |
| 5230 if (info.Holder()->HasRealNamedProperty(name)) |
| 5231 return; |
| 5230 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 5232 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
| 5231 return; | 5233 return; |
| 5232 if (info.Holder()->HasRealNamedCallbackProperty(name)) | |
| 5233 return; | |
| 5234 if (info.Holder()->HasRealNamedProperty(name)) | |
| 5235 return; | |
| 5236 | 5234 |
| 5237 TestObj* collection = V8TestObject::toNative(info.Holder()); | 5235 TestObj* collection = V8TestObject::toNative(info.Holder()); |
| 5238 AtomicString propertyName = toCoreAtomicString(name); | 5236 AtomicString propertyName = toCoreAtomicString(name); |
| 5239 String element = collection->anonymousNamedGetter(propertyName); | 5237 String element = collection->anonymousNamedGetter(propertyName); |
| 5240 if (element.isNull()) | 5238 if (element.isNull()) |
| 5241 return; | 5239 return; |
| 5242 v8SetReturnValueString(info, element, info.GetIsolate()); | 5240 v8SetReturnValueString(info, element, info.GetIsolate()); |
| 5243 } | 5241 } |
| 5244 | 5242 |
| 5245 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 5243 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5604 fromInternalPointer(object)->deref(); | 5602 fromInternalPointer(object)->deref(); |
| 5605 } | 5603 } |
| 5606 | 5604 |
| 5607 template<> | 5605 template<> |
| 5608 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 5606 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
| 5609 { | 5607 { |
| 5610 return toV8(impl, creationContext, isolate); | 5608 return toV8(impl, creationContext, isolate); |
| 5611 } | 5609 } |
| 5612 | 5610 |
| 5613 } // namespace WebCore | 5611 } // namespace WebCore |
| OLD | NEW |