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

Side by Side Diff: src/code-stubs.cc

Issue 1114563003: Optimize the typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 626
627 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 627 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
628 descriptor->Initialize( 628 descriptor->Initialize(
629 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); 629 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry);
630 } 630 }
631 631
632 632
633 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} 633 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {}
634 634
635 635
636 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {}
637
638
636 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 639 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
637 NumberToStringDescriptor call_descriptor(isolate()); 640 NumberToStringDescriptor call_descriptor(isolate());
638 descriptor->Initialize( 641 descriptor->Initialize(
639 Runtime::FunctionForId(Runtime::kNumberToStringRT)->entry); 642 Runtime::FunctionForId(Runtime::kNumberToStringRT)->entry);
640 } 643 }
641 644
642 645
643 void FastCloneShallowArrayStub::InitializeDescriptor( 646 void FastCloneShallowArrayStub::InitializeDescriptor(
644 CodeStubDescriptor* descriptor) { 647 CodeStubDescriptor* descriptor) {
645 FastCloneShallowArrayDescriptor call_descriptor(isolate()); 648 FastCloneShallowArrayDescriptor call_descriptor(isolate());
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 } 718 }
716 719
717 720
718 void GrowArrayElementsStub::InitializeDescriptor( 721 void GrowArrayElementsStub::InitializeDescriptor(
719 CodeStubDescriptor* descriptor) { 722 CodeStubDescriptor* descriptor) {
720 descriptor->Initialize( 723 descriptor->Initialize(
721 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry); 724 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry);
722 } 725 }
723 726
724 727
728 void TypeofStub::GenerateAheadOfTime(Isolate* isolate) {
729 TypeofStub stub(isolate);
730 stub.GetCode();
731 }
732
733
725 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { 734 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) {
726 CreateAllocationSiteStub stub(isolate); 735 CreateAllocationSiteStub stub(isolate);
727 stub.GetCode(); 736 stub.GetCode();
728 } 737 }
729 738
730 739
731 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { 740 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) {
732 CreateWeakCellStub stub(isolate); 741 CreateWeakCellStub stub(isolate);
733 stub.GetCode(); 742 stub.GetCode();
734 } 743 }
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 } 995 }
987 996
988 997
989 InternalArrayConstructorStub::InternalArrayConstructorStub( 998 InternalArrayConstructorStub::InternalArrayConstructorStub(
990 Isolate* isolate) : PlatformCodeStub(isolate) { 999 Isolate* isolate) : PlatformCodeStub(isolate) {
991 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1000 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
992 } 1001 }
993 1002
994 1003
995 } } // namespace v8::internal 1004 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698