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

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

Issue 1074133002: Remove Type::Array bit and replace with Type::GlobalObject (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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') | no next file » | 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 smi = handle(Smi::FromInt(666), isolate); 71 smi = handle(Smi::FromInt(666), isolate);
72 signed32 = isolate->factory()->NewHeapNumber(0x40000000); 72 signed32 = isolate->factory()->NewHeapNumber(0x40000000);
73 object1 = isolate->factory()->NewJSObjectFromMap(object_map); 73 object1 = isolate->factory()->NewJSObjectFromMap(object_map);
74 object2 = isolate->factory()->NewJSObjectFromMap(object_map); 74 object2 = isolate->factory()->NewJSObjectFromMap(object_map);
75 array = isolate->factory()->NewJSArray(20); 75 array = isolate->factory()->NewJSArray(20);
76 uninitialized = isolate->factory()->uninitialized_value(); 76 uninitialized = isolate->factory()->uninitialized_value();
77 SmiConstant = Type::Constant(smi, region); 77 SmiConstant = Type::Constant(smi, region);
78 Signed32Constant = Type::Constant(signed32, region); 78 Signed32Constant = Type::Constant(signed32, region);
79
79 ObjectConstant1 = Type::Constant(object1, region); 80 ObjectConstant1 = Type::Constant(object1, region);
80 ObjectConstant2 = Type::Constant(object2, region); 81 ObjectConstant2 = Type::Constant(object2, region);
81 ArrayConstant = Type::Constant(array, region); 82 ArrayConstant = Type::Constant(array, region);
82 UninitializedConstant = Type::Constant(uninitialized, region); 83 UninitializedConstant = Type::Constant(uninitialized, region);
83 84
84 values.push_back(smi); 85 values.push_back(smi);
85 values.push_back(signed32); 86 values.push_back(signed32);
86 values.push_back(object1); 87 values.push_back(object1);
87 values.push_back(object2); 88 values.push_back(object2);
88 values.push_back(array); 89 values.push_back(array);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 321
321 private: 322 private:
322 Region* region_; 323 Region* region_;
323 v8::base::RandomNumberGenerator* rng_; 324 v8::base::RandomNumberGenerator* rng_;
324 }; 325 };
325 326
326 327
327 } } // namespace v8::internal 328 } } // namespace v8::internal
328 329
329 #endif 330 #endif
OLDNEW
« no previous file with comments | « test/cctest/test-types.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698