| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 | 258 |
| 259 static Handle<JSFunction> NewFunction(Handle<String> name, | 259 static Handle<JSFunction> NewFunction(Handle<String> name, |
| 260 InstanceType type, | 260 InstanceType type, |
| 261 int instance_size, | 261 int instance_size, |
| 262 Handle<Code> code, | 262 Handle<Code> code, |
| 263 bool force_initial_map); | 263 bool force_initial_map); |
| 264 | 264 |
| 265 static Handle<JSFunction> NewFunctionBoilerplate(Handle<String> name, | 265 static Handle<JSFunction> NewFunctionBoilerplate(Handle<String> name, |
| 266 int number_of_literals, | 266 int number_of_literals, |
| 267 bool contains_array_literal, | |
| 268 Handle<Code> code); | 267 Handle<Code> code); |
| 269 | 268 |
| 270 static Handle<JSFunction> NewFunctionBoilerplate(Handle<String> name); | 269 static Handle<JSFunction> NewFunctionBoilerplate(Handle<String> name); |
| 271 | 270 |
| 272 static Handle<JSFunction> NewFunction(Handle<Map> function_map, | 271 static Handle<JSFunction> NewFunction(Handle<Map> function_map, |
| 273 Handle<SharedFunctionInfo> shared, Handle<Object> prototype); | 272 Handle<SharedFunctionInfo> shared, Handle<Object> prototype); |
| 274 | 273 |
| 275 | 274 |
| 276 static Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, | 275 static Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, |
| 277 InstanceType type, | 276 InstanceType type, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 // Update the map cache in the global context with (keys, map) | 376 // Update the map cache in the global context with (keys, map) |
| 378 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 377 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 379 Handle<FixedArray> keys, | 378 Handle<FixedArray> keys, |
| 380 Handle<Map> map); | 379 Handle<Map> map); |
| 381 }; | 380 }; |
| 382 | 381 |
| 383 | 382 |
| 384 } } // namespace v8::internal | 383 } } // namespace v8::internal |
| 385 | 384 |
| 386 #endif // V8_FACTORY_H_ | 385 #endif // V8_FACTORY_H_ |
| OLD | NEW |