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

Side by Side Diff: src/factory.h

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM and x64 Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 // Numbers (e.g. literals) are pretenured by the parser. 261 // Numbers (e.g. literals) are pretenured by the parser.
262 Handle<Object> NewNumber(double value, 262 Handle<Object> NewNumber(double value,
263 PretenureFlag pretenure = NOT_TENURED); 263 PretenureFlag pretenure = NOT_TENURED);
264 264
265 Handle<Object> NewNumberFromInt(int32_t value, 265 Handle<Object> NewNumberFromInt(int32_t value,
266 PretenureFlag pretenure = NOT_TENURED); 266 PretenureFlag pretenure = NOT_TENURED);
267 Handle<Object> NewNumberFromUint(uint32_t value, 267 Handle<Object> NewNumberFromUint(uint32_t value,
268 PretenureFlag pretenure = NOT_TENURED); 268 PretenureFlag pretenure = NOT_TENURED);
269 269
270 Handle<HeapNumber> NewHeapNumber(double value,
271 PretenureFlag pretenure = NOT_TENURED);
272
270 // These objects are used by the api to create env-independent data 273 // These objects are used by the api to create env-independent data
271 // structures in the heap. 274 // structures in the heap.
272 Handle<JSObject> NewNeanderObject(); 275 Handle<JSObject> NewNeanderObject();
273 276
274 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 277 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
275 278
276 // JS objects are pretenured when allocated by the bootstrapper and 279 // JS objects are pretenured when allocated by the bootstrapper and
277 // runtime. 280 // runtime.
278 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, 281 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
279 PretenureFlag pretenure = NOT_TENURED); 282 PretenureFlag pretenure = NOT_TENURED);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // Update the map cache in the native context with (keys, map) 535 // Update the map cache in the native context with (keys, map)
533 Handle<MapCache> AddToMapCache(Handle<Context> context, 536 Handle<MapCache> AddToMapCache(Handle<Context> context,
534 Handle<FixedArray> keys, 537 Handle<FixedArray> keys,
535 Handle<Map> map); 538 Handle<Map> map);
536 }; 539 };
537 540
538 541
539 } } // namespace v8::internal 542 } } // namespace v8::internal
540 543
541 #endif // V8_FACTORY_H_ 544 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698