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

Unified Diff: src/code-stubs.cc

Issue 172523002: Create a function call IC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed. Created 6 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 | « src/code-stubs.h ('k') | src/debug.h » ('j') | src/ia32/code-stubs-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index fe7d77eaa26f870d70f6a75c5f88ce055c894b76..a1759c3b6da9fcf54afa2191d4c961e9f2bae3ca 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -227,6 +227,17 @@ void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) {
}
+void CallICStub::GenerateAheadOfTime(Isolate* isolate) {
+ // Generate the uninitialized versions of the stub.
+ for (int arg_count = 0; arg_count < 4; arg_count++) {
+ CallICStub stub(CallIC::State(arg_count, CallIC::METHOD));
+ stub.GetCode(isolate);
+ CallICStub stub2(CallIC::State(arg_count, CallIC::FUNCTION));
+ stub2.GetCode(isolate);
+ }
+}
+
+
void BinaryOpICStub::PrintState(StringStream* stream) {
state_.Print(stream);
}
@@ -499,6 +510,11 @@ Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) {
}
+void CallICStub::PrintState(StringStream* stream) {
+ state_.Print(stream);
+}
+
+
void InstanceofStub::PrintName(StringStream* stream) {
const char* args = "";
if (HasArgsInRegisters()) {
« no previous file with comments | « src/code-stubs.h ('k') | src/debug.h » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698