| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 static Handle<AccessorInfo> MakeAccessor( | 91 static Handle<AccessorInfo> MakeAccessor( |
| 92 Isolate* isolate, | 92 Isolate* isolate, |
| 93 Handle<Name> name, | 93 Handle<Name> name, |
| 94 AccessorNameGetterCallback getter, | 94 AccessorNameGetterCallback getter, |
| 95 AccessorNameSetterCallback setter, | 95 AccessorNameSetterCallback setter, |
| 96 PropertyAttributes attributes); | 96 PropertyAttributes attributes); |
| 97 | 97 |
| 98 static Handle<ExecutableAccessorInfo> CloneAccessor( | 98 static Handle<ExecutableAccessorInfo> CloneAccessor( |
| 99 Isolate* isolate, | 99 Isolate* isolate, |
| 100 Handle<ExecutableAccessorInfo> accessor); | 100 Handle<ExecutableAccessorInfo> accessor); |
| 101 | |
| 102 | |
| 103 private: | |
| 104 // Helper functions. | |
| 105 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value); | |
| 106 }; | 101 }; |
| 107 | 102 |
| 108 } } // namespace v8::internal | 103 } } // namespace v8::internal |
| 109 | 104 |
| 110 #endif // V8_ACCESSORS_H_ | 105 #endif // V8_ACCESSORS_H_ |
| OLD | NEW |