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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #ifndef V8_ACCESSORS_H_ | 28 #ifndef V8_ACCESSORS_H_ |
29 #define V8_ACCESSORS_H_ | 29 #define V8_ACCESSORS_H_ |
30 | 30 |
31 namespace v8 { | 31 namespace v8 { |
32 namespace internal { | 32 namespace internal { |
33 | 33 |
34 // The list of accessor descriptors. This is a second-order macro | 34 // The list of accessor descriptors. This is a second-order macro |
35 // taking a macro to be applied to all accessor descriptor names. | 35 // taking a macro to be applied to all accessor descriptor names. |
36 #define ACCESSOR_DESCRIPTOR_LIST(V) \ | 36 #define ACCESSOR_DESCRIPTOR_LIST(V) \ |
37 V(FunctionPrototype) \ | 37 V(FunctionPrototype) \ |
38 V(FunctionLength) \ | 38 V(FunctionLength) \ |
39 V(FunctionName) \ | 39 V(FunctionName) \ |
40 V(FunctionArguments) \ | 40 V(FunctionArguments) \ |
41 V(FunctionCaller) \ | 41 V(FunctionCaller) \ |
42 V(ArrayLength) \ | 42 V(ArrayLength) \ |
43 V(StringLength) \ | 43 V(StringLength) \ |
44 V(ScriptSource) \ | 44 V(ScriptSource) \ |
45 V(ScriptName) \ | 45 V(ScriptName) \ |
46 V(ScriptId) \ | 46 V(ScriptId) \ |
47 V(ScriptLineOffset) \ | 47 V(ScriptLineOffset) \ |
48 V(ScriptColumnOffset) \ | 48 V(ScriptColumnOffset) \ |
49 V(ScriptData) \ | 49 V(ScriptData) \ |
50 V(ScriptType) \ | 50 V(ScriptType) \ |
51 V(ScriptLineEnds) \ | 51 V(ScriptCompilationType) \ |
52 V(ScriptContextData) \ | 52 V(ScriptLineEnds) \ |
| 53 V(ScriptContextData) \ |
| 54 V(ScriptEvalFromFunction) \ |
| 55 V(ScriptEvalFromPosition) \ |
53 V(ObjectPrototype) | 56 V(ObjectPrototype) |
54 | 57 |
55 // Accessors contains all predefined proxy accessors. | 58 // Accessors contains all predefined proxy accessors. |
56 | 59 |
57 class Accessors : public AllStatic { | 60 class Accessors : public AllStatic { |
58 public: | 61 public: |
59 // Accessor descriptors. | 62 // Accessor descriptors. |
60 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ | 63 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ |
61 static const AccessorDescriptor name; | 64 static const AccessorDescriptor name; |
62 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) | 65 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) |
(...skipping 19 matching lines...) Expand all Loading... |
82 static Object* ArraySetLength(JSObject* object, Object* value, void*); | 85 static Object* ArraySetLength(JSObject* object, Object* value, void*); |
83 static Object* ArrayGetLength(Object* object, void*); | 86 static Object* ArrayGetLength(Object* object, void*); |
84 static Object* StringGetLength(Object* object, void*); | 87 static Object* StringGetLength(Object* object, void*); |
85 static Object* ScriptGetName(Object* object, void*); | 88 static Object* ScriptGetName(Object* object, void*); |
86 static Object* ScriptGetId(Object* object, void*); | 89 static Object* ScriptGetId(Object* object, void*); |
87 static Object* ScriptGetSource(Object* object, void*); | 90 static Object* ScriptGetSource(Object* object, void*); |
88 static Object* ScriptGetLineOffset(Object* object, void*); | 91 static Object* ScriptGetLineOffset(Object* object, void*); |
89 static Object* ScriptGetColumnOffset(Object* object, void*); | 92 static Object* ScriptGetColumnOffset(Object* object, void*); |
90 static Object* ScriptGetData(Object* object, void*); | 93 static Object* ScriptGetData(Object* object, void*); |
91 static Object* ScriptGetType(Object* object, void*); | 94 static Object* ScriptGetType(Object* object, void*); |
| 95 static Object* ScriptGetCompilationType(Object* object, void*); |
92 static Object* ScriptGetLineEnds(Object* object, void*); | 96 static Object* ScriptGetLineEnds(Object* object, void*); |
93 static Object* ScriptGetContextData(Object* object, void*); | 97 static Object* ScriptGetContextData(Object* object, void*); |
| 98 static Object* ScriptGetEvalFromFunction(Object* object, void*); |
| 99 static Object* ScriptGetEvalFromPosition(Object* object, void*); |
94 static Object* ObjectGetPrototype(Object* receiver, void*); | 100 static Object* ObjectGetPrototype(Object* receiver, void*); |
95 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); | 101 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); |
96 | 102 |
97 // Helper functions. | 103 // Helper functions. |
98 static Object* FlattenNumber(Object* value); | 104 static Object* FlattenNumber(Object* value); |
99 static Object* IllegalSetter(JSObject*, Object*, void*); | 105 static Object* IllegalSetter(JSObject*, Object*, void*); |
100 static Object* IllegalGetAccessor(Object* object, void*); | 106 static Object* IllegalGetAccessor(Object* object, void*); |
101 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 107 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
102 }; | 108 }; |
103 | 109 |
104 } } // namespace v8::internal | 110 } } // namespace v8::internal |
105 | 111 |
106 #endif // V8_ACCESSORS_H_ | 112 #endif // V8_ACCESSORS_H_ |
OLD | NEW |