| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( | 485 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( |
| 486 Handle<Object> value) { | 486 Handle<Object> value) { |
| 487 AllowDeferredHandleDereference convert_to_cell; | 487 AllowDeferredHandleDereference convert_to_cell; |
| 488 CALL_HEAP_FUNCTION( | 488 CALL_HEAP_FUNCTION( |
| 489 isolate(), | 489 isolate(), |
| 490 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), | 490 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), |
| 491 JSGlobalPropertyCell); | 491 JSGlobalPropertyCell); |
| 492 } | 492 } |
| 493 | 493 |
| 494 | 494 |
| 495 Handle<AllocationSite> Factory::NewAllocationSite() { |
| 496 CALL_HEAP_FUNCTION( |
| 497 isolate(), |
| 498 isolate()->heap()->AllocateAllocationSite(), |
| 499 AllocationSite); |
| 500 } |
| 501 |
| 502 |
| 495 Handle<Map> Factory::NewMap(InstanceType type, | 503 Handle<Map> Factory::NewMap(InstanceType type, |
| 496 int instance_size, | 504 int instance_size, |
| 497 ElementsKind elements_kind) { | 505 ElementsKind elements_kind) { |
| 498 CALL_HEAP_FUNCTION( | 506 CALL_HEAP_FUNCTION( |
| 499 isolate(), | 507 isolate(), |
| 500 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), | 508 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), |
| 501 Map); | 509 Map); |
| 502 } | 510 } |
| 503 | 511 |
| 504 | 512 |
| (...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 return Handle<Object>::null(); | 1572 return Handle<Object>::null(); |
| 1565 } | 1573 } |
| 1566 | 1574 |
| 1567 | 1575 |
| 1568 Handle<Object> Factory::ToBoolean(bool value) { | 1576 Handle<Object> Factory::ToBoolean(bool value) { |
| 1569 return value ? true_value() : false_value(); | 1577 return value ? true_value() : false_value(); |
| 1570 } | 1578 } |
| 1571 | 1579 |
| 1572 | 1580 |
| 1573 } } // namespace v8::internal | 1581 } } // namespace v8::internal |
| OLD | NEW |