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

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

Issue 2498563002: [cleanup] Replace ToBooleanICStub::Types with ToBooleanHints (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/type-hint-analyzer.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 <memory> 7 #include <memory>
8 8
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 Push(Add<HCallRuntime>(Runtime::FunctionForId(Runtime::kToPrimitive), 1)); 1117 Push(Add<HCallRuntime>(Runtime::FunctionForId(Runtime::kToPrimitive), 1));
1118 } 1118 }
1119 if_inputisstringwrapper.End(); 1119 if_inputisstringwrapper.End();
1120 return Pop(); 1120 return Pop();
1121 } 1121 }
1122 1122
1123 template <> 1123 template <>
1124 HValue* CodeStubGraphBuilder<ToBooleanICStub>::BuildCodeInitializedStub() { 1124 HValue* CodeStubGraphBuilder<ToBooleanICStub>::BuildCodeInitializedStub() {
1125 ToBooleanICStub* stub = casted_stub(); 1125 ToBooleanICStub* stub = casted_stub();
1126 IfBuilder if_true(this); 1126 IfBuilder if_true(this);
1127 if_true.If<HBranch>(GetParameter(Descriptor::kArgument), stub->types()); 1127 if_true.If<HBranch>(GetParameter(Descriptor::kArgument), stub->hints());
1128 if_true.Then(); 1128 if_true.Then();
1129 if_true.Return(graph()->GetConstantTrue()); 1129 if_true.Return(graph()->GetConstantTrue());
1130 if_true.Else(); 1130 if_true.Else();
1131 if_true.End(); 1131 if_true.End();
1132 return graph()->GetConstantFalse(); 1132 return graph()->GetConstantFalse();
1133 } 1133 }
1134 1134
1135 Handle<Code> ToBooleanICStub::GenerateCode() { return DoGenerateCode(this); } 1135 Handle<Code> ToBooleanICStub::GenerateCode() { return DoGenerateCode(this); }
1136 1136
1137 template <> 1137 template <>
(...skipping 10 matching lines...) Expand all
1148 return BuildUncheckedDictionaryElementLoad(receiver, elements, key, hash); 1148 return BuildUncheckedDictionaryElementLoad(receiver, elements, key, hash);
1149 } 1149 }
1150 1150
1151 1151
1152 Handle<Code> LoadDictionaryElementStub::GenerateCode() { 1152 Handle<Code> LoadDictionaryElementStub::GenerateCode() {
1153 return DoGenerateCode(this); 1153 return DoGenerateCode(this);
1154 } 1154 }
1155 1155
1156 } // namespace internal 1156 } // namespace internal
1157 } // namespace v8 1157 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/type-hint-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698