OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap-snapshot-generator-inl.h" | 7 #include "src/heap-snapshot-generator-inl.h" |
8 | 8 |
9 #include "src/allocation-tracker.h" | 9 #include "src/allocation-tracker.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 SetPropertyReference( | 1690 SetPropertyReference( |
1691 js_obj, entry, | 1691 js_obj, entry, |
1692 descs->GetKey(i), descs->GetConstant(i)); | 1692 descs->GetKey(i), descs->GetConstant(i)); |
1693 break; | 1693 break; |
1694 case CALLBACKS: | 1694 case CALLBACKS: |
1695 ExtractAccessorPairProperty( | 1695 ExtractAccessorPairProperty( |
1696 js_obj, entry, | 1696 js_obj, entry, |
1697 descs->GetKey(i), descs->GetValue(i)); | 1697 descs->GetKey(i), descs->GetValue(i)); |
1698 break; | 1698 break; |
1699 case NORMAL: // only in slow mode | 1699 case NORMAL: // only in slow mode |
1700 case HANDLER: // only in lookup results, not in descriptors | 1700 UNREACHABLE(); |
1701 case INTERCEPTOR: // only in lookup results, not in descriptors | |
1702 break; | 1701 break; |
1703 } | 1702 } |
1704 } | 1703 } |
1705 } else { | 1704 } else { |
1706 NameDictionary* dictionary = js_obj->property_dictionary(); | 1705 NameDictionary* dictionary = js_obj->property_dictionary(); |
1707 int length = dictionary->Capacity(); | 1706 int length = dictionary->Capacity(); |
1708 for (int i = 0; i < length; ++i) { | 1707 for (int i = 0; i < length; ++i) { |
1709 Object* k = dictionary->KeyAt(i); | 1708 Object* k = dictionary->KeyAt(i); |
1710 if (dictionary->IsKey(k)) { | 1709 if (dictionary->IsKey(k)) { |
1711 Object* target = dictionary->ValueAt(i); | 1710 Object* target = dictionary->ValueAt(i); |
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3155 writer_->AddString("\"<dummy>\""); | 3154 writer_->AddString("\"<dummy>\""); |
3156 for (int i = 1; i < sorted_strings.length(); ++i) { | 3155 for (int i = 1; i < sorted_strings.length(); ++i) { |
3157 writer_->AddCharacter(','); | 3156 writer_->AddCharacter(','); |
3158 SerializeString(sorted_strings[i]); | 3157 SerializeString(sorted_strings[i]); |
3159 if (writer_->aborted()) return; | 3158 if (writer_->aborted()) return; |
3160 } | 3159 } |
3161 } | 3160 } |
3162 | 3161 |
3163 | 3162 |
3164 } } // namespace v8::internal | 3163 } } // namespace v8::internal |
OLD | NEW |