Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 // Accessor functions called directly from the runtime system. | 80 // Accessor functions called directly from the runtime system. |
| 81 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, | 81 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, |
| 82 void*); | 82 void*); |
| 83 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, | 83 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, |
| 84 Object* value, | 84 Object* value, |
| 85 void*); | 85 void*); |
| 86 static MaybeObject* FunctionGetArguments(Object* object, void*); | 86 static MaybeObject* FunctionGetArguments(Object* object, void*); |
| 87 | 87 |
| 88 // Accessor infos. | |
| 89 static Handle<AccessorInfo> MakeModuleExport( | |
|
Michael Starzinger
2012/07/06 10:53:22
Let's name that "MakeModuleExportAccessor()"
rossberg
2012/07/06 15:39:28
Hm, I'm following the naming convention of the exi
| |
| 90 Handle<String> property, int index, PropertyAttributes attributes); | |
|
Michael Starzinger
2012/07/06 10:53:22
Rename "property" to "name" here.
rossberg
2012/07/06 15:39:28
Done.
| |
| 91 | |
| 88 private: | 92 private: |
| 89 // Accessor functions only used through the descriptor. | 93 // Accessor functions only used through the descriptor. |
| 90 static MaybeObject* FunctionGetLength(Object* object, void*); | 94 static MaybeObject* FunctionGetLength(Object* object, void*); |
| 91 static MaybeObject* FunctionGetName(Object* object, void*); | 95 static MaybeObject* FunctionGetName(Object* object, void*); |
| 92 static MaybeObject* FunctionGetCaller(Object* object, void*); | 96 static MaybeObject* FunctionGetCaller(Object* object, void*); |
| 93 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object, | 97 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object, |
| 94 Object* value, void*); | 98 Object* value, void*); |
| 95 static MaybeObject* ArrayGetLength(Object* object, void*); | 99 static MaybeObject* ArrayGetLength(Object* object, void*); |
| 96 static MaybeObject* StringGetLength(Object* object, void*); | 100 static MaybeObject* StringGetLength(Object* object, void*); |
| 97 static MaybeObject* ScriptGetName(Object* object, void*); | 101 static MaybeObject* ScriptGetName(Object* object, void*); |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 115 // Helper functions. | 119 // Helper functions. |
| 116 static Object* FlattenNumber(Object* value); | 120 static Object* FlattenNumber(Object* value); |
| 117 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); | 121 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); |
| 118 static Object* IllegalGetAccessor(Object* object, void*); | 122 static Object* IllegalGetAccessor(Object* object, void*); |
| 119 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 123 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
| 120 }; | 124 }; |
| 121 | 125 |
| 122 } } // namespace v8::internal | 126 } } // namespace v8::internal |
| 123 | 127 |
| 124 #endif // V8_ACCESSORS_H_ | 128 #endif // V8_ACCESSORS_H_ |
| OLD | NEW |