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

Side by Side Diff: src/snapshot/snapshot-source-sink.h

Issue 1529763002: [serializer] remove some dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/snapshot/serialize.h ('k') | src/snapshot/snapshot-source-sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_ 5 #ifndef V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_
6 #define V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_ 6 #define V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_
7 7
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 #include "src/utils.h" 9 #include "src/utils.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 answer |= data_[position_ + 3] << 24; 50 answer |= data_[position_ + 3] << 24;
51 int bytes = (answer & 3) + 1; 51 int bytes = (answer & 3) + 1;
52 Advance(bytes); 52 Advance(bytes);
53 uint32_t mask = 0xffffffffu; 53 uint32_t mask = 0xffffffffu;
54 mask >>= 32 - (bytes << 3); 54 mask >>= 32 - (bytes << 3);
55 answer &= mask; 55 answer &= mask;
56 answer >>= 2; 56 answer >>= 2;
57 return answer; 57 return answer;
58 } 58 }
59 59
60 bool GetBlob(const byte** data, int* number_of_bytes); 60 // Returns length.
61 61 int GetBlob(const byte** data);
62 bool AtEOF();
63 62
64 int position() { return position_; } 63 int position() { return position_; }
65 64
66 private: 65 private:
67 const byte* data_; 66 const byte* data_;
68 int length_; 67 int length_;
69 int position_; 68 int position_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(SnapshotByteSource); 70 DISALLOW_COPY_AND_ASSIGN(SnapshotByteSource);
72 }; 71 };
(...skipping 25 matching lines...) Expand all
98 const List<byte>& data() const { return data_; } 97 const List<byte>& data() const { return data_; }
99 98
100 private: 99 private:
101 List<byte> data_; 100 List<byte> data_;
102 }; 101 };
103 102
104 } // namespace internal 103 } // namespace internal
105 } // namespace v8 104 } // namespace v8
106 105
107 #endif // V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_ 106 #endif // V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_
OLDNEW
« no previous file with comments | « src/snapshot/serialize.h ('k') | src/snapshot/snapshot-source-sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698