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

Unified Diff: src/objects-inl.h

Issue 1912633002: [ic] Split LoadIC into LoadGlobalIC and LoadIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 6 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
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 25e1d7d74b4c70993c4367a81e65a2270ecad947..5341bdf41bb77d3c151b12cdeb90ab68f81669e5 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -4851,15 +4851,19 @@ Code::Kind Code::kind() {
return ExtractKindFromFlags(flags());
}
-
bool Code::IsCodeStubOrIC() {
- return kind() == STUB || kind() == HANDLER || kind() == LOAD_IC ||
- kind() == KEYED_LOAD_IC || kind() == CALL_IC || kind() == STORE_IC ||
- kind() == KEYED_STORE_IC || kind() == BINARY_OP_IC ||
- kind() == COMPARE_IC || kind() == TO_BOOLEAN_IC;
+ switch (kind()) {
+ case STUB:
+ case HANDLER:
+#define CASE_KIND(kind) case kind:
+ IC_KIND_LIST(CASE_KIND)
+#undef CASE_KIND
+ return true;
+ default:
+ return false;
+ }
}
-
ExtraICState Code::extra_ic_state() {
DCHECK(is_inline_cache_stub() || is_debug_stub());
return ExtractExtraICStateFromFlags(flags());
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698