| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 ObjectHashTable::Allocate(isolate()->heap(), | 123 ObjectHashTable::Allocate(isolate()->heap(), |
| 124 at_least_space_for), | 124 at_least_space_for), |
| 125 ObjectHashTable); | 125 ObjectHashTable); |
| 126 } | 126 } |
| 127 | 127 |
| 128 | 128 |
| 129 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors, | 129 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors, |
| 130 int slack) { | 130 int slack) { |
| 131 ASSERT(0 <= number_of_descriptors); | 131 ASSERT(0 <= number_of_descriptors); |
| 132 CALL_HEAP_FUNCTION(isolate(), | 132 CALL_HEAP_FUNCTION(isolate(), |
| 133 DescriptorArray::Allocate(number_of_descriptors, slack), | 133 DescriptorArray::Allocate( |
| 134 isolate(), number_of_descriptors, slack), |
| 134 DescriptorArray); | 135 DescriptorArray); |
| 135 } | 136 } |
| 136 | 137 |
| 137 | 138 |
| 138 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( | 139 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( |
| 139 int deopt_entry_count, | 140 int deopt_entry_count, |
| 140 PretenureFlag pretenure) { | 141 PretenureFlag pretenure) { |
| 141 ASSERT(deopt_entry_count > 0); | 142 ASSERT(deopt_entry_count > 0); |
| 142 CALL_HEAP_FUNCTION(isolate(), | 143 CALL_HEAP_FUNCTION(isolate(), |
| 143 DeoptimizationInputData::Allocate(deopt_entry_count, | 144 DeoptimizationInputData::Allocate(deopt_entry_count, |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 return Handle<Object>::null(); | 1646 return Handle<Object>::null(); |
| 1646 } | 1647 } |
| 1647 | 1648 |
| 1648 | 1649 |
| 1649 Handle<Object> Factory::ToBoolean(bool value) { | 1650 Handle<Object> Factory::ToBoolean(bool value) { |
| 1650 return value ? true_value() : false_value(); | 1651 return value ? true_value() : false_value(); |
| 1651 } | 1652 } |
| 1652 | 1653 |
| 1653 | 1654 |
| 1654 } } // namespace v8::internal | 1655 } } // namespace v8::internal |
| OLD | NEW |