Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Side by Side Diff: tools/relocation_packer/src/leb128.h

Issue 410933004: Extend relocation packing to cover arm64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Script 'golden' test data generation Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 // LEB128 encoder and decoder for packed ARM relative relocations. 5 // LEB128 encoder and decoder for packed relative relocations.
6 // 6 //
7 // Run-length encoded ARM relative relocations consist of a large number 7 // Run-length encoded relative relocations consist of a large number
8 // of pairs of relatively small positive integer values. Encoding these as 8 // of pairs of relatively small positive integer values. Encoding these as
9 // LEB128 saves space. 9 // LEB128 saves space.
10 // 10 //
11 // For more on LEB128 see http://en.wikipedia.org/wiki/LEB128. 11 // For more on LEB128 see http://en.wikipedia.org/wiki/LEB128.
12 12
13 #ifndef TOOLS_RELOCATION_PACKER_SRC_LEB128_H_ 13 #ifndef TOOLS_RELOCATION_PACKER_SRC_LEB128_H_
14 #define TOOLS_RELOCATION_PACKER_SRC_LEB128_H_ 14 #define TOOLS_RELOCATION_PACKER_SRC_LEB128_H_
15 15
16 #include <stdint.h> 16 #include <stdint.h>
17 #include <vector> 17 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Encoded LEB128 stream. 65 // Encoded LEB128 stream.
66 std::vector<uint8_t> encoding_; 66 std::vector<uint8_t> encoding_;
67 67
68 // Cursor indicating the current stream retrieval point. 68 // Cursor indicating the current stream retrieval point.
69 size_t cursor_; 69 size_t cursor_;
70 }; 70 };
71 71
72 } // namespace relocation_packer 72 } // namespace relocation_packer
73 73
74 #endif // TOOLS_RELOCATION_PACKER_SRC_LEB128_H_ 74 #endif // TOOLS_RELOCATION_PACKER_SRC_LEB128_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698