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 30 matching lines...) Expand all Loading... |
41 V(ArrayLength) \ | 41 V(ArrayLength) \ |
42 V(StringLength) \ | 42 V(StringLength) \ |
43 V(ScriptSource) \ | 43 V(ScriptSource) \ |
44 V(ScriptName) \ | 44 V(ScriptName) \ |
45 V(ScriptId) \ | 45 V(ScriptId) \ |
46 V(ScriptLineOffset) \ | 46 V(ScriptLineOffset) \ |
47 V(ScriptColumnOffset) \ | 47 V(ScriptColumnOffset) \ |
48 V(ScriptData) \ | 48 V(ScriptData) \ |
49 V(ScriptType) \ | 49 V(ScriptType) \ |
50 V(ScriptLineEnds) \ | 50 V(ScriptLineEnds) \ |
| 51 V(ScriptContextData) \ |
51 V(ObjectPrototype) | 52 V(ObjectPrototype) |
52 | 53 |
53 // Accessors contains all predefined proxy accessors. | 54 // Accessors contains all predefined proxy accessors. |
54 | 55 |
55 class Accessors : public AllStatic { | 56 class Accessors : public AllStatic { |
56 public: | 57 public: |
57 // Accessor descriptors. | 58 // Accessor descriptors. |
58 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ | 59 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ |
59 static const AccessorDescriptor name; | 60 static const AccessorDescriptor name; |
60 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) | 61 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) |
(...skipping 20 matching lines...) Expand all Loading... |
81 static Object* ArrayGetLength(Object* object, void*); | 82 static Object* ArrayGetLength(Object* object, void*); |
82 static Object* StringGetLength(Object* object, void*); | 83 static Object* StringGetLength(Object* object, void*); |
83 static Object* ScriptGetName(Object* object, void*); | 84 static Object* ScriptGetName(Object* object, void*); |
84 static Object* ScriptGetId(Object* object, void*); | 85 static Object* ScriptGetId(Object* object, void*); |
85 static Object* ScriptGetSource(Object* object, void*); | 86 static Object* ScriptGetSource(Object* object, void*); |
86 static Object* ScriptGetLineOffset(Object* object, void*); | 87 static Object* ScriptGetLineOffset(Object* object, void*); |
87 static Object* ScriptGetColumnOffset(Object* object, void*); | 88 static Object* ScriptGetColumnOffset(Object* object, void*); |
88 static Object* ScriptGetData(Object* object, void*); | 89 static Object* ScriptGetData(Object* object, void*); |
89 static Object* ScriptGetType(Object* object, void*); | 90 static Object* ScriptGetType(Object* object, void*); |
90 static Object* ScriptGetLineEnds(Object* object, void*); | 91 static Object* ScriptGetLineEnds(Object* object, void*); |
| 92 static Object* ScriptGetContextData(Object* object, void*); |
91 static Object* ObjectGetPrototype(Object* receiver, void*); | 93 static Object* ObjectGetPrototype(Object* receiver, void*); |
92 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); | 94 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); |
93 | 95 |
94 // Helper functions. | 96 // Helper functions. |
95 static Object* FlattenNumber(Object* value); | 97 static Object* FlattenNumber(Object* value); |
96 static Object* IllegalSetter(JSObject*, Object*, void*); | 98 static Object* IllegalSetter(JSObject*, Object*, void*); |
97 static Object* IllegalGetAccessor(Object* object, void*); | 99 static Object* IllegalGetAccessor(Object* object, void*); |
98 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 100 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
99 }; | 101 }; |
100 | 102 |
101 } } // namespace v8::internal | 103 } } // namespace v8::internal |
102 | 104 |
103 #endif // V8_ACCESSORS_H_ | 105 #endif // V8_ACCESSORS_H_ |
OLD | NEW |