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

Side by Side Diff: test/cctest/ast-types-fuzz.h

Issue 2309753002: [turbofan] Nuke class types. (Closed)
Patch Set: Created 4 years, 3 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/types.cc ('k') | test/cctest/test-ast-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 // 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
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
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
OLDNEW
« no previous file with comments | « src/types.cc ('k') | test/cctest/test-ast-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698