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

Side by Side Diff: include/v8.h

Issue 598020: Refactor prototype setting code and expose SetPrototype to public V8 API. (Closed)
Patch Set: Next round of Mad's comments Created 10 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 | « no previous file | 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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 Local<Array> GetPropertyNames(); 1190 Local<Array> GetPropertyNames();
1191 1191
1192 /** 1192 /**
1193 * Get the prototype object. This does not skip objects marked to 1193 * Get the prototype object. This does not skip objects marked to
1194 * be skipped by __proto__ and it does not consult the security 1194 * be skipped by __proto__ and it does not consult the security
1195 * handler. 1195 * handler.
1196 */ 1196 */
1197 Local<Value> GetPrototype(); 1197 Local<Value> GetPrototype();
1198 1198
1199 /** 1199 /**
1200 * Set the prototype object. This does not skip objects marked to
1201 * be skipped by __proto__ and it does not consult the security
1202 * handler.
1203 */
1204 bool SetPrototype(Handle<Value> prototype);
1205
1206 /**
1200 * Finds an instance of the given function template in the prototype 1207 * Finds an instance of the given function template in the prototype
1201 * chain. 1208 * chain.
1202 */ 1209 */
1203 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl); 1210 Local<Object> FindInstanceInPrototypeChain(Handle<FunctionTemplate> tmpl);
1204 1211
1205 /** 1212 /**
1206 * Call builtin Object.prototype.toString on this object. 1213 * Call builtin Object.prototype.toString on this object.
1207 * This is different from Value::ToString() that may call 1214 * This is different from Value::ToString() that may call
1208 * user-defined toString function. This one does not. 1215 * user-defined toString function. This one does not.
1209 */ 1216 */
(...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after
3227 3234
3228 } // namespace v8 3235 } // namespace v8
3229 3236
3230 3237
3231 #undef V8EXPORT 3238 #undef V8EXPORT
3232 #undef V8EXPORT_INLINE 3239 #undef V8EXPORT_INLINE
3233 #undef TYPE_CHECK 3240 #undef TYPE_CHECK
3234 3241
3235 3242
3236 #endif // V8_H_ 3243 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698