OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3637 PrintF("migrating instance %p (%p)\n", | 3637 PrintF("migrating instance %p (%p)\n", |
3638 static_cast<void*>(*object), | 3638 static_cast<void*>(*object), |
3639 static_cast<void*>(object->map())); | 3639 static_cast<void*>(object->map())); |
3640 } | 3640 } |
3641 CALL_HEAP_FUNCTION_VOID( | 3641 CALL_HEAP_FUNCTION_VOID( |
3642 object->GetIsolate(), | 3642 object->GetIsolate(), |
3643 object->MigrateInstance()); | 3643 object->MigrateInstance()); |
3644 } | 3644 } |
3645 | 3645 |
3646 | 3646 |
| 3647 Handle<Object> JSObject::TryMigrateInstance(Handle<JSObject> object) { |
| 3648 if (FLAG_trace_migration) { |
| 3649 PrintF("migrating instance (no new maps) %p (%p)\n", |
| 3650 static_cast<void*>(*object), |
| 3651 static_cast<void*>(object->map())); |
| 3652 } |
| 3653 CALL_HEAP_FUNCTION( |
| 3654 object->GetIsolate(), |
| 3655 object->MigrateInstance(), |
| 3656 Object); |
| 3657 } |
| 3658 |
| 3659 |
3647 Handle<Map> Map::GeneralizeRepresentation(Handle<Map> map, | 3660 Handle<Map> Map::GeneralizeRepresentation(Handle<Map> map, |
3648 int modify_index, | 3661 int modify_index, |
3649 Representation representation) { | 3662 Representation representation) { |
3650 CALL_HEAP_FUNCTION( | 3663 CALL_HEAP_FUNCTION( |
3651 map->GetIsolate(), | 3664 map->GetIsolate(), |
3652 map->GeneralizeRepresentation(modify_index, representation), | 3665 map->GeneralizeRepresentation(modify_index, representation), |
3653 Map); | 3666 Map); |
3654 } | 3667 } |
3655 | 3668 |
3656 | 3669 |
(...skipping 11958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15615 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 15628 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
15616 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 15629 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
15617 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 15630 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
15618 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 15631 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
15619 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 15632 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
15620 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 15633 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
15621 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 15634 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
15622 } | 15635 } |
15623 | 15636 |
15624 } } // namespace v8::internal | 15637 } } // namespace v8::internal |
OLD | NEW |