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 21095008: Revert the latest set of platform changes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { 470 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
471 UNIMPLEMENTED(); 471 UNIMPLEMENTED();
472 } 472 }
473 473
474 474
475 void Thread::YieldCPU() { 475 void Thread::YieldCPU() {
476 UNIMPLEMENTED(); 476 UNIMPLEMENTED();
477 } 477 }
478 478
479 479
480 class NullMutex : public Mutex {
481 public:
482 NullMutex() : data_(NULL) {
483 UNIMPLEMENTED();
484 }
485
486 virtual ~NullMutex() {
487 UNIMPLEMENTED();
488 }
489
490 virtual int Lock() {
491 UNIMPLEMENTED();
492 return 0;
493 }
494
495 virtual int Unlock() {
496 UNIMPLEMENTED();
497 return 0;
498 }
499
500 private:
501 void* data_;
502 };
503
504
505 Mutex* OS::CreateMutex() {
506 UNIMPLEMENTED();
507 return new NullMutex();
508 }
509
510
480 class NullSemaphore : public Semaphore { 511 class NullSemaphore : public Semaphore {
481 public: 512 public:
482 explicit NullSemaphore(int count) : data_(NULL) { 513 explicit NullSemaphore(int count) : data_(NULL) {
483 UNIMPLEMENTED(); 514 UNIMPLEMENTED();
484 } 515 }
485 516
486 virtual ~NullSemaphore() { 517 virtual ~NullSemaphore() {
487 UNIMPLEMENTED(); 518 UNIMPLEMENTED();
488 } 519 }
489 520
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 UNIMPLEMENTED(); 564 UNIMPLEMENTED();
534 } 565 }
535 566
536 567
537 void ProfileSampler::Stop() { 568 void ProfileSampler::Stop() {
538 UNIMPLEMENTED(); 569 UNIMPLEMENTED();
539 } 570 }
540 571
541 572
542 } } // namespace v8::internal 573 } } // 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