| 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 "src/bailout-reason.h" | 7 #include "src/bailout-reason.h" |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/field-index.h" | 10 #include "src/field-index.h" |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 return GetParameter(0); | 1178 return GetParameter(0); |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 | 1181 |
| 1182 Handle<Code> TransitionElementsKindStub::GenerateCode() { | 1182 Handle<Code> TransitionElementsKindStub::GenerateCode() { |
| 1183 return DoGenerateCode(this); | 1183 return DoGenerateCode(this); |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 | 1186 |
| 1187 template <> | 1187 template <> |
| 1188 HValue* CodeStubGraphBuilder<AllocateHeapNumberStub>::BuildCodeStub() { | |
| 1189 HValue* result = | |
| 1190 Add<HAllocate>(Add<HConstant>(HeapNumber::kSize), HType::HeapNumber(), | |
| 1191 NOT_TENURED, HEAP_NUMBER_TYPE); | |
| 1192 AddStoreMapConstant(result, isolate()->factory()->heap_number_map()); | |
| 1193 return result; | |
| 1194 } | |
| 1195 | |
| 1196 | |
| 1197 Handle<Code> AllocateHeapNumberStub::GenerateCode() { | |
| 1198 return DoGenerateCode(this); | |
| 1199 } | |
| 1200 | |
| 1201 | |
| 1202 template <> | |
| 1203 HValue* CodeStubGraphBuilder<AllocateMutableHeapNumberStub>::BuildCodeStub() { | |
| 1204 HValue* result = | |
| 1205 Add<HAllocate>(Add<HConstant>(HeapNumber::kSize), HType::HeapObject(), | |
| 1206 NOT_TENURED, MUTABLE_HEAP_NUMBER_TYPE); | |
| 1207 AddStoreMapConstant(result, isolate()->factory()->mutable_heap_number_map()); | |
| 1208 return result; | |
| 1209 } | |
| 1210 | |
| 1211 | |
| 1212 Handle<Code> AllocateMutableHeapNumberStub::GenerateCode() { | |
| 1213 return DoGenerateCode(this); | |
| 1214 } | |
| 1215 | |
| 1216 | |
| 1217 template <> | |
| 1218 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() { | 1188 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() { |
| 1219 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED, | 1189 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED, |
| 1220 JS_OBJECT_TYPE); | 1190 JS_OBJECT_TYPE); |
| 1221 return result; | 1191 return result; |
| 1222 } | 1192 } |
| 1223 | 1193 |
| 1224 | 1194 |
| 1225 Handle<Code> AllocateInNewSpaceStub::GenerateCode() { | 1195 Handle<Code> AllocateInNewSpaceStub::GenerateCode() { |
| 1226 return DoGenerateCode(this); | 1196 return DoGenerateCode(this); |
| 1227 } | 1197 } |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2394 return Pop(); | 2364 return Pop(); |
| 2395 } | 2365 } |
| 2396 | 2366 |
| 2397 | 2367 |
| 2398 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2368 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
| 2399 return DoGenerateCode(this); | 2369 return DoGenerateCode(this); |
| 2400 } | 2370 } |
| 2401 | 2371 |
| 2402 } // namespace internal | 2372 } // namespace internal |
| 2403 } // namespace v8 | 2373 } // namespace v8 |
| OLD | NEW |