| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, | 78 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, |
| 79 void*); | 79 void*); |
| 80 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, | 80 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, |
| 81 Object* value, | 81 Object* value, |
| 82 void*); | 82 void*); |
| 83 static MaybeObject* FunctionGetArguments(Object* object, void*); |
| 84 |
| 83 private: | 85 private: |
| 84 // Accessor functions only used through the descriptor. | 86 // Accessor functions only used through the descriptor. |
| 85 static MaybeObject* FunctionGetLength(Object* object, void*); | 87 static MaybeObject* FunctionGetLength(Object* object, void*); |
| 86 static MaybeObject* FunctionGetName(Object* object, void*); | 88 static MaybeObject* FunctionGetName(Object* object, void*); |
| 87 static MaybeObject* FunctionGetArguments(Object* object, void*); | |
| 88 static MaybeObject* FunctionGetCaller(Object* object, void*); | 89 static MaybeObject* FunctionGetCaller(Object* object, void*); |
| 89 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object, | 90 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object, |
| 90 Object* value, void*); | 91 Object* value, void*); |
| 91 static MaybeObject* ArrayGetLength(Object* object, void*); | 92 static MaybeObject* ArrayGetLength(Object* object, void*); |
| 92 static MaybeObject* StringGetLength(Object* object, void*); | 93 static MaybeObject* StringGetLength(Object* object, void*); |
| 93 static MaybeObject* ScriptGetName(Object* object, void*); | 94 static MaybeObject* ScriptGetName(Object* object, void*); |
| 94 static MaybeObject* ScriptGetId(Object* object, void*); | 95 static MaybeObject* ScriptGetId(Object* object, void*); |
| 95 static MaybeObject* ScriptGetSource(Object* object, void*); | 96 static MaybeObject* ScriptGetSource(Object* object, void*); |
| 96 static MaybeObject* ScriptGetLineOffset(Object* object, void*); | 97 static MaybeObject* ScriptGetLineOffset(Object* object, void*); |
| 97 static MaybeObject* ScriptGetColumnOffset(Object* object, void*); | 98 static MaybeObject* ScriptGetColumnOffset(Object* object, void*); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 111 // Helper functions. | 112 // Helper functions. |
| 112 static Object* FlattenNumber(Object* value); | 113 static Object* FlattenNumber(Object* value); |
| 113 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); | 114 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); |
| 114 static Object* IllegalGetAccessor(Object* object, void*); | 115 static Object* IllegalGetAccessor(Object* object, void*); |
| 115 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 116 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } } // namespace v8::internal | 119 } } // namespace v8::internal |
| 119 | 120 |
| 120 #endif // V8_ACCESSORS_H_ | 121 #endif // V8_ACCESSORS_H_ |
| OLD | NEW |