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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/debug/stack_trace_fuchsia.cc ('k') | src/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/platform-fuchsia.cc
diff --git a/src/base/platform/platform-fuchsia.cc b/src/base/platform/platform-fuchsia.cc
new file mode 100644
index 0000000000000000000000000000000000000000..149ca037e47dedb69c9fe1a987a3600486a43c3d
--- /dev/null
+++ b/src/base/platform/platform-fuchsia.cc
@@ -0,0 +1,85 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/base/macros.h"
+#include "src/base/platform/platform-posix.h"
+#include "src/base/platform/platform.h"
+
+namespace v8 {
+namespace base {
+
+TimezoneCache* OS::CreateTimezoneCache() { return new PosixTimezoneCache(); }
+
+std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return std::vector<SharedLibraryAddress>();
+}
+
+void OS::SignalCodeMovingGC() {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+}
+
+VirtualMemory::VirtualMemory() : address_(NULL), size_(0) {}
+
+VirtualMemory::VirtualMemory(size_t size)
+ : address_(ReserveRegion(size)), size_(size) {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+}
+
+VirtualMemory::VirtualMemory(size_t size, size_t alignment)
+ : address_(NULL), size_(0) {}
+
+VirtualMemory::~VirtualMemory() {}
+
+bool VirtualMemory::IsReserved() { return false; }
+
+void VirtualMemory::Reset() {}
+
+bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) {
+ return false;
+}
+
+bool VirtualMemory::Uncommit(void* address, size_t size) { return false; }
+
+bool VirtualMemory::Guard(void* address) { return false; }
+
+// static
+void* VirtualMemory::ReserveRegion(size_t size) {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return NULL;
+}
+
+// static
+bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return false;
+}
+
+// static
+bool VirtualMemory::UncommitRegion(void* base, size_t size) {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return false;
+}
+
+// static
+bool VirtualMemory::ReleasePartialRegion(void* base, size_t size,
+ void* free_start, size_t free_size) {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return false;
+}
+
+// static
+bool VirtualMemory::ReleaseRegion(void* base, size_t size) {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return false;
+}
+
+// static
+bool VirtualMemory::HasLazyCommits() {
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217.
+ return false;
+}
+
+} // namespace base
+} // namespace v8
« 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