| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 Handle<ExternalArray> NewExternalArray( | 232 Handle<ExternalArray> NewExternalArray( |
| 233 int length, | 233 int length, |
| 234 ExternalArrayType array_type, | 234 ExternalArrayType array_type, |
| 235 void* external_pointer, | 235 void* external_pointer, |
| 236 PretenureFlag pretenure = NOT_TENURED); | 236 PretenureFlag pretenure = NOT_TENURED); |
| 237 | 237 |
| 238 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell( | 238 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell( |
| 239 Handle<Object> value); | 239 Handle<Object> value); |
| 240 | 240 |
| 241 Handle<AllocationSite> NewAllocationSite(); |
| 242 |
| 241 Handle<Map> NewMap( | 243 Handle<Map> NewMap( |
| 242 InstanceType type, | 244 InstanceType type, |
| 243 int instance_size, | 245 int instance_size, |
| 244 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); | 246 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); |
| 245 | 247 |
| 246 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); | 248 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); |
| 247 | 249 |
| 248 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map); | 250 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map); |
| 249 | 251 |
| 250 // Copy the map adding more inobject properties if possible without | 252 // Copy the map adding more inobject properties if possible without |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 } else { | 556 } else { |
| 555 return NewNumber(static_cast<double>(value), pretenure); | 557 return NewNumber(static_cast<double>(value), pretenure); |
| 556 } | 558 } |
| 557 } | 559 } |
| 558 | 560 |
| 559 | 561 |
| 560 | 562 |
| 561 } } // namespace v8::internal | 563 } } // namespace v8::internal |
| 562 | 564 |
| 563 #endif // V8_FACTORY_H_ | 565 #endif // V8_FACTORY_H_ |
| OLD | NEW |