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

Side by Side Diff: src/platform.h

Issue 545125: Initial Solaris support (Closed)
Patch Set: Fixed comments, simplified platform-solaris Created 10 years, 11 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/dtoa-config.c ('k') | src/platform-freebsd.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 26 matching lines...) Expand all
37 // the platform dependent classes could have been implemented using abstract 37 // the platform dependent classes could have been implemented using abstract
38 // superclasses with virtual methods and having specializations for each 38 // superclasses with virtual methods and having specializations for each
39 // platform. This design was rejected because it was more complicated and 39 // platform. This design was rejected because it was more complicated and
40 // slower. It would require factory methods for selecting the right 40 // slower. It would require factory methods for selecting the right
41 // implementation and the overhead of virtual methods for performance 41 // implementation and the overhead of virtual methods for performance
42 // sensitive like mutex locking/unlocking. 42 // sensitive like mutex locking/unlocking.
43 43
44 #ifndef V8_PLATFORM_H_ 44 #ifndef V8_PLATFORM_H_
45 #define V8_PLATFORM_H_ 45 #define V8_PLATFORM_H_
46 46
47 #ifdef __sun
48 // On Solaris, to get isinf, INFINITY, fpclassify and other macros one needs
49 // to define this symbol
50 #define __C99FEATURES__ 1
51 #endif
52
47 #define V8_INFINITY INFINITY 53 #define V8_INFINITY INFINITY
48 54
49 // Windows specific stuff. 55 // Windows specific stuff.
50 #ifdef WIN32 56 #ifdef WIN32
51 57
52 // Microsoft Visual C++ specific stuff. 58 // Microsoft Visual C++ specific stuff.
53 #ifdef _MSC_VER 59 #ifdef _MSC_VER
54 60
55 enum { 61 enum {
56 FP_NAN, 62 FP_NAN,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 bool active_; 553 bool active_;
548 PlatformData* data_; // Platform specific data. 554 PlatformData* data_; // Platform specific data.
549 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 555 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
550 }; 556 };
551 557
552 #endif // ENABLE_LOGGING_AND_PROFILING 558 #endif // ENABLE_LOGGING_AND_PROFILING
553 559
554 } } // namespace v8::internal 560 } } // namespace v8::internal
555 561
556 #endif // V8_PLATFORM_H_ 562 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/dtoa-config.c ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698