| 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/api-natives.h" | 8 #include "src/api-natives.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
| (...skipping 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2759 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); | 2759 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); |
| 2760 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); | 2760 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); |
| 2761 if (it.IsFound()) continue; | 2761 if (it.IsFound()) continue; |
| 2762 // Set the property. | 2762 // Set the property. |
| 2763 Handle<Object> value = Handle<Object>(properties->ValueAt(i), | 2763 Handle<Object> value = Handle<Object>(properties->ValueAt(i), |
| 2764 isolate()); | 2764 isolate()); |
| 2765 DCHECK(!value->IsCell()); | 2765 DCHECK(!value->IsCell()); |
| 2766 if (value->IsPropertyCell()) { | 2766 if (value->IsPropertyCell()) { |
| 2767 value = handle(PropertyCell::cast(*value)->value(), isolate()); | 2767 value = handle(PropertyCell::cast(*value)->value(), isolate()); |
| 2768 } | 2768 } |
| 2769 if (value->IsTheHole()) continue; |
| 2769 PropertyDetails details = properties->DetailsAt(i); | 2770 PropertyDetails details = properties->DetailsAt(i); |
| 2770 DCHECK_EQ(kData, details.kind()); | 2771 DCHECK_EQ(kData, details.kind()); |
| 2771 JSObject::AddProperty(to, key, value, details.attributes()); | 2772 JSObject::AddProperty(to, key, value, details.attributes()); |
| 2772 } | 2773 } |
| 2773 } | 2774 } |
| 2774 } | 2775 } |
| 2775 } | 2776 } |
| 2776 | 2777 |
| 2777 | 2778 |
| 2778 void Genesis::TransferIndexedProperties(Handle<JSObject> from, | 2779 void Genesis::TransferIndexedProperties(Handle<JSObject> from, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2955 return from + sizeof(NestingCounterType); | 2956 return from + sizeof(NestingCounterType); |
| 2956 } | 2957 } |
| 2957 | 2958 |
| 2958 | 2959 |
| 2959 // Called when the top-level V8 mutex is destroyed. | 2960 // Called when the top-level V8 mutex is destroyed. |
| 2960 void Bootstrapper::FreeThreadResources() { | 2961 void Bootstrapper::FreeThreadResources() { |
| 2961 DCHECK(!IsActive()); | 2962 DCHECK(!IsActive()); |
| 2962 } | 2963 } |
| 2963 | 2964 |
| 2964 } } // namespace v8::internal | 2965 } } // namespace v8::internal |
| OLD | NEW |