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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 } 665 }
666 666
667 667
668 void ElementsTransitionAndStoreStub::InitializeDescriptor( 668 void ElementsTransitionAndStoreStub::InitializeDescriptor(
669 CodeStubDescriptor* descriptor) { 669 CodeStubDescriptor* descriptor) {
670 descriptor->Initialize( 670 descriptor->Initialize(
671 FUNCTION_ADDR(Runtime_ElementsTransitionAndStoreIC_Miss)); 671 FUNCTION_ADDR(Runtime_ElementsTransitionAndStoreIC_Miss));
672 } 672 }
673 673
674 674
675 void ToObjectStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
676 descriptor->Initialize(Runtime::FunctionForId(Runtime::kToObject)->entry);
677 }
678
679
675 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() 680 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor()
676 const { 681 const {
677 return StoreTransitionDescriptor(isolate()); 682 return StoreTransitionDescriptor(isolate());
678 } 683 }
679 684
680 685
681 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 686 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
682 descriptor->Initialize( 687 descriptor->Initialize(
683 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); 688 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry);
684 } 689 }
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 1076
1072 if (type->Is(Type::UntaggedPointer())) { 1077 if (type->Is(Type::UntaggedPointer())) {
1073 return Representation::External(); 1078 return Representation::External();
1074 } 1079 }
1075 1080
1076 DCHECK(!type->Is(Type::Untagged())); 1081 DCHECK(!type->Is(Type::Untagged()));
1077 return Representation::Tagged(); 1082 return Representation::Tagged();
1078 } 1083 }
1079 } // namespace internal 1084 } // namespace internal
1080 } // namespace v8 1085 } // namespace v8
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