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

Side by Side Diff: src/factory.h

Issue 93066: Built-in JSON support (Closed)
Patch Set: Created 11 years, 8 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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static Handle<Map> CopyMap(Handle<Map> map); 156 static Handle<Map> CopyMap(Handle<Map> map);
157 157
158 // Copy the map adding more inobject properties if possible without 158 // Copy the map adding more inobject properties if possible without
159 // overflowing the instance size. 159 // overflowing the instance size.
160 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 160 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
161 161
162 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); 162 static Handle<Map> CopyMapDropTransitions(Handle<Map> map);
163 163
164 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 164 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
165 165
166 // Creates a copy of this function using a copy of the original
167 // function's shared function info.
168 static Handle<JSFunction> CopyFunctionDeep(Handle<JSFunction> fun);
169
166 // Numbers (eg, literals) are pretenured by the parser. 170 // Numbers (eg, literals) are pretenured by the parser.
167 static Handle<Object> NewNumber(double value, 171 static Handle<Object> NewNumber(double value,
168 PretenureFlag pretenure = NOT_TENURED); 172 PretenureFlag pretenure = NOT_TENURED);
169 173
170 static Handle<Object> NewNumberFromInt(int value); 174 static Handle<Object> NewNumberFromInt(int value);
171 static Handle<Object> NewNumberFromUint(uint32_t value); 175 static Handle<Object> NewNumberFromUint(uint32_t value);
172 176
173 // These objects are used by the api to create env-independent data 177 // These objects are used by the api to create env-independent data
174 // structures in the heap. 178 // structures in the heap.
175 static Handle<JSObject> NewNeanderObject(); 179 static Handle<JSObject> NewNeanderObject();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Update the map cache in the global context with (keys, map) 357 // Update the map cache in the global context with (keys, map)
354 static Handle<MapCache> AddToMapCache(Handle<Context> context, 358 static Handle<MapCache> AddToMapCache(Handle<Context> context,
355 Handle<FixedArray> keys, 359 Handle<FixedArray> keys,
356 Handle<Map> map); 360 Handle<Map> map);
357 }; 361 };
358 362
359 363
360 } } // namespace v8::internal 364 } } // namespace v8::internal
361 365
362 #endif // V8_FACTORY_H_ 366 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698