| OLD | NEW |
| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 return false; | 292 return false; |
| 293 } | 293 } |
| 294 | 294 |
| 295 | 295 |
| 296 bool VirtualMemory::Uncommit(void* address, size_t size) { | 296 bool VirtualMemory::Uncommit(void* address, size_t size) { |
| 297 UNIMPLEMENTED(); | 297 UNIMPLEMENTED(); |
| 298 return false; | 298 return false; |
| 299 } | 299 } |
| 300 | 300 |
| 301 | 301 |
| 302 class ThreadHandle::PlatformData : public Malloced { | 302 class Thread::PlatformData : public Malloced { |
| 303 public: | 303 public: |
| 304 explicit PlatformData(ThreadHandle::Kind kind) { | 304 PlatformData() { |
| 305 UNIMPLEMENTED(); | 305 UNIMPLEMENTED(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void* pd_data_; | 308 void* pd_data_; |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 | 311 |
| 312 ThreadHandle::ThreadHandle(Kind kind) { | |
| 313 UNIMPLEMENTED(); | |
| 314 // Shared setup follows. | |
| 315 data_ = new PlatformData(kind); | |
| 316 } | |
| 317 | |
| 318 | |
| 319 void ThreadHandle::Initialize(ThreadHandle::Kind kind) { | |
| 320 UNIMPLEMENTED(); | |
| 321 } | |
| 322 | |
| 323 | |
| 324 ThreadHandle::~ThreadHandle() { | |
| 325 UNIMPLEMENTED(); | |
| 326 // Shared tear down follows. | |
| 327 delete data_; | |
| 328 } | |
| 329 | |
| 330 | |
| 331 bool ThreadHandle::IsSelf() const { | |
| 332 UNIMPLEMENTED(); | |
| 333 return false; | |
| 334 } | |
| 335 | |
| 336 | |
| 337 bool ThreadHandle::IsValid() const { | |
| 338 UNIMPLEMENTED(); | |
| 339 return false; | |
| 340 } | |
| 341 | |
| 342 | |
| 343 Thread::Thread(Isolate* isolate, const Options& options) | 312 Thread::Thread(Isolate* isolate, const Options& options) |
| 344 : ThreadHandle(ThreadHandle::INVALID), | 313 : data_(new PlatformData()), |
| 345 isolate_(isolate), | 314 isolate_(isolate), |
| 346 stack_size_(options.stack_size) { | 315 stack_size_(options.stack_size) { |
| 347 set_name(options.name); | 316 set_name(options.name); |
| 348 UNIMPLEMENTED(); | 317 UNIMPLEMENTED(); |
| 349 } | 318 } |
| 350 | 319 |
| 351 | 320 |
| 352 Thread::Thread(Isolate* isolate, const char* name) | 321 Thread::Thread(Isolate* isolate, const char* name) |
| 353 : ThreadHandle(ThreadHandle::INVALID), | 322 : data_(new PlatformData()), |
| 354 isolate_(isolate), | 323 isolate_(isolate), |
| 355 stack_size_(0) { | 324 stack_size_(0) { |
| 356 set_name(name); | 325 set_name(name); |
| 357 UNIMPLEMENTED(); | 326 UNIMPLEMENTED(); |
| 358 } | 327 } |
| 359 | 328 |
| 360 | 329 |
| 361 Thread::~Thread() { | 330 Thread::~Thread() { |
| 331 delete data_; |
| 362 UNIMPLEMENTED(); | 332 UNIMPLEMENTED(); |
| 363 } | 333 } |
| 364 | 334 |
| 365 | 335 |
| 366 void Thread::set_name(const char* name) { | 336 void Thread::set_name(const char* name) { |
| 367 strncpy(name_, name, sizeof(name_)); | 337 strncpy(name_, name, sizeof(name_)); |
| 368 name_[sizeof(name_) - 1] = '\0'; | 338 name_[sizeof(name_) - 1] = '\0'; |
| 369 } | 339 } |
| 370 | 340 |
| 371 | 341 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 } | 465 } |
| 496 | 466 |
| 497 | 467 |
| 498 void ProfileSampler::Stop() { | 468 void ProfileSampler::Stop() { |
| 499 UNIMPLEMENTED(); | 469 UNIMPLEMENTED(); |
| 500 } | 470 } |
| 501 | 471 |
| 502 #endif // ENABLE_LOGGING_AND_PROFILING | 472 #endif // ENABLE_LOGGING_AND_PROFILING |
| 503 | 473 |
| 504 } } // namespace v8::internal | 474 } } // namespace v8::internal |
| OLD | NEW |