OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "bootstrapper.h" | 5 #include "bootstrapper.h" |
6 | 6 |
7 #include "accessors.h" | 7 #include "accessors.h" |
8 #include "isolate-inl.h" | 8 #include "isolate-inl.h" |
9 #include "natives.h" | 9 #include "natives.h" |
10 #include "snapshot.h" | 10 #include "snapshot.h" |
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2457 Handle<Object> callbacks(descs->GetCallbacksObject(i), isolate()); | 2457 Handle<Object> callbacks(descs->GetCallbacksObject(i), isolate()); |
2458 PropertyDetails d = PropertyDetails( | 2458 PropertyDetails d = PropertyDetails( |
2459 details.attributes(), CALLBACKS, i + 1); | 2459 details.attributes(), CALLBACKS, i + 1); |
2460 JSObject::SetNormalizedProperty(to, key, callbacks, d); | 2460 JSObject::SetNormalizedProperty(to, key, callbacks, d); |
2461 break; | 2461 break; |
2462 } | 2462 } |
2463 case NORMAL: | 2463 case NORMAL: |
2464 // Do not occur since the from object has fast properties. | 2464 // Do not occur since the from object has fast properties. |
2465 case HANDLER: | 2465 case HANDLER: |
2466 case INTERCEPTOR: | 2466 case INTERCEPTOR: |
2467 case TRANSITION: | |
2468 case NONEXISTENT: | 2467 case NONEXISTENT: |
2469 // No element in instance descriptors have proxy or interceptor type. | 2468 // No element in instance descriptors have proxy or interceptor type. |
2470 UNREACHABLE(); | 2469 UNREACHABLE(); |
2471 break; | 2470 break; |
2472 } | 2471 } |
2473 } | 2472 } |
2474 } else { | 2473 } else { |
2475 Handle<NameDictionary> properties = | 2474 Handle<NameDictionary> properties = |
2476 Handle<NameDictionary>(from->property_dictionary()); | 2475 Handle<NameDictionary>(from->property_dictionary()); |
2477 int capacity = properties->Capacity(); | 2476 int capacity = properties->Capacity(); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2721 return from + sizeof(NestingCounterType); | 2720 return from + sizeof(NestingCounterType); |
2722 } | 2721 } |
2723 | 2722 |
2724 | 2723 |
2725 // Called when the top-level V8 mutex is destroyed. | 2724 // Called when the top-level V8 mutex is destroyed. |
2726 void Bootstrapper::FreeThreadResources() { | 2725 void Bootstrapper::FreeThreadResources() { |
2727 ASSERT(!IsActive()); | 2726 ASSERT(!IsActive()); |
2728 } | 2727 } |
2729 | 2728 |
2730 } } // namespace v8::internal | 2729 } } // namespace v8::internal |
OLD | NEW |