OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 539 |
540 | 540 |
541 Handle<Object> Factory::NewNumber(double value, | 541 Handle<Object> Factory::NewNumber(double value, |
542 PretenureFlag pretenure) { | 542 PretenureFlag pretenure) { |
543 CALL_HEAP_FUNCTION( | 543 CALL_HEAP_FUNCTION( |
544 isolate(), | 544 isolate(), |
545 isolate()->heap()->NumberFromDouble(value, pretenure), Object); | 545 isolate()->heap()->NumberFromDouble(value, pretenure), Object); |
546 } | 546 } |
547 | 547 |
548 | 548 |
549 Handle<Object> Factory::NewNumberFromInt(int value) { | 549 Handle<Object> Factory::NewNumberFromInt(int32_t value, |
| 550 PretenureFlag pretenure) { |
550 CALL_HEAP_FUNCTION( | 551 CALL_HEAP_FUNCTION( |
551 isolate(), | 552 isolate(), |
552 isolate()->heap()->NumberFromInt32(value), Object); | 553 isolate()->heap()->NumberFromInt32(value, pretenure), Object); |
553 } | 554 } |
554 | 555 |
555 | 556 |
556 Handle<Object> Factory::NewNumberFromUint(uint32_t value) { | 557 Handle<Object> Factory::NewNumberFromUint(uint32_t value, |
| 558 PretenureFlag pretenure) { |
557 CALL_HEAP_FUNCTION( | 559 CALL_HEAP_FUNCTION( |
558 isolate(), | 560 isolate(), |
559 isolate()->heap()->NumberFromUint32(value), Object); | 561 isolate()->heap()->NumberFromUint32(value, pretenure), Object); |
560 } | 562 } |
561 | 563 |
562 | 564 |
563 Handle<JSObject> Factory::NewNeanderObject() { | 565 Handle<JSObject> Factory::NewNeanderObject() { |
564 CALL_HEAP_FUNCTION( | 566 CALL_HEAP_FUNCTION( |
565 isolate(), | 567 isolate(), |
566 isolate()->heap()->AllocateJSObjectFromMap( | 568 isolate()->heap()->AllocateJSObjectFromMap( |
567 isolate()->heap()->neander_map()), | 569 isolate()->heap()->neander_map()), |
568 JSObject); | 570 JSObject); |
569 } | 571 } |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 | 1360 |
1359 | 1361 |
1360 Handle<Object> Factory::ToBoolean(bool value) { | 1362 Handle<Object> Factory::ToBoolean(bool value) { |
1361 return Handle<Object>(value | 1363 return Handle<Object>(value |
1362 ? isolate()->heap()->true_value() | 1364 ? isolate()->heap()->true_value() |
1363 : isolate()->heap()->false_value()); | 1365 : isolate()->heap()->false_value()); |
1364 } | 1366 } |
1365 | 1367 |
1366 | 1368 |
1367 } } // namespace v8::internal | 1369 } } // namespace v8::internal |
OLD | NEW |