| 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 Handle<GlobalObject> Factory::NewGlobalObject( | 1016 Handle<GlobalObject> Factory::NewGlobalObject( |
| 1017 Handle<JSFunction> constructor) { | 1017 Handle<JSFunction> constructor) { |
| 1018 CALL_HEAP_FUNCTION(isolate(), | 1018 CALL_HEAP_FUNCTION(isolate(), |
| 1019 isolate()->heap()->AllocateGlobalObject(*constructor), | 1019 isolate()->heap()->AllocateGlobalObject(*constructor), |
| 1020 GlobalObject); | 1020 GlobalObject); |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 | 1023 |
| 1024 | 1024 |
| 1025 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map, | 1025 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map, |
| 1026 PretenureFlag pretenure) { | 1026 PretenureFlag pretenure, |
| 1027 bool alloc_props) { |
| 1027 CALL_HEAP_FUNCTION( | 1028 CALL_HEAP_FUNCTION( |
| 1028 isolate(), | 1029 isolate(), |
| 1029 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure), | 1030 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure, alloc_props), |
| 1030 JSObject); | 1031 JSObject); |
| 1031 } | 1032 } |
| 1032 | 1033 |
| 1033 | 1034 |
| 1034 Handle<JSArray> Factory::NewJSArray(int capacity, | 1035 Handle<JSArray> Factory::NewJSArray(int capacity, |
| 1035 ElementsKind elements_kind, | 1036 ElementsKind elements_kind, |
| 1036 PretenureFlag pretenure) { | 1037 PretenureFlag pretenure) { |
| 1037 if (capacity != 0) { | 1038 if (capacity != 0) { |
| 1038 elements_kind = GetHoleyElementsKind(elements_kind); | 1039 elements_kind = GetHoleyElementsKind(elements_kind); |
| 1039 } | 1040 } |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1606 return Handle<Object>::null(); | 1607 return Handle<Object>::null(); |
| 1607 } | 1608 } |
| 1608 | 1609 |
| 1609 | 1610 |
| 1610 Handle<Object> Factory::ToBoolean(bool value) { | 1611 Handle<Object> Factory::ToBoolean(bool value) { |
| 1611 return value ? true_value() : false_value(); | 1612 return value ? true_value() : false_value(); |
| 1612 } | 1613 } |
| 1613 | 1614 |
| 1614 | 1615 |
| 1615 } } // namespace v8::internal | 1616 } } // namespace v8::internal |
| OLD | NEW |