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

Side by Side Diff: src/base/platform/platform-fuchsia.cc

Issue 2932053004: Stubbed out linking on Fuchsia (Closed)
Patch Set: Created 3 years, 6 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/base/debug/stack_trace_fuchsia.cc ('k') | src/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "src/base/macros.h"
6 #include "src/base/platform/platform-posix.h"
7 #include "src/base/platform/platform.h"
8
9 namespace v8 {
10 namespace base {
11
12 TimezoneCache* OS::CreateTimezoneCache() { return new PosixTimezoneCache(); }
13
14 std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
15 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
16 return std::vector<SharedLibraryAddress>();
17 }
18
19 void OS::SignalCodeMovingGC() {
20 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
21 }
22
23 VirtualMemory::VirtualMemory() : address_(NULL), size_(0) {}
24
25 VirtualMemory::VirtualMemory(size_t size)
26 : address_(ReserveRegion(size)), size_(size) {
27 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
28 }
29
30 VirtualMemory::VirtualMemory(size_t size, size_t alignment)
31 : address_(NULL), size_(0) {}
32
33 VirtualMemory::~VirtualMemory() {}
34
35 bool VirtualMemory::IsReserved() { return false; }
36
37 void VirtualMemory::Reset() {}
38
39 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) {
40 return false;
41 }
42
43 bool VirtualMemory::Uncommit(void* address, size_t size) { return false; }
44
45 bool VirtualMemory::Guard(void* address) { return false; }
46
47 // static
48 void* VirtualMemory::ReserveRegion(size_t size) {
49 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
50 return NULL;
51 }
52
53 // static
54 bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) {
55 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
56 return false;
57 }
58
59 // static
60 bool VirtualMemory::UncommitRegion(void* base, size_t size) {
61 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
62 return false;
63 }
64
65 // static
66 bool VirtualMemory::ReleasePartialRegion(void* base, size_t size,
67 void* free_start, size_t free_size) {
68 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
69 return false;
70 }
71
72 // static
73 bool VirtualMemory::ReleaseRegion(void* base, size_t size) {
74 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
75 return false;
76 }
77
78 // static
79 bool VirtualMemory::HasLazyCommits() {
80 CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
81 return false;
82 }
83
84 } // namespace base
85 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/debug/stack_trace_fuchsia.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698