OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ | 72 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ |
73 k##name, | 73 k##name, |
74 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) | 74 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) |
75 #undef ACCESSOR_DESCRIPTOR_DECLARATION | 75 #undef ACCESSOR_DESCRIPTOR_DECLARATION |
76 descriptorCount | 76 descriptorCount |
77 }; | 77 }; |
78 | 78 |
79 // Accessor functions called directly from the runtime system. | 79 // Accessor functions called directly from the runtime system. |
80 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, | 80 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, |
81 void*); | 81 void*); |
| 82 static Handle<Object> FunctionGetPrototype(Handle<Object> object); |
| 83 |
82 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, | 84 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, |
83 Object* value, | 85 Object* value, |
84 void*); | 86 void*); |
85 static MaybeObject* FunctionGetArguments(Object* object, void*); | 87 static MaybeObject* FunctionGetArguments(Object* object, void*); |
86 | 88 |
87 // Accessor infos. | 89 // Accessor infos. |
88 static Handle<AccessorInfo> MakeModuleExport( | 90 static Handle<AccessorInfo> MakeModuleExport( |
89 Handle<String> name, int index, PropertyAttributes attributes); | 91 Handle<String> name, int index, PropertyAttributes attributes); |
90 | 92 |
91 private: | 93 private: |
(...skipping 22 matching lines...) Expand all Loading... |
114 // Helper functions. | 116 // Helper functions. |
115 static Object* FlattenNumber(Object* value); | 117 static Object* FlattenNumber(Object* value); |
116 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); | 118 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); |
117 static Object* IllegalGetAccessor(Object* object, void*); | 119 static Object* IllegalGetAccessor(Object* object, void*); |
118 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 120 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
119 }; | 121 }; |
120 | 122 |
121 } } // namespace v8::internal | 123 } } // namespace v8::internal |
122 | 124 |
123 #endif // V8_ACCESSORS_H_ | 125 #endif // V8_ACCESSORS_H_ |
OLD | NEW |