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

Side by Side Diff: src/accessors.h

Issue 185653004: Experimental parser: merge to r19637 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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 | « src/a64/utils-a64.cc ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Handle<Object> value); 81 Handle<Object> value);
82 static Handle<Object> FunctionGetPrototype(Handle<JSFunction> object); 82 static Handle<Object> FunctionGetPrototype(Handle<JSFunction> object);
83 static Handle<Object> FunctionGetArguments(Handle<JSFunction> object); 83 static Handle<Object> FunctionGetArguments(Handle<JSFunction> object);
84 84
85 // Accessor infos. 85 // Accessor infos.
86 static Handle<AccessorInfo> MakeModuleExport( 86 static Handle<AccessorInfo> MakeModuleExport(
87 Handle<String> name, int index, PropertyAttributes attributes); 87 Handle<String> name, int index, PropertyAttributes attributes);
88 88
89 // Returns true for properties that are accessors to object fields. 89 // Returns true for properties that are accessors to object fields.
90 // If true, *object_offset contains offset of object field. 90 // If true, *object_offset contains offset of object field.
91 static bool IsJSObjectFieldAccessor( 91 template <class T>
92 Handle<Map> map, Handle<String> name, 92 static bool IsJSObjectFieldAccessor(typename T::TypeHandle type,
93 int* object_offset); 93 Handle<String> name,
94 int* object_offset);
94 95
95 96
96 private: 97 private:
97 // Accessor functions only used through the descriptor. 98 // Accessor functions only used through the descriptor.
98 static MaybeObject* FunctionSetPrototype(Isolate* isolate, 99 static MaybeObject* FunctionSetPrototype(Isolate* isolate,
99 JSObject* object, 100 JSObject* object,
100 Object*, 101 Object*,
101 void*); 102 void*);
102 static MaybeObject* FunctionGetPrototype(Isolate* isolate, 103 static MaybeObject* FunctionGetPrototype(Isolate* isolate,
103 Object* object, 104 Object* object,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*); 158 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*);
158 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate, 159 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate,
159 JSObject*, 160 JSObject*,
160 Object* value, 161 Object* value,
161 void*); 162 void*);
162 }; 163 };
163 164
164 } } // namespace v8::internal 165 } } // namespace v8::internal
165 166
166 #endif // V8_ACCESSORS_H_ 167 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « src/a64/utils-a64.cc ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698