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

Unified Diff: src/objects.h

Issue 13552003: Add extra flag for load-ic stubs in code cache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « no previous file | src/stub-cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index bd3a2844e1012a88055a01d4129f67032923014b..6ceeb9549584a2ecc5c52fe71f319a094dad55ce 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4352,6 +4352,11 @@ class Code: public HeapObject {
NONEXISTENT
};
+ enum StubHolder {
+ OWN_STUB,
+ PROTOTYPE_STUB
+ };
+
enum {
NUMBER_OF_KINDS = LAST_IC_KIND + 1
};
@@ -4547,6 +4552,8 @@ class Code: public HeapObject {
class ExtraICStateKeyedAccessStoreMode:
public BitField<KeyedAccessStoreMode, 1, 4> {}; // NOLINT
+ class ExtraICStateStubHolder: public BitField<StubHolder, 0, 1> {};
+
static inline StrictModeFlag GetStrictMode(ExtraICState extra_ic_state) {
return ExtraICStateStrictMode::decode(extra_ic_state);
}
@@ -4563,6 +4570,10 @@ class Code: public HeapObject {
ExtraICStateStrictMode::encode(strict_mode);
}
+ static inline ExtraICState ComputeExtraICState(StubHolder stub_holder) {
+ return ExtraICStateStubHolder::encode(stub_holder);
+ }
+
// Flags operations.
static inline Flags ComputeFlags(
Kind kind,
« no previous file with comments | « no previous file | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698