OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 share->set_code(illegal); | 1377 share->set_code(illegal); |
1378 share->set_expected_nof_properties(0); | 1378 share->set_expected_nof_properties(0); |
1379 share->set_length(0); | 1379 share->set_length(0); |
1380 share->set_formal_parameter_count(0); | 1380 share->set_formal_parameter_count(0); |
1381 share->set_instance_class_name(Object_symbol()); | 1381 share->set_instance_class_name(Object_symbol()); |
1382 share->set_function_data(undefined_value()); | 1382 share->set_function_data(undefined_value()); |
1383 share->set_lazy_load_data(undefined_value()); | 1383 share->set_lazy_load_data(undefined_value()); |
1384 share->set_script(undefined_value()); | 1384 share->set_script(undefined_value()); |
1385 share->set_start_position_and_type(0); | 1385 share->set_start_position_and_type(0); |
1386 share->set_debug_info(undefined_value()); | 1386 share->set_debug_info(undefined_value()); |
| 1387 share->set_inferred_name(empty_string()); |
1387 return result; | 1388 return result; |
1388 } | 1389 } |
1389 | 1390 |
1390 | 1391 |
1391 Object* Heap::AllocateConsString(String* first, | 1392 Object* Heap::AllocateConsString(String* first, |
1392 String* second) { | 1393 String* second) { |
1393 int first_length = first->length(); | 1394 int first_length = first->length(); |
1394 int second_length = second->length(); | 1395 int second_length = second->length(); |
1395 int length = first_length + second_length; | 1396 int length = first_length + second_length; |
1396 bool is_ascii = StringShape(first).IsAsciiRepresentation() | 1397 bool is_ascii = StringShape(first).IsAsciiRepresentation() |
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3354 #ifdef DEBUG | 3355 #ifdef DEBUG |
3355 bool Heap::GarbageCollectionGreedyCheck() { | 3356 bool Heap::GarbageCollectionGreedyCheck() { |
3356 ASSERT(FLAG_gc_greedy); | 3357 ASSERT(FLAG_gc_greedy); |
3357 if (Bootstrapper::IsActive()) return true; | 3358 if (Bootstrapper::IsActive()) return true; |
3358 if (disallow_allocation_failure()) return true; | 3359 if (disallow_allocation_failure()) return true; |
3359 return CollectGarbage(0, NEW_SPACE); | 3360 return CollectGarbage(0, NEW_SPACE); |
3360 } | 3361 } |
3361 #endif | 3362 #endif |
3362 | 3363 |
3363 } } // namespace v8::internal | 3364 } } // namespace v8::internal |
OLD | NEW |