Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: src/objects.cc

Issue 11359055: Removed duplicate line. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7424 matching lines...) Expand 10 before | Expand all | Expand 10 after
7435 7435
7436 DescriptorArray* descriptors = instance_descriptors(); 7436 DescriptorArray* descriptors = instance_descriptors();
7437 bool descriptors_owner_died = false; 7437 bool descriptors_owner_died = false;
7438 7438
7439 // Compact all live descriptors to the left. 7439 // Compact all live descriptors to the left.
7440 for (int i = 0; i < t->number_of_transitions(); ++i) { 7440 for (int i = 0; i < t->number_of_transitions(); ++i) {
7441 Map* target = t->GetTarget(i); 7441 Map* target = t->GetTarget(i);
7442 if (ClearBackPointer(heap, target)) { 7442 if (ClearBackPointer(heap, target)) {
7443 if (target->instance_descriptors() == descriptors) { 7443 if (target->instance_descriptors() == descriptors) {
7444 descriptors_owner_died = true; 7444 descriptors_owner_died = true;
7445 descriptors_owner_died = true;
7446 } 7445 }
7447 } else { 7446 } else {
7448 if (i != transition_index) { 7447 if (i != transition_index) {
7449 String* key = t->GetKey(i); 7448 String* key = t->GetKey(i);
7450 t->SetKey(transition_index, key); 7449 t->SetKey(transition_index, key);
7451 Object** key_slot = t->GetKeySlot(transition_index); 7450 Object** key_slot = t->GetKeySlot(transition_index);
7452 collector->RecordSlot(key_slot, key_slot, key); 7451 collector->RecordSlot(key_slot, key_slot, key);
7453 // Target slots do not need to be recorded since maps are not compacted. 7452 // Target slots do not need to be recorded since maps are not compacted.
7454 t->SetTarget(transition_index, t->GetTarget(i)); 7453 t->SetTarget(transition_index, t->GetTarget(i));
7455 } 7454 }
(...skipping 6016 matching lines...) Expand 10 before | Expand all | Expand 10 after
13472 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 13471 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
13473 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 13472 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
13474 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 13473 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
13475 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 13474 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
13476 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 13475 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
13477 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 13476 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
13478 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 13477 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
13479 } 13478 }
13480 13479
13481 } } // namespace v8::internal 13480 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698