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

Unified Diff: src/code-stubs.cc

Issue 1248303002: Unify runtime-style IC functions with Runtime intrinsics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make mips work Created 5 years, 5 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/assembler.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
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 5d802bd7ac9bab6f3f072442d0139963bcdf952b..0832465f5c7e3d2a4ba434dc0cd000ff7165cfc7 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -625,7 +625,8 @@ void JSEntryStub::FinishCode(Handle<Code> code) {
void LoadDictionaryElementStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
+ descriptor->Initialize(
+ FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure));
}
@@ -640,11 +641,13 @@ void KeyedLoadGenericStub::InitializeDescriptor(
void HandlerStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
if (kind() == Code::STORE_IC) {
- descriptor->Initialize(FUNCTION_ADDR(StoreIC_MissFromStubFailure));
+ descriptor->Initialize(FUNCTION_ADDR(Runtime_StoreIC_MissFromStubFailure));
} else if (kind() == Code::KEYED_LOAD_IC) {
- descriptor->Initialize(FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
+ descriptor->Initialize(
+ FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure));
} else if (kind() == Code::KEYED_STORE_IC) {
- descriptor->Initialize(FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
+ descriptor->Initialize(
+ FUNCTION_ADDR(Runtime_KeyedStoreIC_MissFromStubFailure));
}
}
@@ -661,13 +664,15 @@ CallInterfaceDescriptor HandlerStub::GetCallInterfaceDescriptor() const {
void StoreFastElementStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
+ descriptor->Initialize(
+ FUNCTION_ADDR(Runtime_KeyedStoreIC_MissFromStubFailure));
}
void ElementsTransitionAndStoreStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss));
+ descriptor->Initialize(
+ FUNCTION_ADDR(Runtime_ElementsTransitionAndStoreIC_Miss));
}
@@ -754,29 +759,30 @@ void AllocateHeapNumberStub::InitializeDescriptor(
void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(CompareNilIC_Miss));
- descriptor->SetMissHandler(
- ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate()));
+ descriptor->Initialize(FUNCTION_ADDR(Runtime_CompareNilIC_Miss));
+ descriptor->SetMissHandler(ExternalReference(
+ Runtime::FunctionForId(Runtime::kCompareNilIC_Miss), isolate()));
}
void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(ToBooleanIC_Miss));
- descriptor->SetMissHandler(
- ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate()));
+ descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss));
+ descriptor->SetMissHandler(ExternalReference(
+ Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate()));
}
void BinaryOpICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(BinaryOpIC_Miss));
- descriptor->SetMissHandler(
- ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
+ descriptor->Initialize(FUNCTION_ADDR(Runtime_BinaryOpIC_Miss));
+ descriptor->SetMissHandler(ExternalReference(
+ Runtime::FunctionForId(Runtime::kBinaryOpIC_Miss), isolate()));
}
void BinaryOpWithAllocationSiteStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
- descriptor->Initialize(FUNCTION_ADDR(BinaryOpIC_MissWithAllocationSite));
+ descriptor->Initialize(
+ FUNCTION_ADDR(Runtime_BinaryOpIC_MissWithAllocationSite));
}
« no previous file with comments | « src/assembler.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698