| 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("converting a handle into a global property cell"); |
| 479 CALL_HEAP_FUNCTION( | 480 CALL_HEAP_FUNCTION( |
| 480 isolate(), | 481 isolate(), |
| 481 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), | 482 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), |
| 482 JSGlobalPropertyCell); | 483 JSGlobalPropertyCell); |
| 483 } | 484 } |
| 484 | 485 |
| 485 | 486 |
| 486 Handle<Map> Factory::NewMap(InstanceType type, | 487 Handle<Map> Factory::NewMap(InstanceType type, |
| 487 int instance_size, | 488 int instance_size, |
| 488 ElementsKind elements_kind) { | 489 ElementsKind elements_kind) { |
| (...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1484 return Handle<Object>::null(); | 1485 return Handle<Object>::null(); |
| 1485 } | 1486 } |
| 1486 | 1487 |
| 1487 | 1488 |
| 1488 Handle<Object> Factory::ToBoolean(bool value) { | 1489 Handle<Object> Factory::ToBoolean(bool value) { |
| 1489 return value ? true_value() : false_value(); | 1490 return value ? true_value() : false_value(); |
| 1490 } | 1491 } |
| 1491 | 1492 |
| 1492 | 1493 |
| 1493 } } // namespace v8::internal | 1494 } } // namespace v8::internal |
| OLD | NEW |