OLD | NEW |
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 "allocation.h" | 8 #include "allocation.h" |
9 #include "v8globals.h" | 9 #include "v8globals.h" |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Handle<String> name, | 79 Handle<String> name, |
80 int* object_offset); | 80 int* object_offset); |
81 | 81 |
82 static Handle<AccessorInfo> MakeAccessor( | 82 static Handle<AccessorInfo> MakeAccessor( |
83 Isolate* isolate, | 83 Isolate* isolate, |
84 Handle<String> name, | 84 Handle<String> name, |
85 AccessorGetterCallback getter, | 85 AccessorGetterCallback getter, |
86 AccessorSetterCallback setter, | 86 AccessorSetterCallback setter, |
87 PropertyAttributes attributes); | 87 PropertyAttributes attributes); |
88 | 88 |
| 89 static Handle<ExecutableAccessorInfo> CloneAccessor( |
| 90 Isolate* isolate, |
| 91 Handle<ExecutableAccessorInfo> accessor); |
| 92 |
| 93 |
89 private: | 94 private: |
90 // Helper functions. | 95 // Helper functions. |
91 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); | 96 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); |
92 }; | 97 }; |
93 | 98 |
94 } } // namespace v8::internal | 99 } } // namespace v8::internal |
95 | 100 |
96 #endif // V8_ACCESSORS_H_ | 101 #endif // V8_ACCESSORS_H_ |
OLD | NEW |