| 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 10479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10490 int scope_position) | 10490 int scope_position) |
| 10491 : source_(source), | 10491 : source_(source), |
| 10492 shared_(shared), | 10492 shared_(shared), |
| 10493 language_mode_(language_mode), | 10493 language_mode_(language_mode), |
| 10494 scope_position_(scope_position) { } | 10494 scope_position_(scope_position) { } |
| 10495 | 10495 |
| 10496 bool IsMatch(Object* other) { | 10496 bool IsMatch(Object* other) { |
| 10497 if (!other->IsFixedArray()) return false; | 10497 if (!other->IsFixedArray()) return false; |
| 10498 FixedArray* other_array = FixedArray::cast(other); | 10498 FixedArray* other_array = FixedArray::cast(other); |
| 10499 SharedFunctionInfo* shared = SharedFunctionInfo::cast(other_array->get(0)); | 10499 SharedFunctionInfo* shared = SharedFunctionInfo::cast(other_array->get(0)); |
| 10500 if (shared != shared_) return false; | 10500 if (shared->script() != shared_->script()) return false; |
| 10501 int language_unchecked = Smi::cast(other_array->get(2))->value(); | 10501 int language_unchecked = Smi::cast(other_array->get(2))->value(); |
| 10502 ASSERT(language_unchecked == CLASSIC_MODE || | 10502 ASSERT(language_unchecked == CLASSIC_MODE || |
| 10503 language_unchecked == STRICT_MODE || | 10503 language_unchecked == STRICT_MODE || |
| 10504 language_unchecked == EXTENDED_MODE); | 10504 language_unchecked == EXTENDED_MODE); |
| 10505 LanguageMode language_mode = static_cast<LanguageMode>(language_unchecked); | 10505 LanguageMode language_mode = static_cast<LanguageMode>(language_unchecked); |
| 10506 if (language_mode != language_mode_) return false; | 10506 if (language_mode != language_mode_) return false; |
| 10507 int scope_position = Smi::cast(other_array->get(3))->value(); | 10507 int scope_position = Smi::cast(other_array->get(3))->value(); |
| 10508 if (scope_position != scope_position_) return false; | 10508 if (scope_position != scope_position_) return false; |
| 10509 String* source = String::cast(other_array->get(1)); | 10509 String* source = String::cast(other_array->get(1)); |
| 10510 return source->Equals(source_); | 10510 return source->Equals(source_); |
| (...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12964 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 12964 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 12965 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 12965 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 12966 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 12966 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 12967 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 12967 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 12968 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 12968 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 12969 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 12969 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 12970 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 12970 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 12971 } | 12971 } |
| 12972 | 12972 |
| 12973 } } // namespace v8::internal | 12973 } } // namespace v8::internal |
| OLD | NEW |