| OLD | NEW | 
|    1 // Copyright 2012 the V8 project authors. All rights reserved. |    1 // Copyright 2012 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  348  |  348  | 
|  349   // JS modules are pretenured. |  349   // JS modules are pretenured. | 
|  350   Handle<JSModule> NewJSModule(Handle<Context> context, |  350   Handle<JSModule> NewJSModule(Handle<Context> context, | 
|  351                                Handle<ScopeInfo> scope_info); |  351                                Handle<ScopeInfo> scope_info); | 
|  352  |  352  | 
|  353   // JS arrays are pretenured when allocated by the parser. |  353   // JS arrays are pretenured when allocated by the parser. | 
|  354   Handle<JSArray> NewJSArray( |  354   Handle<JSArray> NewJSArray( | 
|  355       ElementsKind elements_kind, |  355       ElementsKind elements_kind, | 
|  356       int length, |  356       int length, | 
|  357       int capacity, |  357       int capacity, | 
 |  358       ArrayStorageAllocationMode mode = INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, | 
|  358       PretenureFlag pretenure = NOT_TENURED); |  359       PretenureFlag pretenure = NOT_TENURED); | 
|  359  |  360  | 
|  360   Handle<JSArray> NewJSArray( |  361   Handle<JSArray> NewJSArray( | 
|  361       int capacity, |  362       int capacity, | 
|  362       ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |  363       ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 
|  363       PretenureFlag pretenure = NOT_TENURED) { |  364       PretenureFlag pretenure = NOT_TENURED) { | 
|  364     return NewJSArray(elements_kind, 0, capacity, pretenure); |  365     return NewJSArray(elements_kind, 0, capacity, | 
 |  366                       INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, pretenure); | 
|  365   } |  367   } | 
|  366  |  368  | 
|  367   Handle<JSArray> NewJSArrayWithElements( |  369   Handle<JSArray> NewJSArrayWithElements( | 
|  368       Handle<FixedArrayBase> elements, |  370       Handle<FixedArrayBase> elements, | 
|  369       ElementsKind elements_kind, |  371       ElementsKind elements_kind, | 
|  370       int length, |  372       int length, | 
|  371       PretenureFlag pretenure = NOT_TENURED); |  373       PretenureFlag pretenure = NOT_TENURED); | 
|  372  |  374  | 
|  373   Handle<JSArray> NewJSArrayWithElements( |  375   Handle<JSArray> NewJSArrayWithElements( | 
|  374       Handle<FixedArrayBase> elements, |  376       Handle<FixedArrayBase> elements, | 
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  625                           isolate()); |  627                           isolate()); | 
|  626   } else { |  628   } else { | 
|  627     return NewNumber(static_cast<double>(value), pretenure); |  629     return NewNumber(static_cast<double>(value), pretenure); | 
|  628   } |  630   } | 
|  629 } |  631 } | 
|  630  |  632  | 
|  631  |  633  | 
|  632 } }  // namespace v8::internal |  634 } }  // namespace v8::internal | 
|  633  |  635  | 
|  634 #endif  // V8_FACTORY_H_ |  636 #endif  // V8_FACTORY_H_ | 
| OLD | NEW |