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 7811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7822 ASSERT(result->number_of_descriptors() == new_size); | 7822 ASSERT(result->number_of_descriptors() == new_size); |
7823 | 7823 |
7824 DescriptorArray::WhitenessWitness witness(result); | 7824 DescriptorArray::WhitenessWitness witness(result); |
7825 | 7825 |
7826 int descriptor; | 7826 int descriptor; |
7827 | 7827 |
7828 // 0 -> |verbatim| | 7828 // 0 -> |verbatim| |
7829 int current_offset = 0; | 7829 int current_offset = 0; |
7830 for (descriptor = 0; descriptor < verbatim; descriptor++) { | 7830 for (descriptor = 0; descriptor < verbatim; descriptor++) { |
7831 if (GetDetails(descriptor).type() == FIELD) current_offset++; | 7831 if (GetDetails(descriptor).type() == FIELD) current_offset++; |
7832 result->CopyFrom(descriptor, this, descriptor, witness); | 7832 result->CopyFrom(descriptor, other, descriptor, witness); |
7833 } | 7833 } |
7834 | 7834 |
7835 // |verbatim| -> |valid| | 7835 // |verbatim| -> |valid| |
7836 for (; descriptor < valid; descriptor++) { | 7836 for (; descriptor < valid; descriptor++) { |
7837 Name* key = GetKey(descriptor); | 7837 Name* key = GetKey(descriptor); |
7838 PropertyDetails details = GetDetails(descriptor); | 7838 PropertyDetails details = GetDetails(descriptor); |
7839 PropertyDetails other_details = other->GetDetails(descriptor); | 7839 PropertyDetails other_details = other->GetDetails(descriptor); |
7840 | 7840 |
7841 if (details.type() == FIELD || other_details.type() == FIELD || | 7841 if (details.type() == FIELD || other_details.type() == FIELD || |
7842 (store_mode == FORCE_FIELD && descriptor == modify_index) || | 7842 (store_mode == FORCE_FIELD && descriptor == modify_index) || |
(...skipping 8170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16013 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16013 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16014 static const char* error_messages_[] = { | 16014 static const char* error_messages_[] = { |
16015 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16015 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16016 }; | 16016 }; |
16017 #undef ERROR_MESSAGES_TEXTS | 16017 #undef ERROR_MESSAGES_TEXTS |
16018 return error_messages_[reason]; | 16018 return error_messages_[reason]; |
16019 } | 16019 } |
16020 | 16020 |
16021 | 16021 |
16022 } } // namespace v8::internal | 16022 } } // namespace v8::internal |
OLD | NEW |