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 24 matching lines...) Expand all Loading... |
35 #define ACCESSOR_DESCRIPTOR_LIST(V) \ | 35 #define ACCESSOR_DESCRIPTOR_LIST(V) \ |
36 V(FunctionPrototype) \ | 36 V(FunctionPrototype) \ |
37 V(FunctionLength) \ | 37 V(FunctionLength) \ |
38 V(FunctionName) \ | 38 V(FunctionName) \ |
39 V(FunctionArguments) \ | 39 V(FunctionArguments) \ |
40 V(FunctionCaller) \ | 40 V(FunctionCaller) \ |
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(ScriptLineOffset) \ | 46 V(ScriptLineOffset) \ |
46 V(ScriptColumnOffset) \ | 47 V(ScriptColumnOffset) \ |
47 V(ScriptType) \ | 48 V(ScriptType) \ |
48 V(ScriptLineEnds) \ | 49 V(ScriptLineEnds) \ |
49 V(ObjectPrototype) | 50 V(ObjectPrototype) |
50 | 51 |
51 // Accessors contains all predefined proxy accessors. | 52 // Accessors contains all predefined proxy accessors. |
52 | 53 |
53 class Accessors : public AllStatic { | 54 class Accessors : public AllStatic { |
54 public: | 55 public: |
(...skipping 17 matching lines...) Expand all Loading... |
72 private: | 73 private: |
73 // Accessor functions only used through the descriptor. | 74 // Accessor functions only used through the descriptor. |
74 static Object* FunctionGetLength(Object* object, void*); | 75 static Object* FunctionGetLength(Object* object, void*); |
75 static Object* FunctionGetName(Object* object, void*); | 76 static Object* FunctionGetName(Object* object, void*); |
76 static Object* FunctionGetArguments(Object* object, void*); | 77 static Object* FunctionGetArguments(Object* object, void*); |
77 static Object* FunctionGetCaller(Object* object, void*); | 78 static Object* FunctionGetCaller(Object* object, void*); |
78 static Object* ArraySetLength(JSObject* object, Object* value, void*); | 79 static Object* ArraySetLength(JSObject* object, Object* value, void*); |
79 static Object* ArrayGetLength(Object* object, void*); | 80 static Object* ArrayGetLength(Object* object, void*); |
80 static Object* StringGetLength(Object* object, void*); | 81 static Object* StringGetLength(Object* object, void*); |
81 static Object* ScriptGetName(Object* object, void*); | 82 static Object* ScriptGetName(Object* object, void*); |
| 83 static Object* ScriptGetId(Object* object, void*); |
82 static Object* ScriptGetSource(Object* object, void*); | 84 static Object* ScriptGetSource(Object* object, void*); |
83 static Object* ScriptGetLineOffset(Object* object, void*); | 85 static Object* ScriptGetLineOffset(Object* object, void*); |
84 static Object* ScriptGetColumnOffset(Object* object, void*); | 86 static Object* ScriptGetColumnOffset(Object* object, void*); |
85 static Object* ScriptGetType(Object* object, void*); | 87 static Object* ScriptGetType(Object* object, void*); |
86 static Object* ScriptGetLineEnds(Object* object, void*); | 88 static Object* ScriptGetLineEnds(Object* object, void*); |
87 static Object* ObjectGetPrototype(Object* receiver, void*); | 89 static Object* ObjectGetPrototype(Object* receiver, void*); |
88 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); | 90 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); |
89 | 91 |
90 // Helper functions. | 92 // Helper functions. |
91 static Object* FlattenNumber(Object* value); | 93 static Object* FlattenNumber(Object* value); |
92 static Object* IllegalSetter(JSObject*, Object*, void*); | 94 static Object* IllegalSetter(JSObject*, Object*, void*); |
93 static Object* IllegalGetAccessor(Object* object, void*); | 95 static Object* IllegalGetAccessor(Object* object, void*); |
94 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 96 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
95 }; | 97 }; |
96 | 98 |
97 } } // namespace v8::internal | 99 } } // namespace v8::internal |
98 | 100 |
99 #endif // V8_ACCESSORS_H_ | 101 #endif // V8_ACCESSORS_H_ |
OLD | NEW |