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

Unified Diff: src/types.h

Issue 1410343016: [turbofan] Introduce a Function type and optimize based on it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo unrelated change. Created 5 years, 1 month 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
« no previous file with comments | « src/compiler/typer.cc ('k') | src/types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/types.h
diff --git a/src/types.h b/src/types.h
index fb4e580491a12dd95c58f95e9e34cab41e1f7004..3c9e8c29226116b55930a4da25cbb73d19e4cb69 100644
--- a/src/types.h
+++ b/src/types.h
@@ -159,8 +159,8 @@ namespace internal {
// clang-format off
#define MASK_BITSET_TYPE_LIST(V) \
- V(Representation, 0xfff00000u) \
- V(Semantic, 0x000ffffeu)
+ V(Representation, 0xff800000u) \
+ V(Semantic, 0x007ffffeu)
#define REPRESENTATION(k) ((k) & BitsetType::kRepresentation)
#define SEMANTIC(k) ((k) & BitsetType::kSemantic)
@@ -205,7 +205,8 @@ namespace internal {
V(Undetectable, 1u << 16 | REPRESENTATION(kTaggedPointer)) \
V(OtherObject, 1u << 17 | REPRESENTATION(kTaggedPointer)) \
V(Proxy, 1u << 18 | REPRESENTATION(kTaggedPointer)) \
- V(Internal, 1u << 19 | REPRESENTATION(kTagged | kUntagged)) \
+ V(Function, 1u << 19 | REPRESENTATION(kTaggedPointer)) \
+ V(Internal, 1u << 20 | REPRESENTATION(kTagged | kUntagged)) \
\
V(Signed31, kUnsigned30 | kNegative31) \
V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \
@@ -226,11 +227,10 @@ namespace internal {
V(NumberOrUndefined, kNumber | kUndefined) \
V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \
V(Primitive, kSymbol | kSimd | kPlainPrimitive) \
- V(DetectableReceiver, kOtherObject | kProxy) \
+ V(DetectableReceiver, kFunction | kOtherObject | kProxy) \
V(Detectable, kDetectableReceiver | kNumber | kName) \
- V(Object, kOtherObject | kUndetectable) \
+ V(Object, kFunction | kOtherObject | kUndetectable) \
V(Receiver, kObject | kProxy) \
- V(ReceiverOrUndefined, kReceiver | kUndefined) \
V(StringOrReceiver, kString | kReceiver) \
V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \
kReceiver) \
« no previous file with comments | « src/compiler/typer.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698