OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 18 matching lines...) Expand all Loading... |
29 #define V8_TEST_CCTEST_TYPES_H_ | 29 #define V8_TEST_CCTEST_TYPES_H_ |
30 | 30 |
31 #include "src/base/utils/random-number-generator.h" | 31 #include "src/base/utils/random-number-generator.h" |
32 #include "src/factory.h" | 32 #include "src/factory.h" |
33 #include "src/isolate.h" | 33 #include "src/isolate.h" |
34 #include "src/v8.h" | 34 #include "src/v8.h" |
35 | 35 |
36 namespace v8 { | 36 namespace v8 { |
37 namespace internal { | 37 namespace internal { |
38 | 38 |
39 class Types { | 39 class AstTypes { |
40 public: | 40 public: |
41 Types(Zone* zone, Isolate* isolate, v8::base::RandomNumberGenerator* rng) | 41 AstTypes(Zone* zone, Isolate* isolate, v8::base::RandomNumberGenerator* rng) |
42 : zone_(zone), isolate_(isolate), rng_(rng) { | 42 : zone_(zone), isolate_(isolate), rng_(rng) { |
43 #define DECLARE_TYPE(name, value) \ | 43 #define DECLARE_TYPE(name, value) \ |
44 name = AstType::name(); \ | 44 name = AstType::name(); \ |
45 types.push_back(name); | 45 types.push_back(name); |
46 AST_PROPER_BITSET_TYPE_LIST(DECLARE_TYPE) | 46 AST_PROPER_BITSET_TYPE_LIST(DECLARE_TYPE) |
47 #undef DECLARE_TYPE | 47 #undef DECLARE_TYPE |
48 | 48 |
49 SignedSmall = AstType::SignedSmall(); | 49 SignedSmall = AstType::SignedSmall(); |
50 UnsignedSmall = AstType::UnsignedSmall(); | 50 UnsignedSmall = AstType::UnsignedSmall(); |
51 | 51 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 private: | 318 private: |
319 Zone* zone_; | 319 Zone* zone_; |
320 Isolate* isolate_; | 320 Isolate* isolate_; |
321 v8::base::RandomNumberGenerator* rng_; | 321 v8::base::RandomNumberGenerator* rng_; |
322 }; | 322 }; |
323 | 323 |
324 } // namespace internal | 324 } // namespace internal |
325 } // namespace v8 | 325 } // namespace v8 |
326 | 326 |
327 #endif | 327 #endif |
OLD | NEW |