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

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

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/string-stream.h » ('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_SOURCE_SINK_H_ 5 #ifndef V8_SNAPSHOT_SOURCE_SINK_H_
6 #define V8_SNAPSHOT_SOURCE_SINK_H_ 6 #define V8_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
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 14
15 /** 15 /**
16 * Source to read snapshot and builtins files from. 16 * Source to read snapshot and builtins files from.
17 * 17 *
18 * Note: Memory ownership remains with callee. 18 * Note: Memory ownership remains with callee.
19 */ 19 */
20 class SnapshotByteSource FINAL { 20 class SnapshotByteSource final {
21 public: 21 public:
22 SnapshotByteSource(const char* data, int length) 22 SnapshotByteSource(const char* data, int length)
23 : data_(reinterpret_cast<const byte*>(data)), 23 : data_(reinterpret_cast<const byte*>(data)),
24 length_(length), 24 length_(length),
25 position_(0) {} 25 position_(0) {}
26 26
27 explicit SnapshotByteSource(Vector<const byte> payload) 27 explicit SnapshotByteSource(Vector<const byte> payload)
28 : data_(payload.start()), length_(payload.length()), position_(0) {} 28 : data_(payload.start()), length_(payload.length()), position_(0) {}
29 29
30 ~SnapshotByteSource() {} 30 ~SnapshotByteSource() {}
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const List<byte>& data() const { return data_; } 98 const List<byte>& data() const { return data_; }
99 99
100 private: 100 private:
101 List<byte> data_; 101 List<byte> data_;
102 }; 102 };
103 103
104 } // namespace v8::internal 104 } // namespace v8::internal
105 } // namespace v8 105 } // namespace v8
106 106
107 #endif // V8_SNAPSHOT_SOURCE_SINK_H_ 107 #endif // V8_SNAPSHOT_SOURCE_SINK_H_
OLDNEW
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/string-stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698