OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "src/vm/snapshot.h" | 5 #include "src/vm/snapshot.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <stdarg.h> | 9 #include <stdarg.h> |
10 #include <string.h> | 10 #include <string.h> |
11 | 11 |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 } | 941 } |
942 | 942 |
943 void DispatchTableEntry::DispatchTableEntryReadFrom(SnapshotReader* reader) { | 943 void DispatchTableEntry::DispatchTableEntryReadFrom(SnapshotReader* reader) { |
944 set_target(Function::cast(reader->ReadObject())); | 944 set_target(Function::cast(reader->ReadObject())); |
945 set_code(NULL); | 945 set_code(NULL); |
946 set_offset(Smi::cast(reader->ReadObject())); | 946 set_offset(Smi::cast(reader->ReadObject())); |
947 set_selector(reader->ReadInt64()); | 947 set_selector(reader->ReadInt64()); |
948 } | 948 } |
949 | 949 |
950 } // namespace fletch | 950 } // namespace fletch |
OLD | NEW |