OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 enum DescriptorId { | 69 enum DescriptorId { |
70 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ | 70 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ |
71 k##name, | 71 k##name, |
72 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) | 72 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) |
73 #undef ACCESSOR_DESCRIPTOR_DECLARATION | 73 #undef ACCESSOR_DESCRIPTOR_DECLARATION |
74 descriptorCount | 74 descriptorCount |
75 }; | 75 }; |
76 | 76 |
77 // Accessor functions called directly from the runtime system. | 77 // Accessor functions called directly from the runtime system. |
78 static Object* FunctionGetPrototype(Object* object, void*); | 78 NOIGNORE static Object* FunctionGetPrototype(Object* object, void*); |
79 static Object* FunctionSetPrototype(JSObject* object, Object* value, void*); | 79 NOIGNORE static Object* FunctionSetPrototype(JSObject* object, |
| 80 Object* value, |
| 81 void*); |
80 private: | 82 private: |
81 // Accessor functions only used through the descriptor. | 83 // Accessor functions only used through the descriptor. |
82 static Object* FunctionGetLength(Object* object, void*); | 84 static Object* FunctionGetLength(Object* object, void*); |
83 static Object* FunctionGetName(Object* object, void*); | 85 static Object* FunctionGetName(Object* object, void*); |
84 static Object* FunctionGetArguments(Object* object, void*); | 86 static Object* FunctionGetArguments(Object* object, void*); |
85 static Object* FunctionGetCaller(Object* object, void*); | 87 static Object* FunctionGetCaller(Object* object, void*); |
86 static Object* ArraySetLength(JSObject* object, Object* value, void*); | 88 static Object* ArraySetLength(JSObject* object, Object* value, void*); |
87 static Object* ArrayGetLength(Object* object, void*); | 89 static Object* ArrayGetLength(Object* object, void*); |
88 static Object* StringGetLength(Object* object, void*); | 90 static Object* StringGetLength(Object* object, void*); |
89 static Object* ScriptGetName(Object* object, void*); | 91 static Object* ScriptGetName(Object* object, void*); |
(...skipping 15 matching lines...) Expand all Loading... |
105 // Helper functions. | 107 // Helper functions. |
106 static Object* FlattenNumber(Object* value); | 108 static Object* FlattenNumber(Object* value); |
107 static Object* IllegalSetter(JSObject*, Object*, void*); | 109 static Object* IllegalSetter(JSObject*, Object*, void*); |
108 static Object* IllegalGetAccessor(Object* object, void*); | 110 static Object* IllegalGetAccessor(Object* object, void*); |
109 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 111 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
110 }; | 112 }; |
111 | 113 |
112 } } // namespace v8::internal | 114 } } // namespace v8::internal |
113 | 115 |
114 #endif // V8_ACCESSORS_H_ | 116 #endif // V8_ACCESSORS_H_ |
OLD | NEW |