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

Side by Side Diff: src/objects.h

Issue 174392: Generate specialized constructor code for constructing simple objects (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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/ia32/stub-cache-ia32.cc ('k') | src/objects.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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 3090 matching lines...) Expand 10 before | Expand all | Expand 10 after
3101 // drive optimization. 3101 // drive optimization.
3102 inline int compiler_hints(); 3102 inline int compiler_hints();
3103 inline void set_compiler_hints(int value); 3103 inline void set_compiler_hints(int value);
3104 3104
3105 // Add information on assignments of the form this.x = ...; 3105 // Add information on assignments of the form this.x = ...;
3106 void SetThisPropertyAssignmentsInfo( 3106 void SetThisPropertyAssignmentsInfo(
3107 bool has_only_this_property_assignments, 3107 bool has_only_this_property_assignments,
3108 bool has_only_simple_this_property_assignments, 3108 bool has_only_simple_this_property_assignments,
3109 FixedArray* this_property_assignments); 3109 FixedArray* this_property_assignments);
3110 3110
3111 // Clear information on assignments of the form this.x = ...;
3112 void ClearThisPropertyAssignmentsInfo();
3113
3111 // Indicate that this function only consists of assignments of the form 3114 // Indicate that this function only consists of assignments of the form
3112 // this.x = ...;. 3115 // this.x = ...;.
3113 inline bool has_only_this_property_assignments(); 3116 inline bool has_only_this_property_assignments();
3114 3117
3115 // Indicate that this function only consists of assignments of the form 3118 // Indicate that this function only consists of assignments of the form
3116 // this.x = y; where y is either a constant or refers to an argument. 3119 // this.x = y; where y is either a constant or refers to an argument.
3117 inline bool has_only_simple_this_property_assignments(); 3120 inline bool has_only_simple_this_property_assignments();
3118 3121
3119 // For functions which only contains this property assignments this provides 3122 // For functions which only contains this property assignments this provides
3120 // access to the names for the properties assigned. 3123 // access to the names for the properties assigned.
3121 DECL_ACCESSORS(this_property_assignments, Object) 3124 DECL_ACCESSORS(this_property_assignments, Object)
3122 inline int this_property_assignments_count(); 3125 inline int this_property_assignments_count();
3123 inline void set_this_property_assignments_count(int value); 3126 inline void set_this_property_assignments_count(int value);
3124 String* GetThisPropertyAssignmentName(int index); 3127 String* GetThisPropertyAssignmentName(int index);
3128 bool IsThisPropertyAssignmentArgument(int index);
3129 int GetThisPropertyAssignmentArgument(int index);
3130 Object* GetThisPropertyAssignmentConstant(int index);
3125 3131
3126 // [source code]: Source code for the function. 3132 // [source code]: Source code for the function.
3127 bool HasSourceCode(); 3133 bool HasSourceCode();
3128 Object* GetSourceCode(); 3134 Object* GetSourceCode();
3129 3135
3130 // Calculate the instance size. 3136 // Calculate the instance size.
3131 int CalculateInstanceSize(); 3137 int CalculateInstanceSize();
3132 3138
3133 // Calculate the number of in-object properties. 3139 // Calculate the number of in-object properties.
3134 int CalculateInObjectProperties(); 3140 int CalculateInObjectProperties();
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
4837 } else { 4843 } else {
4838 value &= ~(1 << bit_position); 4844 value &= ~(1 << bit_position);
4839 } 4845 }
4840 return value; 4846 return value;
4841 } 4847 }
4842 }; 4848 };
4843 4849
4844 } } // namespace v8::internal 4850 } } // namespace v8::internal
4845 4851
4846 #endif // V8_OBJECTS_H_ 4852 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698