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

Side by Side Diff: src/objects.h

Issue 1981002: Refactored custom call IC generators: (Closed)
Patch Set: Review fixes. Created 10 years, 7 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 | « src/ia32/stub-cache-ia32.cc ('k') | src/objects-inl.h » ('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 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after
3193 3193
3194 // [expected_nof_properties]: Expected number of properties for the function. 3194 // [expected_nof_properties]: Expected number of properties for the function.
3195 inline int expected_nof_properties(); 3195 inline int expected_nof_properties();
3196 inline void set_expected_nof_properties(int value); 3196 inline void set_expected_nof_properties(int value);
3197 3197
3198 // [instance class name]: class name for instances. 3198 // [instance class name]: class name for instances.
3199 DECL_ACCESSORS(instance_class_name, Object) 3199 DECL_ACCESSORS(instance_class_name, Object)
3200 3200
3201 // [function data]: This field holds some additional data for function. 3201 // [function data]: This field holds some additional data for function.
3202 // Currently it either has FunctionTemplateInfo to make benefit the API 3202 // Currently it either has FunctionTemplateInfo to make benefit the API
3203 // or Proxy wrapping CustomCallGenerator. 3203 // or Smi identifying a custom call generator.
3204 // In the long run we don't want all functions to have this field but 3204 // In the long run we don't want all functions to have this field but
3205 // we can fix that when we have a better model for storing hidden data 3205 // we can fix that when we have a better model for storing hidden data
3206 // on objects. 3206 // on objects.
3207 DECL_ACCESSORS(function_data, Object) 3207 DECL_ACCESSORS(function_data, Object)
3208 3208
3209 inline bool IsApiFunction(); 3209 inline bool IsApiFunction();
3210 inline FunctionTemplateInfo* get_api_func_data(); 3210 inline FunctionTemplateInfo* get_api_func_data();
3211 inline bool HasCustomCallGenerator(); 3211 inline bool HasCustomCallGenerator();
3212 inline int custom_call_generator_id();
3212 3213
3213 // [script info]: Script from which the function originates. 3214 // [script info]: Script from which the function originates.
3214 DECL_ACCESSORS(script, Object) 3215 DECL_ACCESSORS(script, Object)
3215 3216
3216 // [num_literals]: Number of literals used by this function. 3217 // [num_literals]: Number of literals used by this function.
3217 inline int num_literals(); 3218 inline int num_literals();
3218 inline void set_num_literals(int value); 3219 inline void set_num_literals(int value);
3219 3220
3220 // [start_position_and_type]: Field used to store both the source code 3221 // [start_position_and_type]: Field used to store both the source code
3221 // position, whether or not the function is a function expression, 3222 // position, whether or not the function is a function expression,
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
5158 } else { 5159 } else {
5159 value &= ~(1 << bit_position); 5160 value &= ~(1 << bit_position);
5160 } 5161 }
5161 return value; 5162 return value;
5162 } 5163 }
5163 }; 5164 };
5164 5165
5165 } } // namespace v8::internal 5166 } } // namespace v8::internal
5166 5167
5167 #endif // V8_OBJECTS_H_ 5168 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698