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

Unified Diff: src/field-type.cc

Issue 1703513002: [runtime] More LookupIterator / Transition related performance tweaks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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/field-type.h ('k') | src/lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-type.cc
diff --git a/src/field-type.cc b/src/field-type.cc
index f049b5be61acd1490e1d41dea74a77d9dcdf07d7..76d694c132628f058016158130368b98cf665661 100644
--- a/src/field-type.cc
+++ b/src/field-type.cc
@@ -45,17 +45,6 @@ FieldType* FieldType::cast(Object* object) {
return reinterpret_cast<FieldType*>(object);
}
-bool FieldType::NowContains(Object* value) {
- if (this == Any()) return true;
- if (this == None()) return false;
- if (!value->IsHeapObject()) return false;
- return HeapObject::cast(value)->map() == Map::cast(this);
-}
-
-bool FieldType::NowContains(Handle<Object> value) {
- return NowContains(*value);
-}
-
bool FieldType::IsClass() { return this->IsMap(); }
Handle<i::Map> FieldType::AsClass() {
« no previous file with comments | « src/field-type.h ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698