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/ieee754.h" | 9 #include "src/base/ieee754.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4452 Handle<Object> value(from->RawFastPropertyAt(index), isolate()); | 4452 Handle<Object> value(from->RawFastPropertyAt(index), isolate()); |
4453 JSObject::AddProperty(to, key, value, details.attributes()); | 4453 JSObject::AddProperty(to, key, value, details.attributes()); |
4454 } else { | 4454 } else { |
4455 DCHECK_EQ(kAccessor, details.kind()); | 4455 DCHECK_EQ(kAccessor, details.kind()); |
4456 UNREACHABLE(); | 4456 UNREACHABLE(); |
4457 } | 4457 } |
4458 | 4458 |
4459 } else { | 4459 } else { |
4460 DCHECK_EQ(kDescriptor, details.location()); | 4460 DCHECK_EQ(kDescriptor, details.location()); |
4461 if (details.kind() == kData) { | 4461 if (details.kind() == kData) { |
| 4462 DCHECK(!FLAG_track_constant_fields); |
4462 HandleScope inner(isolate()); | 4463 HandleScope inner(isolate()); |
4463 Handle<Name> key = Handle<Name>(descs->GetKey(i)); | 4464 Handle<Name> key = Handle<Name>(descs->GetKey(i)); |
4464 Handle<Object> value(descs->GetValue(i), isolate()); | 4465 Handle<Object> value(descs->GetValue(i), isolate()); |
4465 JSObject::AddProperty(to, key, value, details.attributes()); | 4466 JSObject::AddProperty(to, key, value, details.attributes()); |
4466 | 4467 |
4467 } else { | 4468 } else { |
4468 DCHECK_EQ(kAccessor, details.kind()); | 4469 DCHECK_EQ(kAccessor, details.kind()); |
4469 Handle<Name> key(descs->GetKey(i)); | 4470 Handle<Name> key(descs->GetKey(i)); |
4470 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); | 4471 LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); |
4471 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); | 4472 CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4824 } | 4825 } |
4825 | 4826 |
4826 | 4827 |
4827 // Called when the top-level V8 mutex is destroyed. | 4828 // Called when the top-level V8 mutex is destroyed. |
4828 void Bootstrapper::FreeThreadResources() { | 4829 void Bootstrapper::FreeThreadResources() { |
4829 DCHECK(!IsActive()); | 4830 DCHECK(!IsActive()); |
4830 } | 4831 } |
4831 | 4832 |
4832 } // namespace internal | 4833 } // namespace internal |
4833 } // namespace v8 | 4834 } // namespace v8 |
OLD | NEW |