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

Unified Diff: src/full-codegen.h

Issue 8883011: Implement ICs for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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/ast.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index fbb697924627935aa6536c2d27471219b8f80cc8..8695a2001fec002082fa7cac18bf637931b146d1 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -394,7 +394,7 @@ class FullCodeGenerator: public AstVisitor {
// Record a call's return site offset, used to rebuild the frame if the
// called function was inlined at the site.
- void RecordJSReturnSite(Call* call);
+ void RecordJSReturnSite(CallBase* call);
// Prepare for bailout before a test (or compare) and branch. If
// should_normalize, then the following comparison will not handle the
@@ -425,10 +425,16 @@ class FullCodeGenerator: public AstVisitor {
// Platform-specific return sequence
void EmitReturnSequence();
- // Platform-specific code sequences for calls
+ // Platform-specific code sequence for calls
void EmitCallWithStub(Call* expr, CallFunctionFlags flags);
- void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode);
- void EmitKeyedCallWithIC(Call* expr, Expression* key);
+
+ // Platform-specific code sequences for calls and constructor calls
+ void EmitCallWithIC(CallBase* expr,
+ Handle<Object> name,
+ RelocInfo::Mode mode);
+ void EmitKeyedCallWithIC(CallBase* expr,
+ Expression* key,
+ RelocInfo::Mode mode);
// Platform-specific code for inline runtime calls.
InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id);
« no previous file with comments | « src/ast.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698