| 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/base/utils/random-number-generator.h" | 9 #include "src/base/utils/random-number-generator.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2806 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); | 2806 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); |
| 2807 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); | 2807 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); |
| 2808 if (it.IsFound()) continue; | 2808 if (it.IsFound()) continue; |
| 2809 // Set the property. | 2809 // Set the property. |
| 2810 Handle<Object> value = Handle<Object>(properties->ValueAt(i), | 2810 Handle<Object> value = Handle<Object>(properties->ValueAt(i), |
| 2811 isolate()); | 2811 isolate()); |
| 2812 DCHECK(!value->IsCell()); | 2812 DCHECK(!value->IsCell()); |
| 2813 if (value->IsPropertyCell()) { | 2813 if (value->IsPropertyCell()) { |
| 2814 value = handle(PropertyCell::cast(*value)->value(), isolate()); | 2814 value = handle(PropertyCell::cast(*value)->value(), isolate()); |
| 2815 } | 2815 } |
| 2816 if (value->IsTheHole()) continue; |
| 2816 PropertyDetails details = properties->DetailsAt(i); | 2817 PropertyDetails details = properties->DetailsAt(i); |
| 2817 DCHECK_EQ(kData, details.kind()); | 2818 DCHECK_EQ(kData, details.kind()); |
| 2818 JSObject::AddProperty(to, key, value, details.attributes()); | 2819 JSObject::AddProperty(to, key, value, details.attributes()); |
| 2819 } | 2820 } |
| 2820 } | 2821 } |
| 2821 } | 2822 } |
| 2822 } | 2823 } |
| 2823 | 2824 |
| 2824 | 2825 |
| 2825 void Genesis::TransferIndexedProperties(Handle<JSObject> from, | 2826 void Genesis::TransferIndexedProperties(Handle<JSObject> from, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3003 return from + sizeof(NestingCounterType); | 3004 return from + sizeof(NestingCounterType); |
| 3004 } | 3005 } |
| 3005 | 3006 |
| 3006 | 3007 |
| 3007 // Called when the top-level V8 mutex is destroyed. | 3008 // Called when the top-level V8 mutex is destroyed. |
| 3008 void Bootstrapper::FreeThreadResources() { | 3009 void Bootstrapper::FreeThreadResources() { |
| 3009 DCHECK(!IsActive()); | 3010 DCHECK(!IsActive()); |
| 3010 } | 3011 } |
| 3011 | 3012 |
| 3012 } } // namespace v8::internal | 3013 } } // namespace v8::internal |
| OLD | NEW |