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 27 matching lines...) Expand all Loading... |
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(ScriptLineOffset) \ | 45 V(ScriptLineOffset) \ |
46 V(ScriptColumnOffset) \ | 46 V(ScriptColumnOffset) \ |
47 V(ScriptType) \ | 47 V(ScriptType) \ |
| 48 V(ScriptLineEnds) \ |
48 V(ObjectPrototype) | 49 V(ObjectPrototype) |
49 | 50 |
50 // Accessors contains all predefined proxy accessors. | 51 // Accessors contains all predefined proxy accessors. |
51 | 52 |
52 class Accessors : public AllStatic { | 53 class Accessors : public AllStatic { |
53 public: | 54 public: |
54 // Accessor descriptors. | 55 // Accessor descriptors. |
55 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ | 56 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ |
56 static const AccessorDescriptor name; | 57 static const AccessorDescriptor name; |
57 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) | 58 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) |
(...skipping 17 matching lines...) Expand all Loading... |
75 static Object* FunctionGetArguments(Object* object, void*); | 76 static Object* FunctionGetArguments(Object* object, void*); |
76 static Object* FunctionGetCaller(Object* object, void*); | 77 static Object* FunctionGetCaller(Object* object, void*); |
77 static Object* ArraySetLength(JSObject* object, Object* value, void*); | 78 static Object* ArraySetLength(JSObject* object, Object* value, void*); |
78 static Object* ArrayGetLength(Object* object, void*); | 79 static Object* ArrayGetLength(Object* object, void*); |
79 static Object* StringGetLength(Object* object, void*); | 80 static Object* StringGetLength(Object* object, void*); |
80 static Object* ScriptGetName(Object* object, void*); | 81 static Object* ScriptGetName(Object* object, void*); |
81 static Object* ScriptGetSource(Object* object, void*); | 82 static Object* ScriptGetSource(Object* object, void*); |
82 static Object* ScriptGetLineOffset(Object* object, void*); | 83 static Object* ScriptGetLineOffset(Object* object, void*); |
83 static Object* ScriptGetColumnOffset(Object* object, void*); | 84 static Object* ScriptGetColumnOffset(Object* object, void*); |
84 static Object* ScriptGetType(Object* object, void*); | 85 static Object* ScriptGetType(Object* object, void*); |
| 86 static Object* ScriptGetLineEnds(Object* object, void*); |
85 static Object* ObjectGetPrototype(Object* receiver, void*); | 87 static Object* ObjectGetPrototype(Object* receiver, void*); |
86 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); | 88 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); |
87 | 89 |
88 // Helper functions. | 90 // Helper functions. |
89 static Object* FlattenNumber(Object* value); | 91 static Object* FlattenNumber(Object* value); |
90 static Object* IllegalSetter(JSObject*, Object*, void*); | 92 static Object* IllegalSetter(JSObject*, Object*, void*); |
91 static Object* IllegalGetAccessor(Object* object, void*); | 93 static Object* IllegalGetAccessor(Object* object, void*); |
92 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); | 94 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); |
93 }; | 95 }; |
94 | 96 |
95 } } // namespace v8::internal | 97 } } // namespace v8::internal |
96 | 98 |
97 #endif // V8_ACCESSORS_H_ | 99 #endif // V8_ACCESSORS_H_ |
OLD | NEW |