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

Side by Side Diff: src/accessors.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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
« no previous file with comments | « src/SConscript ('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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 k##name, 71 k##name,
72 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) 72 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION)
73 #undef ACCESSOR_DESCRIPTOR_DECLARATION 73 #undef ACCESSOR_DESCRIPTOR_DECLARATION
74 descriptorCount 74 descriptorCount
75 }; 75 };
76 76
77 // Accessor functions called directly from the runtime system. 77 // Accessor functions called directly from the runtime system.
78 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object, 78 MUST_USE_RESULT static MaybeObject* FunctionGetPrototype(Object* object,
79 void*); 79 void*);
80 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object, 80 MUST_USE_RESULT static MaybeObject* FunctionSetPrototype(JSObject* object,
81 Object* value, 81 Object* value,
82 void*); 82 void*);
83 static MaybeObject* FunctionGetArguments(Object* object, void*);
84
83 private: 85 private:
84 // Accessor functions only used through the descriptor. 86 // Accessor functions only used through the descriptor.
85 static MaybeObject* FunctionGetLength(Object* object, void*); 87 static MaybeObject* FunctionGetLength(Object* object, void*);
86 static MaybeObject* FunctionGetName(Object* object, void*); 88 static MaybeObject* FunctionGetName(Object* object, void*);
87 static MaybeObject* FunctionGetArguments(Object* object, void*);
88 static MaybeObject* FunctionGetCaller(Object* object, void*); 89 static MaybeObject* FunctionGetCaller(Object* object, void*);
89 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object, 90 MUST_USE_RESULT static MaybeObject* ArraySetLength(JSObject* object,
90 Object* value, void*); 91 Object* value, void*);
91 static MaybeObject* ArrayGetLength(Object* object, void*); 92 static MaybeObject* ArrayGetLength(Object* object, void*);
92 static MaybeObject* StringGetLength(Object* object, void*); 93 static MaybeObject* StringGetLength(Object* object, void*);
93 static MaybeObject* ScriptGetName(Object* object, void*); 94 static MaybeObject* ScriptGetName(Object* object, void*);
94 static MaybeObject* ScriptGetId(Object* object, void*); 95 static MaybeObject* ScriptGetId(Object* object, void*);
95 static MaybeObject* ScriptGetSource(Object* object, void*); 96 static MaybeObject* ScriptGetSource(Object* object, void*);
96 static MaybeObject* ScriptGetLineOffset(Object* object, void*); 97 static MaybeObject* ScriptGetLineOffset(Object* object, void*);
97 static MaybeObject* ScriptGetColumnOffset(Object* object, void*); 98 static MaybeObject* ScriptGetColumnOffset(Object* object, void*);
(...skipping 13 matching lines...) Expand all
111 // Helper functions. 112 // Helper functions.
112 static Object* FlattenNumber(Object* value); 113 static Object* FlattenNumber(Object* value);
113 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); 114 static MaybeObject* IllegalSetter(JSObject*, Object*, void*);
114 static Object* IllegalGetAccessor(Object* object, void*); 115 static Object* IllegalGetAccessor(Object* object, void*);
115 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); 116 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*);
116 }; 117 };
117 118
118 } } // namespace v8::internal 119 } } // namespace v8::internal
119 120
120 #endif // V8_ACCESSORS_H_ 121 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698