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

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

Issue 988653003: Use platform specific stubs for vector-based Load/KeyedLoad. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Included the MIPs port from Paul and Akos. Created 5 years, 9 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 CodeStubDescriptor* descriptor) { 613 CodeStubDescriptor* descriptor) {
614 descriptor->Initialize(FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); 614 descriptor->Initialize(FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss));
615 } 615 }
616 616
617 617
618 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() { 618 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() {
619 return StoreTransitionDescriptor(isolate()); 619 return StoreTransitionDescriptor(isolate());
620 } 620 }
621 621
622 622
623 static void InitializeVectorLoadStub(Isolate* isolate,
624 CodeStubDescriptor* descriptor,
625 Address deoptimization_handler) {
626 DCHECK(FLAG_vector_ics);
627 descriptor->Initialize(deoptimization_handler);
628 }
629
630
631 void VectorLoadStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
632 InitializeVectorLoadStub(isolate(), descriptor,
633 FUNCTION_ADDR(LoadIC_MissFromStubFailure));
634 }
635
636
637 void VectorKeyedLoadStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
638 InitializeVectorLoadStub(isolate(), descriptor,
639 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
640 }
641
642
643 void MegamorphicLoadStub::InitializeDescriptor(CodeStubDescriptor* d) {} 623 void MegamorphicLoadStub::InitializeDescriptor(CodeStubDescriptor* d) {}
644 624
645 625
646 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 626 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
647 descriptor->Initialize( 627 descriptor->Initialize(
648 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); 628 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry);
649 } 629 }
650 630
651 631
652 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} 632 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {}
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 } 963 }
984 964
985 965
986 InternalArrayConstructorStub::InternalArrayConstructorStub( 966 InternalArrayConstructorStub::InternalArrayConstructorStub(
987 Isolate* isolate) : PlatformCodeStub(isolate) { 967 Isolate* isolate) : PlatformCodeStub(isolate) {
988 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 968 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
989 } 969 }
990 970
991 971
992 } } // namespace v8::internal 972 } } // 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