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

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

Issue 2309823002: [turbofan] put src/types.[h/cc] into src/compiler/types.[h/cc] (Closed)
Patch Set: Updates/comments. 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 | « test/cctest/test-types.cc ('k') | test/unittests/compiler/escape-analysis-unittest.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 17 matching lines...) Expand all
28 #ifndef V8_TEST_CCTEST_TYPES_H_ 28 #ifndef V8_TEST_CCTEST_TYPES_H_
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 namespace compiler {
38 39
39 class Types { 40 class Types {
40 public: 41 public:
41 Types(Zone* zone, Isolate* isolate, v8::base::RandomNumberGenerator* rng) 42 Types(Zone* zone, Isolate* isolate, v8::base::RandomNumberGenerator* rng)
42 : zone_(zone), rng_(rng) { 43 : zone_(zone), rng_(rng) {
43 #define DECLARE_TYPE(name, value) \ 44 #define DECLARE_TYPE(name, value) \
44 name = Type::name(); \ 45 name = Type::name(); \
45 types.push_back(name); 46 types.push_back(name);
46 PROPER_BITSET_TYPE_LIST(DECLARE_TYPE) 47 PROPER_BITSET_TYPE_LIST(DECLARE_TYPE)
47 #undef DECLARE_TYPE 48 #undef DECLARE_TYPE
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 UNREACHABLE(); 200 UNREACHABLE();
200 } 201 }
201 202
202 Zone* zone() { return zone_; } 203 Zone* zone() { return zone_; }
203 204
204 private: 205 private:
205 Zone* zone_; 206 Zone* zone_;
206 v8::base::RandomNumberGenerator* rng_; 207 v8::base::RandomNumberGenerator* rng_;
207 }; 208 };
208 209
209 210 } // namespace compiler
210 } // namespace internal 211 } // namespace internal
211 } // namespace v8 212 } // namespace v8
212 213
213 #endif 214 #endif
OLDNEW
« no previous file with comments | « test/cctest/test-types.cc ('k') | test/unittests/compiler/escape-analysis-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698