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

Unified Diff: src/ic/stub-cache.h

Issue 535873002: Encapsulate megamorphic load/tail-call in hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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/ic/ic-compiler.cc ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/stub-cache.h
diff --git a/src/ic/stub-cache.h b/src/ic/stub-cache.h
index eb5343f85610f7d0b0f87f8612178568584aeab8..7aee6f16ad2f3fc18449286d3f39017e9289b4ca 100644
--- a/src/ic/stub-cache.h
+++ b/src/ic/stub-cache.h
@@ -51,9 +51,11 @@ class StubCache {
// Generate code for probing the stub cache table.
// Arguments extra, extra2 and extra3 may be used to pass additional scratch
// registers. Set to no_reg if not needed.
- void GenerateProbe(MacroAssembler* masm, Code::Flags flags, Register receiver,
- Register name, Register scratch, Register extra,
- Register extra2 = no_reg, Register extra3 = no_reg);
+ // If leave_frame is true, then exit a frame before the tail call.
+ void GenerateProbe(MacroAssembler* masm, Code::Flags flags, bool leave_frame,
+ Register receiver, Register name, Register scratch,
+ Register extra, Register extra2 = no_reg,
+ Register extra3 = no_reg);
enum Table { kPrimary, kSecondary };
@@ -153,6 +155,7 @@ class StubCache {
static const int kSecondaryTableBits = 9;
static const int kSecondaryTableSize = (1 << kSecondaryTableBits);
+ private:
Entry primary_[kPrimaryTableSize];
Entry secondary_[kSecondaryTableSize];
Isolate* isolate_;
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698