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

Side by Side Diff: src/factory.h

Issue 2870018: Add "has fast elements" bit to maps and use it in inlined keyed loads. (Closed)
Patch Set: More ARM fixes. Created 10 years, 6 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/builtins.cc ('k') | src/factory.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 173 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
174 174
175 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map); 175 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map);
176 176
177 // Copy the map adding more inobject properties if possible without 177 // Copy the map adding more inobject properties if possible without
178 // overflowing the instance size. 178 // overflowing the instance size.
179 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 179 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
180 180
181 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); 181 static Handle<Map> CopyMapDropTransitions(Handle<Map> map);
182 182
183 static Handle<Map> GetFastElementsMap(Handle<Map> map);
184
185 static Handle<Map> GetSlowElementsMap(Handle<Map> map);
186
183 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 187 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
184 188
185 // Numbers (eg, literals) are pretenured by the parser. 189 // Numbers (eg, literals) are pretenured by the parser.
186 static Handle<Object> NewNumber(double value, 190 static Handle<Object> NewNumber(double value,
187 PretenureFlag pretenure = NOT_TENURED); 191 PretenureFlag pretenure = NOT_TENURED);
188 192
189 static Handle<Object> NewNumberFromInt(int value); 193 static Handle<Object> NewNumberFromInt(int value);
190 static Handle<Object> NewNumberFromUint(uint32_t value); 194 static Handle<Object> NewNumberFromUint(uint32_t value);
191 195
192 // These objects are used by the api to create env-independent data 196 // These objects are used by the api to create env-independent data
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // Update the map cache in the global context with (keys, map) 398 // Update the map cache in the global context with (keys, map)
395 static Handle<MapCache> AddToMapCache(Handle<Context> context, 399 static Handle<MapCache> AddToMapCache(Handle<Context> context,
396 Handle<FixedArray> keys, 400 Handle<FixedArray> keys,
397 Handle<Map> map); 401 Handle<Map> map);
398 }; 402 };
399 403
400 404
401 } } // namespace v8::internal 405 } } // namespace v8::internal
402 406
403 #endif // V8_FACTORY_H_ 407 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698