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 6711068: Use v8::internal threading support in samples/shell.cc. (Closed)
Patch Set: Created 9 years, 9 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
« 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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