| 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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 | 1306 |
| 1307 | 1307 |
| 1308 Object* Heap::AllocateSharedFunctionInfo(Object* name) { | 1308 Object* Heap::AllocateSharedFunctionInfo(Object* name) { |
| 1309 Object* result = Allocate(shared_function_info_map(), NEW_SPACE); | 1309 Object* result = Allocate(shared_function_info_map(), NEW_SPACE); |
| 1310 if (result->IsFailure()) return result; | 1310 if (result->IsFailure()) return result; |
| 1311 | 1311 |
| 1312 SharedFunctionInfo* share = SharedFunctionInfo::cast(result); | 1312 SharedFunctionInfo* share = SharedFunctionInfo::cast(result); |
| 1313 share->set_name(name); | 1313 share->set_name(name); |
| 1314 Code* illegal = Builtins::builtin(Builtins::Illegal); | 1314 Code* illegal = Builtins::builtin(Builtins::Illegal); |
| 1315 share->set_code(illegal); | 1315 share->set_code(illegal); |
| 1316 share->set_constructor(Builtins::builtin(Builtins::JSConstructCall)); |
| 1316 share->set_expected_nof_properties(0); | 1317 share->set_expected_nof_properties(0); |
| 1317 share->set_length(0); | 1318 share->set_length(0); |
| 1318 share->set_formal_parameter_count(0); | 1319 share->set_formal_parameter_count(0); |
| 1319 share->set_instance_class_name(Object_symbol()); | 1320 share->set_instance_class_name(Object_symbol()); |
| 1320 share->set_function_data(undefined_value()); | 1321 share->set_function_data(undefined_value()); |
| 1321 share->set_lazy_load_data(undefined_value()); | 1322 share->set_lazy_load_data(undefined_value()); |
| 1322 share->set_script(undefined_value()); | 1323 share->set_script(undefined_value()); |
| 1323 share->set_start_position_and_type(0); | 1324 share->set_start_position_and_type(0); |
| 1324 share->set_debug_info(undefined_value()); | 1325 share->set_debug_info(undefined_value()); |
| 1325 return result; | 1326 return result; |
| (...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 return "Scavenge"; | 3071 return "Scavenge"; |
| 3071 case MARK_COMPACTOR: | 3072 case MARK_COMPACTOR: |
| 3072 return MarkCompactCollector::HasCompacted() ? "Mark-compact" | 3073 return MarkCompactCollector::HasCompacted() ? "Mark-compact" |
| 3073 : "Mark-sweep"; | 3074 : "Mark-sweep"; |
| 3074 } | 3075 } |
| 3075 return "Unknown GC"; | 3076 return "Unknown GC"; |
| 3076 } | 3077 } |
| 3077 | 3078 |
| 3078 | 3079 |
| 3079 } } // namespace v8::internal | 3080 } } // namespace v8::internal |
| OLD | NEW |