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

Unified Diff: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md

Issue 2335203006: Add [CachedAccessor] attribute to cache (almost) constant accessors (window.document). (Closed)
Patch Set: Pre-review nits Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
diff --git a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
index 13113cbc5804e70db598dbf67d53845481232e63..d3f88224727f14f69ebf5db6a9cd3e1cae60175c 100644
--- a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
+++ b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
@@ -1573,6 +1573,20 @@ v8::experimental::FastAccessorBuilder* V8Node::XXXAttributeGetterBuilder(v8::Iso
```
+
+### [StoreInField] _(a)_
haraken 2016/09/15 09:26:10 [CacheAttributeGetterResult] ? (Given that an ext
+
+Summary: Caches invariable accessors to a private property. Private property name is automatically generated e.g. "Class#attribute".
jochen (gone - plz use gerrit) 2016/09/15 08:20:51 hum, that sounds like there'd be some automatic ca
+
+
+*** note
+Useful for performance critical scenarios, where the accessor does little or none computation at all (peek a field), removing the calling overhead.
+Calls to the getter will be translated into a faster property load.
+***
+
+Usage: `[StoreInField]` takes no arguments, can be specified on attributes.
+
+
## Discouraged Blink-specific IDL Extended Attributes
These extended attributes are _discouraged_ - they are not deprecated, but they should be avoided and removed if possible.

Powered by Google App Engine
This is Rietveld 408576698