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

Unified Diff: src/code-stubs.cc

Issue 1114563003: Optimize the typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 years, 8 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
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index e3940dad649cb1de5b44bcb29431495d1afc58d5..13ebfa048931326b9ef503261e88337c36c5de9e 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -633,6 +633,9 @@ void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {}
+void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {}
+
+
void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
NumberToStringDescriptor call_descriptor(isolate());
descriptor->Initialize(
@@ -715,6 +718,12 @@ void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
}
+void TypeofStub::GenerateAheadOfTime(Isolate* isolate) {
+ TypeofStub stub(isolate);
+ stub.GetCode();
+}
+
+
void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) {
CreateAllocationSiteStub stub(isolate);
stub.GetCode();
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | src/mips/lithium-codegen-mips.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698