| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 static Handle<Object> FunctionGetPrototype(Handle<JSFunction> object); | 82 static Handle<Object> FunctionGetPrototype(Handle<JSFunction> object); |
| 83 static Handle<Object> FunctionGetArguments(Handle<JSFunction> object); | 83 static Handle<Object> FunctionGetArguments(Handle<JSFunction> object); |
| 84 | 84 |
| 85 // Accessor infos. | 85 // Accessor infos. |
| 86 static Handle<AccessorInfo> MakeModuleExport( | 86 static Handle<AccessorInfo> MakeModuleExport( |
| 87 Handle<String> name, int index, PropertyAttributes attributes); | 87 Handle<String> name, int index, PropertyAttributes attributes); |
| 88 | 88 |
| 89 // Returns true for properties that are accessors to object fields. | 89 // Returns true for properties that are accessors to object fields. |
| 90 // If true, *object_offset contains offset of object field. | 90 // If true, *object_offset contains offset of object field. |
| 91 static bool IsJSObjectFieldAccessor( | 91 static bool IsJSObjectFieldAccessor( |
| 92 Handle<Map> map, Handle<String> name, | 92 Handle<HeapType> map, Handle<String> name, int* object_offset); |
| 93 int* object_offset); | |
| 94 | 93 |
| 95 | 94 |
| 96 private: | 95 private: |
| 97 // Accessor functions only used through the descriptor. | 96 // Accessor functions only used through the descriptor. |
| 98 static MaybeObject* FunctionSetPrototype(Isolate* isolate, | 97 static MaybeObject* FunctionSetPrototype(Isolate* isolate, |
| 99 JSObject* object, | 98 JSObject* object, |
| 100 Object*, | 99 Object*, |
| 101 void*); | 100 void*); |
| 102 static MaybeObject* FunctionGetPrototype(Isolate* isolate, | 101 static MaybeObject* FunctionGetPrototype(Isolate* isolate, |
| 103 Object* object, | 102 Object* object, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*); | 156 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*); |
| 158 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate, | 157 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate, |
| 159 JSObject*, | 158 JSObject*, |
| 160 Object* value, | 159 Object* value, |
| 161 void*); | 160 void*); |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 } } // namespace v8::internal | 163 } } // namespace v8::internal |
| 165 | 164 |
| 166 #endif // V8_ACCESSORS_H_ | 165 #endif // V8_ACCESSORS_H_ |
| OLD | NEW |