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

Side by Side Diff: src/factory.h

Issue 211333002: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 PretenureFlag pretenure = NOT_TENURED); 309 PretenureFlag pretenure = NOT_TENURED);
310 310
311 Handle<Object> NewNumberFromInt(int32_t value, 311 Handle<Object> NewNumberFromInt(int32_t value,
312 PretenureFlag pretenure = NOT_TENURED); 312 PretenureFlag pretenure = NOT_TENURED);
313 Handle<Object> NewNumberFromUint(uint32_t value, 313 Handle<Object> NewNumberFromUint(uint32_t value,
314 PretenureFlag pretenure = NOT_TENURED); 314 PretenureFlag pretenure = NOT_TENURED);
315 inline Handle<Object> NewNumberFromSize(size_t value, 315 inline Handle<Object> NewNumberFromSize(size_t value,
316 PretenureFlag pretenure = NOT_TENURED); 316 PretenureFlag pretenure = NOT_TENURED);
317 Handle<HeapNumber> NewHeapNumber(double value, 317 Handle<HeapNumber> NewHeapNumber(double value,
318 PretenureFlag pretenure = NOT_TENURED); 318 PretenureFlag pretenure = NOT_TENURED);
319 Handle<HeapNumber> NewMutableHeapNumber(
320 double value,
321 PretenureFlag pretenure = NOT_TENURED);
319 322
320 323
321 // These objects are used by the api to create env-independent data 324 // These objects are used by the api to create env-independent data
322 // structures in the heap. 325 // structures in the heap.
323 Handle<JSObject> NewNeanderObject(); 326 Handle<JSObject> NewNeanderObject();
324 327
325 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); 328 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
326 329
327 // JS objects are pretenured when allocated by the bootstrapper and 330 // JS objects are pretenured when allocated by the bootstrapper and
328 // runtime. 331 // runtime.
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 isolate()); 628 isolate());
626 } else { 629 } else {
627 return NewNumber(static_cast<double>(value), pretenure); 630 return NewNumber(static_cast<double>(value), pretenure);
628 } 631 }
629 } 632 }
630 633
631 634
632 } } // namespace v8::internal 635 } } // namespace v8::internal
633 636
634 #endif // V8_FACTORY_H_ 637 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698