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

Side by Side Diff: src/types.h

Issue 298133005: Remove cpp hack to avoid link failures on Windows (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « no previous file | test/cctest/test-types.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_TYPES_H_ 5 #ifndef V8_TYPES_H_
6 #define V8_TYPES_H_ 6 #define V8_TYPES_H_
7 7
8 #include "handles.h" 8 #include "handles.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 TypeHandle other, bool is_intersect, Region* region); 462 TypeHandle other, bool is_intersect, Region* region);
463 static int NormalizeUnion(UnionHandle unioned, int current_size, int bitset); 463 static int NormalizeUnion(UnionHandle unioned, int current_size, int bitset);
464 }; 464 };
465 465
466 466
467 // ----------------------------------------------------------------------------- 467 // -----------------------------------------------------------------------------
468 // Bitset types (internal). 468 // Bitset types (internal).
469 469
470 template<class Config> 470 template<class Config>
471 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> { 471 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> {
472 private: 472 protected:
473 friend class TypeImpl<Config>; 473 friend class TypeImpl<Config>;
474 474
475 enum { 475 enum {
476 #define DECLARE_TYPE(type, value) k##type = (value), 476 #define DECLARE_TYPE(type, value) k##type = (value),
477 BITSET_TYPE_LIST(DECLARE_TYPE) 477 BITSET_TYPE_LIST(DECLARE_TYPE)
478 #undef DECLARE_TYPE 478 #undef DECLARE_TYPE
479 kUnusedEOL = 0 479 kUnusedEOL = 0
480 }; 480 };
481 481
482 int Bitset() { return Config::as_bitset(this); } 482 int Bitset() { return Config::as_bitset(this); }
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 bool Narrows(BoundsImpl that) { 924 bool Narrows(BoundsImpl that) {
925 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 925 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
926 } 926 }
927 }; 927 };
928 928
929 typedef BoundsImpl<ZoneTypeConfig> Bounds; 929 typedef BoundsImpl<ZoneTypeConfig> Bounds;
930 930
931 } } // namespace v8::internal 931 } } // namespace v8::internal
932 932
933 #endif // V8_TYPES_H_ 933 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698