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

Unified Diff: src/field-index-inl.h

Issue 2412983008: [ic] Move Smi-handler creation code to SmiHandler class. (Closed)
Patch Set: Created 4 years, 2 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-index.h ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-index-inl.h
diff --git a/src/field-index-inl.h b/src/field-index-inl.h
index 15e458cbf1e0ab0e9e9a47174966e619792a862f..5ab02a5df4e7c9e6a05d0481f45bd651eb6455ce 100644
--- a/src/field-index-inl.h
+++ b/src/field-index-inl.h
@@ -6,7 +6,6 @@
#define V8_FIELD_INDEX_INL_H_
#include "src/field-index.h"
-#include "src/ic/handler-configuration.h"
namespace v8 {
namespace internal {
@@ -85,16 +84,6 @@ inline int FieldIndex::GetLoadByFieldIndex() const {
return is_double() ? (result | 1) : result;
}
-// Returns the offset format consumed by TurboFan stubs:
-// (offset << 3) | (is_double << 2) | (is_inobject << 1) | is_property
-// Where |offset| is relative to object start or FixedArray start, respectively.
-inline int FieldIndex::GetLoadByFieldOffset() const {
- return FieldOffsetIsInobject::encode(is_inobject()) |
- FieldOffsetIsDouble::encode(is_double()) |
- FieldOffsetOffset::encode(index() << kPointerSizeLog2) |
- LoadHandlerTypeBit::encode(kLoadICHandlerForProperties);
-}
-
inline FieldIndex FieldIndex::ForDescriptor(Map* map, int descriptor_index) {
PropertyDetails details =
map->instance_descriptors()->GetDetails(descriptor_index);
« no previous file with comments | « src/field-index.h ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698