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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 isolate()->heap()->AllocateExternalArray(length, | 469 isolate()->heap()->AllocateExternalArray(length, |
470 array_type, | 470 array_type, |
471 external_pointer, | 471 external_pointer, |
472 pretenure), | 472 pretenure), |
473 ExternalArray); | 473 ExternalArray); |
474 } | 474 } |
475 | 475 |
476 | 476 |
477 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( | 477 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( |
478 Handle<Object> value) { | 478 Handle<Object> value) { |
479 ALLOW_HANDLE_DEREF(isolate(), | 479 ALLOW_DEFERRED_HANDLE_DEREF( |
480 "converting a handle into a global property cell"); | 480 isolate(), "converting a handle into a global property cell"); |
481 CALL_HEAP_FUNCTION( | 481 CALL_HEAP_FUNCTION( |
482 isolate(), | 482 isolate(), |
483 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), | 483 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), |
484 JSGlobalPropertyCell); | 484 JSGlobalPropertyCell); |
485 } | 485 } |
486 | 486 |
487 | 487 |
488 Handle<Map> Factory::NewMap(InstanceType type, | 488 Handle<Map> Factory::NewMap(InstanceType type, |
489 int instance_size, | 489 int instance_size, |
490 ElementsKind elements_kind) { | 490 ElementsKind elements_kind) { |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 return Handle<Object>::null(); | 1556 return Handle<Object>::null(); |
1557 } | 1557 } |
1558 | 1558 |
1559 | 1559 |
1560 Handle<Object> Factory::ToBoolean(bool value) { | 1560 Handle<Object> Factory::ToBoolean(bool value) { |
1561 return value ? true_value() : false_value(); | 1561 return value ? true_value() : false_value(); |
1562 } | 1562 } |
1563 | 1563 |
1564 | 1564 |
1565 } } // namespace v8::internal | 1565 } } // namespace v8::internal |
OLD | NEW |