| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 ASSERT(!to->HasFastProperties()); | 1736 ASSERT(!to->HasFastProperties()); |
| 1737 // Add to dictionary. | 1737 // Add to dictionary. |
| 1738 Handle<String> key = Handle<String>(descs->GetKey(i)); | 1738 Handle<String> key = Handle<String>(descs->GetKey(i)); |
| 1739 Handle<Object> callbacks(descs->GetCallbacksObject(i)); | 1739 Handle<Object> callbacks(descs->GetCallbacksObject(i)); |
| 1740 PropertyDetails d = | 1740 PropertyDetails d = |
| 1741 PropertyDetails(details.attributes(), CALLBACKS, details.index()); | 1741 PropertyDetails(details.attributes(), CALLBACKS, details.index()); |
| 1742 SetNormalizedProperty(to, key, callbacks, d); | 1742 SetNormalizedProperty(to, key, callbacks, d); |
| 1743 break; | 1743 break; |
| 1744 } | 1744 } |
| 1745 case MAP_TRANSITION: | 1745 case MAP_TRANSITION: |
| 1746 case EXTERNAL_ARRAY_TRANSITION: |
| 1746 case CONSTANT_TRANSITION: | 1747 case CONSTANT_TRANSITION: |
| 1747 case NULL_DESCRIPTOR: | 1748 case NULL_DESCRIPTOR: |
| 1748 // Ignore non-properties. | 1749 // Ignore non-properties. |
| 1749 break; | 1750 break; |
| 1750 case NORMAL: | 1751 case NORMAL: |
| 1751 // Do not occur since the from object has fast properties. | 1752 // Do not occur since the from object has fast properties. |
| 1752 case INTERCEPTOR: | 1753 case INTERCEPTOR: |
| 1753 // No element in instance descriptors have interceptor type. | 1754 // No element in instance descriptors have interceptor type. |
| 1754 UNREACHABLE(); | 1755 UNREACHABLE(); |
| 1755 break; | 1756 break; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1917 } | 1918 } |
| 1918 | 1919 |
| 1919 | 1920 |
| 1920 // Restore statics that are thread local. | 1921 // Restore statics that are thread local. |
| 1921 char* BootstrapperActive::RestoreState(char* from) { | 1922 char* BootstrapperActive::RestoreState(char* from) { |
| 1922 nesting_ = *reinterpret_cast<int*>(from); | 1923 nesting_ = *reinterpret_cast<int*>(from); |
| 1923 return from + sizeof(nesting_); | 1924 return from + sizeof(nesting_); |
| 1924 } | 1925 } |
| 1925 | 1926 |
| 1926 } } // namespace v8::internal | 1927 } } // namespace v8::internal |
| OLD | NEW |