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/platform-nullos.cc

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-openbsd.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return NULL; 210 return NULL;
211 } 211 }
212 212
213 213
214 void OS::Free(void* buf, const size_t length) { 214 void OS::Free(void* buf, const size_t length) {
215 // TODO(1240712): potential system call return value which is ignored here. 215 // TODO(1240712): potential system call return value which is ignored here.
216 UNIMPLEMENTED(); 216 UNIMPLEMENTED();
217 } 217 }
218 218
219 219
220 #ifdef ENABLE_HEAP_PROTECTION 220 void OS::Guard(void* address, const size_t size) {
221
222 void OS::Protect(void* address, size_t size) {
223 UNIMPLEMENTED(); 221 UNIMPLEMENTED();
224 } 222 }
225 223
226 224
227 void OS::Unprotect(void* address, size_t size, bool is_executable) {
228 UNIMPLEMENTED();
229 }
230
231 #endif
232
233
234 void OS::Sleep(int milliseconds) { 225 void OS::Sleep(int milliseconds) {
235 UNIMPLEMENTED(); 226 UNIMPLEMENTED();
236 } 227 }
237 228
238 229
239 void OS::Abort() { 230 void OS::Abort() {
240 // Minimalistic implementation for bootstrapping. 231 // Minimalistic implementation for bootstrapping.
241 abort(); 232 abort();
242 } 233 }
243 234
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 private: 421 private:
431 void* data_; 422 void* data_;
432 }; 423 };
433 424
434 425
435 Semaphore* OS::CreateSemaphore(int count) { 426 Semaphore* OS::CreateSemaphore(int count) {
436 UNIMPLEMENTED(); 427 UNIMPLEMENTED();
437 return new NullSemaphore(count); 428 return new NullSemaphore(count);
438 } 429 }
439 430
440 #ifdef ENABLE_LOGGING_AND_PROFILING
441 431
442 class ProfileSampler::PlatformData : public Malloced { 432 class ProfileSampler::PlatformData : public Malloced {
443 public: 433 public:
444 PlatformData() { 434 PlatformData() {
445 UNIMPLEMENTED(); 435 UNIMPLEMENTED();
446 } 436 }
447 }; 437 };
448 438
449 439
450 ProfileSampler::ProfileSampler(int interval) { 440 ProfileSampler::ProfileSampler(int interval) {
(...skipping 14 matching lines...) Expand all
465 455
466 void ProfileSampler::Start() { 456 void ProfileSampler::Start() {
467 UNIMPLEMENTED(); 457 UNIMPLEMENTED();
468 } 458 }
469 459
470 460
471 void ProfileSampler::Stop() { 461 void ProfileSampler::Stop() {
472 UNIMPLEMENTED(); 462 UNIMPLEMENTED();
473 } 463 }
474 464
475 #endif // ENABLE_LOGGING_AND_PROFILING
476 465
477 } } // namespace v8::internal 466 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698