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

Unified Diff: src/ic/handler-configuration.h

Issue 2479373006: [ic] Support Api getters by data handlers. (Closed)
Patch Set: Created 4 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/counters.h ('k') | src/ic/handler-configuration-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/handler-configuration.h
diff --git a/src/ic/handler-configuration.h b/src/ic/handler-configuration.h
index 7ffe192c1af673486da517324f7f888eb19d3a03..b4887e33bac3243968a2c58a9ae92a167d6e2144 100644
--- a/src/ic/handler-configuration.h
+++ b/src/ic/handler-configuration.h
@@ -35,9 +35,11 @@ class LoadHandler {
// Encoding when KindBits contains kForConstants.
//
+ class IsAccessorInfoBits
+ : public BitField<bool, DoNegativeLookupOnReceiverBits::kNext, 1> {};
// +2 here is because each descriptor entry occupies 3 slots in array.
class DescriptorValueIndexBits
- : public BitField<unsigned, DoNegativeLookupOnReceiverBits::kNext,
+ : public BitField<unsigned, IsAccessorInfoBits::kNext,
kDescriptorIndexBitCount + 2> {};
// Make sure we don't overflow the smi.
STATIC_ASSERT(DescriptorValueIndexBits::kNext <= kSmiValueSize);
@@ -87,6 +89,9 @@ class LoadHandler {
// Creates a Smi-handler for loading a constant from fast object.
static inline Handle<Object> LoadConstant(Isolate* isolate, int descriptor);
+ // Creates a Smi-handler for loading an Api getter property from fast object.
+ static inline Handle<Object> LoadApiGetter(Isolate* isolate, int descriptor);
+
// Sets DoAccessCheckOnReceiverBits in given Smi-handler. The receiver
// check is a part of a prototype chain check.
static inline Handle<Object> EnableAccessCheckOnReceiver(
« no previous file with comments | « src/counters.h ('k') | src/ic/handler-configuration-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698