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

Side by Side Diff: src/accessors.h

Issue 2449783006: Add a native data property that replaces itself with a real data property (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « include/v8.h ('k') | src/accessors.cc » ('j') | src/accessors.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ACCESSORS_H_ 5 #ifndef V8_ACCESSORS_H_
6 #define V8_ACCESSORS_H_ 6 #define V8_ACCESSORS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // set a (boolean) return value. The setter should roughly follow the same 107 // set a (boolean) return value. The setter should roughly follow the same
108 // conventions as many of the internal methods in objects.cc: 108 // conventions as many of the internal methods in objects.cc:
109 // - The return value is unset iff there was an exception. 109 // - The return value is unset iff there was an exception.
110 // - If the ShouldThrow argument is true, the return value must not be false. 110 // - If the ShouldThrow argument is true, the return value must not be false.
111 typedef void (*AccessorNameBooleanSetterCallback)( 111 typedef void (*AccessorNameBooleanSetterCallback)(
112 Local<v8::Name> property, Local<v8::Value> value, 112 Local<v8::Name> property, Local<v8::Value> value,
113 const PropertyCallbackInfo<v8::Boolean>& info); 113 const PropertyCallbackInfo<v8::Boolean>& info);
114 114
115 static Handle<AccessorInfo> MakeAccessor( 115 static Handle<AccessorInfo> MakeAccessor(
116 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter, 116 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter,
117 AccessorNameBooleanSetterCallback setter, PropertyAttributes attributes); 117 AccessorNameBooleanSetterCallback setter, PropertyAttributes attributes,
118 bool replace_on_access);
118 }; 119 };
119 120
120 } // namespace internal 121 } // namespace internal
121 } // namespace v8 122 } // namespace v8
122 123
123 #endif // V8_ACCESSORS_H_ 124 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/accessors.cc » ('j') | src/accessors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698