| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 return false; | 333 return false; |
| 334 } | 334 } |
| 335 | 335 |
| 336 | 336 |
| 337 bool ThreadHandle::IsValid() const { | 337 bool ThreadHandle::IsValid() const { |
| 338 UNIMPLEMENTED(); | 338 UNIMPLEMENTED(); |
| 339 return false; | 339 return false; |
| 340 } | 340 } |
| 341 | 341 |
| 342 | 342 |
| 343 Thread::Thread(Isolate* isolate) | 343 Thread::Thread(Isolate* isolate, const Options& options) |
| 344 : ThreadHandle(ThreadHandle::INVALID), | 344 : ThreadHandle(ThreadHandle::INVALID), |
| 345 isolate_(isolate) { | 345 isolate_(isolate), |
| 346 set_name("v8:<unknown>"); | 346 stack_size_(options.stack_size) { |
| 347 set_name(options.name); |
| 347 UNIMPLEMENTED(); | 348 UNIMPLEMENTED(); |
| 348 } | 349 } |
| 349 | 350 |
| 350 | 351 |
| 351 Thread::Thread(Isolate* isolate, const char* name) | 352 Thread::Thread(Isolate* isolate, const char* name) |
| 352 : ThreadHandle(ThreadHandle::INVALID), | 353 : ThreadHandle(ThreadHandle::INVALID), |
| 353 isolate_(isolate) { | 354 isolate_(isolate), |
| 355 stack_size_(0) { |
| 354 set_name(name); | 356 set_name(name); |
| 355 UNIMPLEMENTED(); | 357 UNIMPLEMENTED(); |
| 356 } | 358 } |
| 357 | 359 |
| 358 | 360 |
| 359 Thread::~Thread() { | 361 Thread::~Thread() { |
| 360 UNIMPLEMENTED(); | 362 UNIMPLEMENTED(); |
| 361 } | 363 } |
| 362 | 364 |
| 363 | 365 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 } | 495 } |
| 494 | 496 |
| 495 | 497 |
| 496 void ProfileSampler::Stop() { | 498 void ProfileSampler::Stop() { |
| 497 UNIMPLEMENTED(); | 499 UNIMPLEMENTED(); |
| 498 } | 500 } |
| 499 | 501 |
| 500 #endif // ENABLE_LOGGING_AND_PROFILING | 502 #endif // ENABLE_LOGGING_AND_PROFILING |
| 501 | 503 |
| 502 } } // namespace v8::internal | 504 } } // namespace v8::internal |
| OLD | NEW |