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

Unified Diff: src/field-index.h

Issue 429053005: Avoid one repeated property lookup when computing load ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/field-index.cc » ('j') | src/field-index.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/field-index.h
diff --git a/src/field-index.h b/src/field-index.h
index 096b33509f7d40dd16d7f046df897b70d511fdf5..6aa4be761a18cfc40d7d4287a97675af1ff920bb 100644
--- a/src/field-index.h
+++ b/src/field-index.h
@@ -11,6 +11,7 @@
namespace v8 {
namespace internal {
+class LookupIterator;
class Map;
// Wrapper class to hold a field index, usually but not necessarily generated
@@ -24,6 +25,7 @@ class FieldIndex V8_FINAL {
bool is_double = false);
static FieldIndex ForInObjectOffset(int offset, Map* map = NULL);
static FieldIndex ForLookupResult(const LookupResult* result);
+ static FieldIndex ForLookupIterator(const LookupIterator* lookup);
static FieldIndex ForDescriptor(Map* map, int descriptor_index);
static FieldIndex ForLoadByFieldIndex(Map* map, int index);
static FieldIndex ForKeyedLookupCacheIndex(Map* map, int index);
« no previous file with comments | « no previous file | src/field-index.cc » ('j') | src/field-index.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698