OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 | 509 |
510 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) { | 510 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) { |
511 AllowDeferredHandleDereference convert_to_cell; | 511 AllowDeferredHandleDereference convert_to_cell; |
512 CALL_HEAP_FUNCTION( | 512 CALL_HEAP_FUNCTION( |
513 isolate(), | 513 isolate(), |
514 isolate()->heap()->AllocatePropertyCell(*value), | 514 isolate()->heap()->AllocatePropertyCell(*value), |
515 PropertyCell); | 515 PropertyCell); |
516 } | 516 } |
517 | 517 |
518 | 518 |
| 519 Handle<AllocationSite> Factory::NewAllocationSite() { |
| 520 CALL_HEAP_FUNCTION( |
| 521 isolate(), |
| 522 isolate()->heap()->AllocateAllocationSite(), |
| 523 AllocationSite); |
| 524 } |
| 525 |
| 526 |
519 Handle<Map> Factory::NewMap(InstanceType type, | 527 Handle<Map> Factory::NewMap(InstanceType type, |
520 int instance_size, | 528 int instance_size, |
521 ElementsKind elements_kind) { | 529 ElementsKind elements_kind) { |
522 CALL_HEAP_FUNCTION( | 530 CALL_HEAP_FUNCTION( |
523 isolate(), | 531 isolate(), |
524 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), | 532 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), |
525 Map); | 533 Map); |
526 } | 534 } |
527 | 535 |
528 | 536 |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 return Handle<Object>::null(); | 1606 return Handle<Object>::null(); |
1599 } | 1607 } |
1600 | 1608 |
1601 | 1609 |
1602 Handle<Object> Factory::ToBoolean(bool value) { | 1610 Handle<Object> Factory::ToBoolean(bool value) { |
1603 return value ? true_value() : false_value(); | 1611 return value ? true_value() : false_value(); |
1604 } | 1612 } |
1605 | 1613 |
1606 | 1614 |
1607 } } // namespace v8::internal | 1615 } } // namespace v8::internal |
OLD | NEW |