| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 V(ScriptId) \ | 49 V(ScriptId) \ |
| 50 V(ScriptLineOffset) \ | 50 V(ScriptLineOffset) \ |
| 51 V(ScriptColumnOffset) \ | 51 V(ScriptColumnOffset) \ |
| 52 V(ScriptData) \ | 52 V(ScriptData) \ |
| 53 V(ScriptType) \ | 53 V(ScriptType) \ |
| 54 V(ScriptCompilationType) \ | 54 V(ScriptCompilationType) \ |
| 55 V(ScriptLineEnds) \ | 55 V(ScriptLineEnds) \ |
| 56 V(ScriptContextData) \ | 56 V(ScriptContextData) \ |
| 57 V(ScriptEvalFromScript) \ | 57 V(ScriptEvalFromScript) \ |
| 58 V(ScriptEvalFromScriptPosition) \ | 58 V(ScriptEvalFromScriptPosition) \ |
| 59 V(ScriptEvalFromFunctionName) \ | 59 V(ScriptEvalFromFunctionName) |
| 60 V(ObjectPrototype) | |
| 61 | 60 |
| 62 // Accessors contains all predefined proxy accessors. | 61 // Accessors contains all predefined proxy accessors. |
| 63 | 62 |
| 64 class Accessors : public AllStatic { | 63 class Accessors : public AllStatic { |
| 65 public: | 64 public: |
| 66 // Accessor descriptors. | 65 // Accessor descriptors. |
| 67 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ | 66 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ |
| 68 static const AccessorDescriptor name; | 67 static const AccessorDescriptor name; |
| 69 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) | 68 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) |
| 70 #undef ACCESSOR_DESCRIPTOR_DECLARATION | 69 #undef ACCESSOR_DESCRIPTOR_DECLARATION |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 static MaybeObject* ScriptGetLineOffset(Object* object, void*); | 103 static MaybeObject* ScriptGetLineOffset(Object* object, void*); |
| 105 static MaybeObject* ScriptGetColumnOffset(Object* object, void*); | 104 static MaybeObject* ScriptGetColumnOffset(Object* object, void*); |
| 106 static MaybeObject* ScriptGetData(Object* object, void*); | 105 static MaybeObject* ScriptGetData(Object* object, void*); |
| 107 static MaybeObject* ScriptGetType(Object* object, void*); | 106 static MaybeObject* ScriptGetType(Object* object, void*); |
| 108 static MaybeObject* ScriptGetCompilationType(Object* object, void*); | 107 static MaybeObject* ScriptGetCompilationType(Object* object, void*); |
| 109 static MaybeObject* ScriptGetLineEnds(Object* object, void*); | 108 static MaybeObject* ScriptGetLineEnds(Object* object, void*); |
| 110 static MaybeObject* ScriptGetContextData(Object* object, void*); | 109 static MaybeObject* ScriptGetContextData(Object* object, void*); |
| 111 static MaybeObject* ScriptGetEvalFromScript(Object* object, void*); | 110 static MaybeObject* ScriptGetEvalFromScript(Object* object, void*); |
| 112 static MaybeObject* ScriptGetEvalFromScriptPosition(Object* object, void*); | 111 static MaybeObject* ScriptGetEvalFromScriptPosition(Object* object, void*); |
| 113 static MaybeObject* ScriptGetEvalFromFunctionName(Object* object, void*); | 112 static MaybeObject* ScriptGetEvalFromFunctionName(Object* object, void*); |
| 114 static MaybeObject* ObjectGetPrototype(Object* receiver, void*); | |
| 115 static MaybeObject* ObjectSetPrototype(JSObject* receiver, | |
| 116 Object* value, | |
| 117 void*); | |
| 118 | 113 |
| 119 // Helper functions. | 114 // Helper functions. |
| 120 static Object* FlattenNumber(Object* value); | 115 static Object* FlattenNumber(Object* value); |
| 121 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); | 116 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); |
| 122 static Object* IllegalGetAccessor(Object* object, void*); | 117 static Object* IllegalGetAccessor(Object* object, void*); |
| 123 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 118 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
| 124 }; | 119 }; |
| 125 | 120 |
| 126 } } // namespace v8::internal | 121 } } // namespace v8::internal |
| 127 | 122 |
| 128 #endif // V8_ACCESSORS_H_ | 123 #endif // V8_ACCESSORS_H_ |
| OLD | NEW |