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() : ThreadHandle(ThreadHandle::INVALID) { | 343 Thread::Thread(Isolate* isolate) |
| 344 : ThreadHandle(ThreadHandle::INVALID), |
| 345 isolate_(isolate) { |
344 set_name("v8:<unknown>"); | 346 set_name("v8:<unknown>"); |
345 UNIMPLEMENTED(); | 347 UNIMPLEMENTED(); |
346 } | 348 } |
347 | 349 |
348 | 350 |
349 Thread::Thread(const char* name) : ThreadHandle(ThreadHandle::INVALID) { | 351 Thread::Thread(Isolate* isolate, const char* name) |
| 352 : ThreadHandle(ThreadHandle::INVALID), |
| 353 isolate_(isolate) { |
350 set_name(name); | 354 set_name(name); |
351 UNIMPLEMENTED(); | 355 UNIMPLEMENTED(); |
352 } | 356 } |
353 | 357 |
354 | 358 |
355 Thread::~Thread() { | 359 Thread::~Thread() { |
356 UNIMPLEMENTED(); | 360 UNIMPLEMENTED(); |
357 } | 361 } |
358 | 362 |
359 | 363 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 } | 493 } |
490 | 494 |
491 | 495 |
492 void ProfileSampler::Stop() { | 496 void ProfileSampler::Stop() { |
493 UNIMPLEMENTED(); | 497 UNIMPLEMENTED(); |
494 } | 498 } |
495 | 499 |
496 #endif // ENABLE_LOGGING_AND_PROFILING | 500 #endif // ENABLE_LOGGING_AND_PROFILING |
497 | 501 |
498 } } // namespace v8::internal | 502 } } // namespace v8::internal |
OLD | NEW |