| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_ELFGEN_H_ | 5 #ifndef VM_ELFGEN_H_ |
| 6 #define VM_ELFGEN_H_ | 6 #define VM_ELFGEN_H_ |
| 7 | 7 |
| 8 #include "vm/lockers.h" | 8 #include "vm/lockers.h" |
| 9 #include "vm/thread.h" | 9 #include "vm/os_thread.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 | 12 |
| 13 // ----------------------------------------------------------------------------- | 13 // ----------------------------------------------------------------------------- |
| 14 // Implementation of ElfGen | 14 // Implementation of ElfGen |
| 15 // | 15 // |
| 16 // Specification documents: | 16 // Specification documents: |
| 17 // http://refspecs.freestandards.org | 17 // http://refspecs.freestandards.org |
| 18 // | 18 // |
| 19 // ELF generic ABI: | 19 // ELF generic ABI: |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 ASSERT(offset == shoff); | 500 ASSERT(offset == shoff); |
| 501 offset += (*writer)(handle, sheaders_); | 501 offset += (*writer)(handle, sheaders_); |
| 502 ASSERT(offset == shoff + kNumSections * kSectionHeaderEntrySize); | 502 ASSERT(offset == shoff + kNumSections * kSectionHeaderEntrySize); |
| 503 | 503 |
| 504 return true; | 504 return true; |
| 505 } | 505 } |
| 506 | 506 |
| 507 } // namespace dart | 507 } // namespace dart |
| 508 | 508 |
| 509 #endif // VM_ELFGEN_H_ | 509 #endif // VM_ELFGEN_H_ |
| OLD | NEW |