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

Side by Side Diff: include/v8.h

Issue 22990003: Add RemovePrototype to FunctionTemplate (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test that function throws when constructed Created 7 years, 4 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 | « no previous file | src/api.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 3400 matching lines...) Expand 10 before | Expand all | Expand 10 after
3411 */ 3411 */
3412 void SetHiddenPrototype(bool value); 3412 void SetHiddenPrototype(bool value);
3413 3413
3414 /** 3414 /**
3415 * Sets the ReadOnly flag in the attributes of the 'prototype' property 3415 * Sets the ReadOnly flag in the attributes of the 'prototype' property
3416 * of functions created from this FunctionTemplate to true. 3416 * of functions created from this FunctionTemplate to true.
3417 */ 3417 */
3418 void ReadOnlyPrototype(); 3418 void ReadOnlyPrototype();
3419 3419
3420 /** 3420 /**
3421 * Removes the prototype property from functions created from this
3422 * FunctionTemplate.
3423 */
3424 void RemovePrototype();
3425
3426 /**
3421 * Returns true if the given object is an instance of this function 3427 * Returns true if the given object is an instance of this function
3422 * template. 3428 * template.
3423 */ 3429 */
3424 bool HasInstance(Handle<Value> object); 3430 bool HasInstance(Handle<Value> object);
3425 3431
3426 private: 3432 private:
3427 FunctionTemplate(); 3433 FunctionTemplate();
3428 // TODO(dcarney): Remove with SetCallHandler. 3434 // TODO(dcarney): Remove with SetCallHandler.
3429 friend class v8::CallHandlerHelper; 3435 friend class v8::CallHandlerHelper;
3430 void SetCallHandlerInternal(InvocationCallback callback, Handle<Value> data); 3436 void SetCallHandlerInternal(InvocationCallback callback, Handle<Value> data);
(...skipping 3155 matching lines...) Expand 10 before | Expand all | Expand 10 after
6586 */ 6592 */
6587 6593
6588 6594
6589 } // namespace v8 6595 } // namespace v8
6590 6596
6591 6597
6592 #undef TYPE_CHECK 6598 #undef TYPE_CHECK
6593 6599
6594 6600
6595 #endif // V8_H_ 6601 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698