| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, | 62 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, |
| 63 PretenureFlag pretenure) { | 63 PretenureFlag pretenure) { |
| 64 ASSERT(0 <= size); | 64 ASSERT(0 <= size); |
| 65 CALL_HEAP_FUNCTION( | 65 CALL_HEAP_FUNCTION( |
| 66 isolate(), | 66 isolate(), |
| 67 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure), | 67 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure), |
| 68 FixedArray); | 68 FixedArray); |
| 69 } | 69 } |
| 70 | 70 |
| 71 | 71 |
| 72 Handle<FixedArray> Factory::NewUninitializedFixedArray(int size) { |
| 73 CALL_HEAP_FUNCTION( |
| 74 isolate(), |
| 75 isolate()->heap()->AllocateUninitializedFixedArray(size), |
| 76 FixedArray); |
| 77 } |
| 78 |
| 79 |
| 72 Handle<FixedDoubleArray> Factory::NewFixedDoubleArray(int size, | 80 Handle<FixedDoubleArray> Factory::NewFixedDoubleArray(int size, |
| 73 PretenureFlag pretenure) { | 81 PretenureFlag pretenure) { |
| 74 ASSERT(0 <= size); | 82 ASSERT(0 <= size); |
| 75 CALL_HEAP_FUNCTION( | 83 CALL_HEAP_FUNCTION( |
| 76 isolate(), | 84 isolate(), |
| 77 isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure), | 85 isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure), |
| 78 FixedDoubleArray); | 86 FixedDoubleArray); |
| 79 } | 87 } |
| 80 | 88 |
| 81 | 89 |
| (...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 return Handle<Object>::null(); | 2040 return Handle<Object>::null(); |
| 2033 } | 2041 } |
| 2034 | 2042 |
| 2035 | 2043 |
| 2036 Handle<Object> Factory::ToBoolean(bool value) { | 2044 Handle<Object> Factory::ToBoolean(bool value) { |
| 2037 return value ? true_value() : false_value(); | 2045 return value ? true_value() : false_value(); |
| 2038 } | 2046 } |
| 2039 | 2047 |
| 2040 | 2048 |
| 2041 } } // namespace v8::internal | 2049 } } // namespace v8::internal |
| OLD | NEW |