Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/base/platform/platform.h

Issue 462033002: Fix newly discovered presubmit errors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More of the same. Created 6 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/arm64/macro-assembler-arm64.h ('k') | src/code-stubs.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This module contains the platform-specific code. This make the rest of the 5 // This module contains the platform-specific code. This make the rest of the
6 // code less dependent on operating system, compilers and runtime libraries. 6 // code less dependent on operating system, compilers and runtime libraries.
7 // This module does specifically not deal with differences between different 7 // This module does specifically not deal with differences between different
8 // processor architecture. 8 // processor architecture.
9 // The platform classes have the same definition for all platforms. The 9 // The platform classes have the same definition for all platforms. The
10 // implementation for a particular platform is put in platform_<os>.cc. 10 // implementation for a particular platform is put in platform_<os>.cc.
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // terminated. 421 // terminated.
422 422
423 class Thread { 423 class Thread {
424 public: 424 public:
425 // Opaque data type for thread-local storage keys. 425 // Opaque data type for thread-local storage keys.
426 typedef int32_t LocalStorageKey; 426 typedef int32_t LocalStorageKey;
427 427
428 class Options { 428 class Options {
429 public: 429 public:
430 Options() : name_("v8:<unknown>"), stack_size_(0) {} 430 Options() : name_("v8:<unknown>"), stack_size_(0) {}
431 Options(const char* name, int stack_size = 0) 431 explicit Options(const char* name, int stack_size = 0)
432 : name_(name), stack_size_(stack_size) {} 432 : name_(name), stack_size_(stack_size) {}
433 433
434 const char* name() const { return name_; } 434 const char* name() const { return name_; }
435 int stack_size() const { return stack_size_; } 435 int stack_size() const { return stack_size_; }
436 436
437 private: 437 private:
438 const char* name_; 438 const char* name_;
439 int stack_size_; 439 int stack_size_;
440 }; 440 };
441 441
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 char name_[kMaxThreadNameLength]; 517 char name_[kMaxThreadNameLength];
518 int stack_size_; 518 int stack_size_;
519 Semaphore* start_semaphore_; 519 Semaphore* start_semaphore_;
520 520
521 DISALLOW_COPY_AND_ASSIGN(Thread); 521 DISALLOW_COPY_AND_ASSIGN(Thread);
522 }; 522 };
523 523
524 } } // namespace v8::base 524 } } // namespace v8::base
525 525
526 #endif // V8_BASE_PLATFORM_PLATFORM_H_ 526 #endif // V8_BASE_PLATFORM_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698