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

Side by Side Diff: include/v8.h

Issue 862923002: CHECK that FunctionTemplates are not modified after first instantiation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 3685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 3696
3697 3697
3698 /** 3698 /**
3699 * A FunctionTemplate is used to create functions at runtime. There 3699 * A FunctionTemplate is used to create functions at runtime. There
3700 * can only be one function created from a FunctionTemplate in a 3700 * can only be one function created from a FunctionTemplate in a
3701 * context. The lifetime of the created function is equal to the 3701 * context. The lifetime of the created function is equal to the
3702 * lifetime of the context. So in case the embedder needs to create 3702 * lifetime of the context. So in case the embedder needs to create
3703 * temporary functions that can be collected using Scripts is 3703 * temporary functions that can be collected using Scripts is
3704 * preferred. 3704 * preferred.
3705 * 3705 *
3706 * Any modification of a FunctionTemplate after first instantiation will trigger
3707 *a crash.
3708 *
3706 * A FunctionTemplate can have properties, these properties are added to the 3709 * A FunctionTemplate can have properties, these properties are added to the
3707 * function object when it is created. 3710 * function object when it is created.
3708 * 3711 *
3709 * A FunctionTemplate has a corresponding instance template which is 3712 * A FunctionTemplate has a corresponding instance template which is
3710 * used to create object instances when the function is used as a 3713 * used to create object instances when the function is used as a
3711 * constructor. Properties added to the instance template are added to 3714 * constructor. Properties added to the instance template are added to
3712 * each object instance. 3715 * each object instance.
3713 * 3716 *
3714 * A FunctionTemplate can have a prototype template. The prototype template 3717 * A FunctionTemplate can have a prototype template. The prototype template
3715 * is used to create the prototype object of the function. 3718 * is used to create the prototype object of the function.
(...skipping 3777 matching lines...) Expand 10 before | Expand all | Expand 10 after
7493 */ 7496 */
7494 7497
7495 7498
7496 } // namespace v8 7499 } // namespace v8
7497 7500
7498 7501
7499 #undef TYPE_CHECK 7502 #undef TYPE_CHECK
7500 7503
7501 7504
7502 #endif // V8_H_ 7505 #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