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

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

Issue 1469793002: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips64 fix. Created 5 years 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/compiler/js-generic-lowering.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/factory.h" 10 #include "src/factory.h"
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 os << "NewSloppySlow"; 879 os << "NewSloppySlow";
880 break; 880 break;
881 case NEW_STRICT: 881 case NEW_STRICT:
882 os << "NewStrict"; 882 os << "NewStrict";
883 break; 883 break;
884 } 884 }
885 return; 885 return;
886 } 886 }
887 887
888 888
889 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT
890 os << "CallConstructStub";
891 if (RecordCallTarget()) os << "_Recording";
892 }
893
894
895 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT 889 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT
896 os << "ArrayConstructorStub"; 890 os << "ArrayConstructorStub";
897 switch (argument_count()) { 891 switch (argument_count()) {
898 case ANY: 892 case ANY:
899 os << "_Any"; 893 os << "_Any";
900 break; 894 break;
901 case NONE: 895 case NONE:
902 os << "_None"; 896 os << "_None";
903 break; 897 break;
904 case ONE: 898 case ONE:
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 if (type->Is(Type::UntaggedPointer())) { 1054 if (type->Is(Type::UntaggedPointer())) {
1061 return Representation::External(); 1055 return Representation::External();
1062 } 1056 }
1063 1057
1064 DCHECK(!type->Is(Type::Untagged())); 1058 DCHECK(!type->Is(Type::Untagged()));
1065 return Representation::Tagged(); 1059 return Representation::Tagged();
1066 } 1060 }
1067 1061
1068 } // namespace internal 1062 } // namespace internal
1069 } // namespace v8 1063 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698