Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/accessors.h

Issue 90003: Make it possible to add a user data object to each script compiled (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/accessors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(ScriptId) \
46 V(ScriptLineOffset) \ 46 V(ScriptLineOffset) \
47 V(ScriptColumnOffset) \ 47 V(ScriptColumnOffset) \
48 V(ScriptData) \
48 V(ScriptType) \ 49 V(ScriptType) \
49 V(ScriptLineEnds) \ 50 V(ScriptLineEnds) \
50 V(ObjectPrototype) 51 V(ObjectPrototype)
51 52
52 // Accessors contains all predefined proxy accessors. 53 // Accessors contains all predefined proxy accessors.
53 54
54 class Accessors : public AllStatic { 55 class Accessors : public AllStatic {
55 public: 56 public:
56 // Accessor descriptors. 57 // Accessor descriptors.
57 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ 58 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
(...skipping 19 matching lines...) Expand all
77 static Object* FunctionGetArguments(Object* object, void*); 78 static Object* FunctionGetArguments(Object* object, void*);
78 static Object* FunctionGetCaller(Object* object, void*); 79 static Object* FunctionGetCaller(Object* object, void*);
79 static Object* ArraySetLength(JSObject* object, Object* value, void*); 80 static Object* ArraySetLength(JSObject* object, Object* value, void*);
80 static Object* ArrayGetLength(Object* object, void*); 81 static Object* ArrayGetLength(Object* object, void*);
81 static Object* StringGetLength(Object* object, void*); 82 static Object* StringGetLength(Object* object, void*);
82 static Object* ScriptGetName(Object* object, void*); 83 static Object* ScriptGetName(Object* object, void*);
83 static Object* ScriptGetId(Object* object, void*); 84 static Object* ScriptGetId(Object* object, void*);
84 static Object* ScriptGetSource(Object* object, void*); 85 static Object* ScriptGetSource(Object* object, void*);
85 static Object* ScriptGetLineOffset(Object* object, void*); 86 static Object* ScriptGetLineOffset(Object* object, void*);
86 static Object* ScriptGetColumnOffset(Object* object, void*); 87 static Object* ScriptGetColumnOffset(Object* object, void*);
88 static Object* ScriptGetData(Object* object, void*);
87 static Object* ScriptGetType(Object* object, void*); 89 static Object* ScriptGetType(Object* object, void*);
88 static Object* ScriptGetLineEnds(Object* object, void*); 90 static Object* ScriptGetLineEnds(Object* object, void*);
89 static Object* ObjectGetPrototype(Object* receiver, void*); 91 static Object* ObjectGetPrototype(Object* receiver, void*);
90 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*); 92 static Object* ObjectSetPrototype(JSObject* receiver, Object* value, void*);
91 93
92 // Helper functions. 94 // Helper functions.
93 static Object* FlattenNumber(Object* value); 95 static Object* FlattenNumber(Object* value);
94 static Object* IllegalSetter(JSObject*, Object*, void*); 96 static Object* IllegalSetter(JSObject*, Object*, void*);
95 static Object* IllegalGetAccessor(Object* object, void*); 97 static Object* IllegalGetAccessor(Object* object, void*);
96 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*); 98 static Object* ReadOnlySetAccessor(JSObject*, Object* value, void*);
97 }; 99 };
98 100
99 } } // namespace v8::internal 101 } } // namespace v8::internal
100 102
101 #endif // V8_ACCESSORS_H_ 103 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698