From 90cab93be467b0218bcd9f78079a495b63a98b4f Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Tue, 27 Sep 2011 10:42:32 +0000 Subject: [PATCH] In Invoke get JSEntryStub and JSConstructEntryStub directly through roots. Getting them through stub cache introduces bigger overhead. These stubs are always present. R=danno@chromium.org Review URL: http://codereview.chromium.org/8044029 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9446 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/execution.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/execution.cc b/src/execution.cc index aa154df..c1cb043 100644 --- a/src/execution.cc +++ b/src/execution.cc @@ -88,11 +88,9 @@ static Handle Invoke(bool construct, Handle code; if (construct) { - JSConstructEntryStub stub; - code = stub.GetCode(); + code = isolate->factory()->js_construct_entry_code(); } else { - JSEntryStub stub; - code = stub.GetCode(); + code = isolate->factory()->js_entry_code(); } // Convert calls on global objects to be calls on the global -- 2.7.4