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

Unified Diff: test/cctest/types-fuzz.h

Issue 795713003: Steps towards unification of number bitset and range types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing review comments. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: test/cctest/types-fuzz.h
diff --git a/test/cctest/types-fuzz.h b/test/cctest/types-fuzz.h
index 4eac64c838b409ce0c96b1383d28dc8867c09a33..cdc6d65220be089ded19a49e9b5092af1c3a8219 100644
--- a/test/cctest/types-fuzz.h
+++ b/test/cctest/types-fuzz.h
@@ -45,6 +45,11 @@ class Types {
PROPER_BITSET_TYPE_LIST(DECLARE_TYPE)
#undef DECLARE_TYPE
+ SignedSmall =
+ SmiValuesAre31Bits() ? Type::Signed31(region) : Type::Signed32(region);
rossberg 2015/01/19 11:43:56 Hm, why don't you call Type::SignedSmall here?
+ UnsignedSmall = SmiValuesAre31Bits() ? Type::Unsigned30(region)
+ : Type::Unsigned31(region);
+
object_map = isolate->factory()->NewMap(
JS_OBJECT_TYPE, JSObject::kHeaderSize);
array_map = isolate->factory()->NewMap(
@@ -130,6 +135,8 @@ class Types {
#define DECLARE_TYPE(name, value) TypeHandle name;
PROPER_BITSET_TYPE_LIST(DECLARE_TYPE)
#undef DECLARE_TYPE
+ TypeHandle SignedSmall;
+ TypeHandle UnsignedSmall;
TypeHandle ObjectClass;
TypeHandle ArrayClass;

Powered by Google App Engine
This is Rietveld 408576698