OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |