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

Unified Diff: src/globals.h

Issue 1436493002: [builtins] Introduce specialized Call/CallFunction builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/full-codegen/x64/full-codegen-x64.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 42144714ef4bc6ff02942b73b7e886c8b6830ade..c3358870e5acc2193ac159b498a4ad1049fc6931 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -743,6 +743,31 @@ enum CpuFeature {
};
+// Defines hints about receiver values based on structural knowledge.
+enum class ConvertReceiverMode : unsigned {
+ kNullOrUndefined, // Guaranteed to be null or undefined.
+ kNotNullOrUndefined, // Guaranteed to never be null or undefined.
+ kAny // No specific knowledge about receiver.
+};
+
+inline size_t hash_value(ConvertReceiverMode mode) {
+ return bit_cast<unsigned>(mode);
+}
+
+inline std::ostream& operator<<(std::ostream& os, ConvertReceiverMode mode) {
+ switch (mode) {
+ case ConvertReceiverMode::kNullOrUndefined:
+ return os << "NULL_OR_UNDEFINED";
+ case ConvertReceiverMode::kNotNullOrUndefined:
+ return os << "NOT_NULL_OR_UNDEFINED";
+ case ConvertReceiverMode::kAny:
+ return os << "ANY";
+ }
+ UNREACHABLE();
+ return os;
+}
+
+
// Used to specify if a macro instruction must perform a smi check on tagged
// values.
enum SmiCheckType {
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698