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

Unified Diff: include/v8.h

Issue 697603002: Optimized nodeType dom binding by removing HandleScope and the preparation of ordinary c function c… (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | src/api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index e783727c2db5ad7310136342d1aa9a55cb8f8dc1..c13375c930ad52a5129c20abf51e5b37a6ee1a32 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -64,6 +64,7 @@
*/
namespace v8 {
+class Accessor;
class AccessorSignature;
class Array;
class Boolean;
@@ -3801,6 +3802,15 @@ class V8_EXPORT ObjectTemplate : public Template {
PropertyAttribute attribute = None,
Handle<AccessorSignature> signature =
Handle<AccessorSignature>());
+ Local<Accessor> SetAccessorEx(Handle<String> name,
+ AccessorGetterCallback getter,
+ AccessorSetterCallback setter = 0,
+ Handle<Value> data = Handle<Value>(),
+ AccessControl settings = DEFAULT,
+ PropertyAttribute attribute = None,
+ Handle<AccessorSignature> signature =
+ Handle<AccessorSignature>());
+
void SetAccessor(Handle<Name> name,
AccessorNameGetterCallback getter,
AccessorNameSetterCallback setter = 0,
@@ -3945,6 +3955,18 @@ class V8_EXPORT AccessorSignature : public Data {
AccessorSignature();
};
+class V8_EXPORT Accessor : public Data {
+ public:
+ enum AccessorOptimizeLevel {
+ kOptimizeNone,
+ kOptimizeInline,
+ kOptimizeArguments,
+ };
+
+ void setOptimizeLevel(AccessorOptimizeLevel jit = kOptimizeNone);
+ private:
+ Accessor();
+};
class V8_EXPORT DeclaredAccessorDescriptor : public Data {
private:
« no previous file with comments | « no previous file | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698