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

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

Issue 703473004: [turbofan] Add AllocateHeapNumberStub to avoid runtime call. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 } 690 }
691 691
692 692
693 void TransitionElementsKindStub::InitializeDescriptor( 693 void TransitionElementsKindStub::InitializeDescriptor(
694 CodeStubDescriptor* descriptor) { 694 CodeStubDescriptor* descriptor) {
695 descriptor->Initialize( 695 descriptor->Initialize(
696 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry); 696 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry);
697 } 697 }
698 698
699 699
700 void AllocateHeapNumberStub::InitializeDescriptor(
701 CodeStubDescriptor* descriptor) {
702 descriptor->Initialize(
703 Runtime::FunctionForId(Runtime::kAllocateHeapNumber)->entry);
704 }
705
706
700 void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 707 void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
701 descriptor->Initialize(FUNCTION_ADDR(CompareNilIC_Miss)); 708 descriptor->Initialize(FUNCTION_ADDR(CompareNilIC_Miss));
702 descriptor->SetMissHandler( 709 descriptor->SetMissHandler(
703 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate())); 710 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate()));
704 } 711 }
705 712
706 713
707 void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 714 void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
708 descriptor->Initialize(FUNCTION_ADDR(ToBooleanIC_Miss)); 715 descriptor->Initialize(FUNCTION_ADDR(ToBooleanIC_Miss));
709 descriptor->SetMissHandler( 716 descriptor->SetMissHandler(
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 } 969 }
963 970
964 971
965 InternalArrayConstructorStub::InternalArrayConstructorStub( 972 InternalArrayConstructorStub::InternalArrayConstructorStub(
966 Isolate* isolate) : PlatformCodeStub(isolate) { 973 Isolate* isolate) : PlatformCodeStub(isolate) {
967 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 974 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
968 } 975 }
969 976
970 977
971 } } // namespace v8::internal 978 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | src/compiler/change-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698