OLD | NEW |
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 4971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4982 this, target, descriptor_number, component, accessor, attributes); | 4982 this, target, descriptor_number, component, accessor, attributes); |
4983 } | 4983 } |
4984 } else { | 4984 } else { |
4985 // If not, lookup a transition. | 4985 // If not, lookup a transition. |
4986 map()->LookupTransition(this, name, &result); | 4986 map()->LookupTransition(this, name, &result); |
4987 | 4987 |
4988 // If there is a transition, try to follow it. | 4988 // If there is a transition, try to follow it. |
4989 if (result.IsFound()) { | 4989 if (result.IsFound()) { |
4990 Map* target = result.GetTransitionTarget(); | 4990 Map* target = result.GetTransitionTarget(); |
4991 int descriptor_number = target->LastAdded(); | 4991 int descriptor_number = target->LastAdded(); |
4992 ASSERT(target->instance_descriptors()->GetKey(descriptor_number) == name); | 4992 ASSERT(target->instance_descriptors()->GetKey(descriptor_number) |
| 4993 ->Equals(name)); |
4993 return TryAccessorTransition( | 4994 return TryAccessorTransition( |
4994 this, target, descriptor_number, component, accessor, attributes); | 4995 this, target, descriptor_number, component, accessor, attributes); |
4995 } | 4996 } |
4996 } | 4997 } |
4997 | 4998 |
4998 // If there is no transition yet, add a transition to the a new accessor pair | 4999 // If there is no transition yet, add a transition to the a new accessor pair |
4999 // containing the accessor. | 5000 // containing the accessor. |
5000 AccessorPair* accessors; | 5001 AccessorPair* accessors; |
5001 MaybeObject* maybe_accessors; | 5002 MaybeObject* maybe_accessors; |
5002 | 5003 |
(...skipping 8843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13846 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13847 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13847 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13848 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13848 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13849 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13849 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13850 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13850 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13851 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13851 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13852 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13852 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13853 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13853 } | 13854 } |
13854 | 13855 |
13855 } } // namespace v8::internal | 13856 } } // namespace v8::internal |
OLD | NEW |