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 "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/extensions/externalize-string-extension.h" | 9 #include "src/extensions/externalize-string-extension.h" |
10 #include "src/extensions/free-buffer-extension.h" | 10 #include "src/extensions/free-buffer-extension.h" |
(...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2455 Handle<Object> callbacks(descs->GetCallbacksObject(i), isolate()); | 2455 Handle<Object> callbacks(descs->GetCallbacksObject(i), isolate()); |
2456 PropertyDetails d = PropertyDetails( | 2456 PropertyDetails d = PropertyDetails( |
2457 details.attributes(), CALLBACKS, i + 1); | 2457 details.attributes(), CALLBACKS, i + 1); |
2458 JSObject::SetNormalizedProperty(to, key, callbacks, d); | 2458 JSObject::SetNormalizedProperty(to, key, callbacks, d); |
2459 break; | 2459 break; |
2460 } | 2460 } |
2461 case NORMAL: | 2461 case NORMAL: |
2462 // Do not occur since the from object has fast properties. | 2462 // Do not occur since the from object has fast properties. |
2463 case HANDLER: | 2463 case HANDLER: |
2464 case INTERCEPTOR: | 2464 case INTERCEPTOR: |
2465 case NONEXISTENT: | |
2466 // No element in instance descriptors have proxy or interceptor type. | 2465 // No element in instance descriptors have proxy or interceptor type. |
2467 UNREACHABLE(); | 2466 UNREACHABLE(); |
2468 break; | 2467 break; |
2469 } | 2468 } |
2470 } | 2469 } |
2471 } else { | 2470 } else { |
2472 Handle<NameDictionary> properties = | 2471 Handle<NameDictionary> properties = |
2473 Handle<NameDictionary>(from->property_dictionary()); | 2472 Handle<NameDictionary>(from->property_dictionary()); |
2474 int capacity = properties->Capacity(); | 2473 int capacity = properties->Capacity(); |
2475 for (int i = 0; i < capacity; i++) { | 2474 for (int i = 0; i < capacity; i++) { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2689 return from + sizeof(NestingCounterType); | 2688 return from + sizeof(NestingCounterType); |
2690 } | 2689 } |
2691 | 2690 |
2692 | 2691 |
2693 // Called when the top-level V8 mutex is destroyed. | 2692 // Called when the top-level V8 mutex is destroyed. |
2694 void Bootstrapper::FreeThreadResources() { | 2693 void Bootstrapper::FreeThreadResources() { |
2695 DCHECK(!IsActive()); | 2694 DCHECK(!IsActive()); |
2696 } | 2695 } |
2697 | 2696 |
2698 } } // namespace v8::internal | 2697 } } // namespace v8::internal |
OLD | NEW |