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 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2186 // Add to dictionary. | 2186 // Add to dictionary. |
2187 Handle<String> key = Handle<String>(descs->GetKey(i)); | 2187 Handle<String> key = Handle<String>(descs->GetKey(i)); |
2188 Handle<Object> callbacks(descs->GetCallbacksObject(i)); | 2188 Handle<Object> callbacks(descs->GetCallbacksObject(i)); |
2189 PropertyDetails d = | 2189 PropertyDetails d = |
2190 PropertyDetails(details.attributes(), CALLBACKS, details.index()); | 2190 PropertyDetails(details.attributes(), CALLBACKS, details.index()); |
2191 JSObject::SetNormalizedProperty(to, key, callbacks, d); | 2191 JSObject::SetNormalizedProperty(to, key, callbacks, d); |
2192 break; | 2192 break; |
2193 } | 2193 } |
2194 case MAP_TRANSITION: | 2194 case MAP_TRANSITION: |
2195 case CONSTANT_TRANSITION: | 2195 case CONSTANT_TRANSITION: |
2196 case NULL_DESCRIPTOR: | |
2197 // Ignore non-properties. | 2196 // Ignore non-properties. |
2198 break; | 2197 break; |
2199 case NORMAL: | 2198 case NORMAL: |
2200 // Do not occur since the from object has fast properties. | 2199 // Do not occur since the from object has fast properties. |
2201 case HANDLER: | 2200 case HANDLER: |
2202 case INTERCEPTOR: | 2201 case INTERCEPTOR: |
| 2202 case NONEXISTENT: |
2203 // No element in instance descriptors have proxy or interceptor type. | 2203 // No element in instance descriptors have proxy or interceptor type. |
2204 UNREACHABLE(); | 2204 UNREACHABLE(); |
2205 break; | 2205 break; |
2206 } | 2206 } |
2207 } | 2207 } |
2208 } else { | 2208 } else { |
2209 Handle<StringDictionary> properties = | 2209 Handle<StringDictionary> properties = |
2210 Handle<StringDictionary>(from->property_dictionary()); | 2210 Handle<StringDictionary>(from->property_dictionary()); |
2211 int capacity = properties->Capacity(); | 2211 int capacity = properties->Capacity(); |
2212 for (int i = 0; i < capacity; i++) { | 2212 for (int i = 0; i < capacity; i++) { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 return from + sizeof(NestingCounterType); | 2362 return from + sizeof(NestingCounterType); |
2363 } | 2363 } |
2364 | 2364 |
2365 | 2365 |
2366 // Called when the top-level V8 mutex is destroyed. | 2366 // Called when the top-level V8 mutex is destroyed. |
2367 void Bootstrapper::FreeThreadResources() { | 2367 void Bootstrapper::FreeThreadResources() { |
2368 ASSERT(!IsActive()); | 2368 ASSERT(!IsActive()); |
2369 } | 2369 } |
2370 | 2370 |
2371 } } // namespace v8::internal | 2371 } } // namespace v8::internal |
OLD | NEW |