OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/snapshot/deserializer.h" | 5 #include "src/snapshot/deserializer.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/external-reference-table.h" | 8 #include "src/external-reference-table.h" |
9 #include "src/heap/heap.h" | 9 #include "src/heap/heap.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 // Find an external reference and write a pointer to it to the current | 642 // Find an external reference and write a pointer to it to the current |
643 // object. | 643 // object. |
644 SINGLE_CASE(kExternalReference, kPlain, kStartOfObject, 0) | 644 SINGLE_CASE(kExternalReference, kPlain, kStartOfObject, 0) |
645 // Find an external reference and write a pointer to it in the current | 645 // Find an external reference and write a pointer to it in the current |
646 // code object. | 646 // code object. |
647 SINGLE_CASE(kExternalReference, kFromCode, kStartOfObject, 0) | 647 SINGLE_CASE(kExternalReference, kFromCode, kStartOfObject, 0) |
648 // Find an object in the attached references and write a pointer to it to | 648 // Find an object in the attached references and write a pointer to it to |
649 // the current object. | 649 // the current object. |
650 SINGLE_CASE(kAttachedReference, kPlain, kStartOfObject, 0) | 650 SINGLE_CASE(kAttachedReference, kPlain, kStartOfObject, 0) |
651 SINGLE_CASE(kAttachedReference, kPlain, kInnerPointer, 0) | 651 SINGLE_CASE(kAttachedReference, kPlain, kInnerPointer, 0) |
| 652 SINGLE_CASE(kAttachedReference, kFromCode, kStartOfObject, 0) |
652 SINGLE_CASE(kAttachedReference, kFromCode, kInnerPointer, 0) | 653 SINGLE_CASE(kAttachedReference, kFromCode, kInnerPointer, 0) |
653 // Find a builtin and write a pointer to it to the current object. | 654 // Find a builtin and write a pointer to it to the current object. |
654 SINGLE_CASE(kBuiltin, kPlain, kStartOfObject, 0) | 655 SINGLE_CASE(kBuiltin, kPlain, kStartOfObject, 0) |
655 SINGLE_CASE(kBuiltin, kPlain, kInnerPointer, 0) | 656 SINGLE_CASE(kBuiltin, kPlain, kInnerPointer, 0) |
656 SINGLE_CASE(kBuiltin, kFromCode, kInnerPointer, 0) | 657 SINGLE_CASE(kBuiltin, kFromCode, kInnerPointer, 0) |
657 | 658 |
658 #undef CASE_STATEMENT | 659 #undef CASE_STATEMENT |
659 #undef CASE_BODY | 660 #undef CASE_BODY |
660 #undef ALL_SPACES | 661 #undef ALL_SPACES |
661 | 662 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 | 825 |
825 default: | 826 default: |
826 CHECK(false); | 827 CHECK(false); |
827 } | 828 } |
828 } | 829 } |
829 CHECK_EQ(limit, current); | 830 CHECK_EQ(limit, current); |
830 return true; | 831 return true; |
831 } | 832 } |
832 } // namespace internal | 833 } // namespace internal |
833 } // namespace v8 | 834 } // namespace v8 |
OLD | NEW |