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 12969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12980 // No break point. | 12980 // No break point. |
12981 if (break_point_objects()->IsUndefined()) return 0; | 12981 if (break_point_objects()->IsUndefined()) return 0; |
12982 // Single break point. | 12982 // Single break point. |
12983 if (!break_point_objects()->IsFixedArray()) return 1; | 12983 if (!break_point_objects()->IsFixedArray()) return 1; |
12984 // Multiple break points. | 12984 // Multiple break points. |
12985 return FixedArray::cast(break_point_objects())->length(); | 12985 return FixedArray::cast(break_point_objects())->length(); |
12986 } | 12986 } |
12987 #endif // ENABLE_DEBUGGER_SUPPORT | 12987 #endif // ENABLE_DEBUGGER_SUPPORT |
12988 | 12988 |
12989 | 12989 |
12990 MaybeObject* JSDate::GetField(Object* object, Smi* index) { | 12990 Object* JSDate::GetField(Object* object, Smi* index) { |
12991 return JSDate::cast(object)->DoGetField( | 12991 return JSDate::cast(object)->DoGetField( |
12992 static_cast<FieldIndex>(index->value())); | 12992 static_cast<FieldIndex>(index->value())); |
12993 } | 12993 } |
12994 | 12994 |
12995 | 12995 |
12996 Object* JSDate::DoGetField(FieldIndex index) { | 12996 Object* JSDate::DoGetField(FieldIndex index) { |
12997 ASSERT(index != kDateValue); | 12997 ASSERT(index != kDateValue); |
12998 | 12998 |
12999 DateCache* date_cache = GetIsolate()->date_cache(); | 12999 DateCache* date_cache = GetIsolate()->date_cache(); |
13000 | 13000 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13110 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13110 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13111 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13111 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13112 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13112 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13113 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13113 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13114 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13114 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13115 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13115 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13116 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13116 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13117 } | 13117 } |
13118 | 13118 |
13119 } } // namespace v8::internal | 13119 } } // namespace v8::internal |
OLD | NEW |