| 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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 casted_stub()->is_js_array()); | 1387 casted_stub()->is_js_array()); |
| 1388 | 1388 |
| 1389 return GetParameter(0); | 1389 return GetParameter(0); |
| 1390 } | 1390 } |
| 1391 | 1391 |
| 1392 | 1392 |
| 1393 Handle<Code> TransitionElementsKindStub::GenerateCode() { | 1393 Handle<Code> TransitionElementsKindStub::GenerateCode() { |
| 1394 return DoGenerateCode(this); | 1394 return DoGenerateCode(this); |
| 1395 } | 1395 } |
| 1396 | 1396 |
| 1397 | |
| 1398 template <> | 1397 template <> |
| 1399 HValue* CodeStubGraphBuilder<AllocateInNewSpaceStub>::BuildCodeStub() { | 1398 HValue* CodeStubGraphBuilder<AllocateStub>::BuildCodeStub() { |
| 1400 HValue* result = Add<HAllocate>(GetParameter(0), HType::Tagged(), NOT_TENURED, | 1399 HValue* result = |
| 1401 JS_OBJECT_TYPE); | 1400 Add<HAllocate>(GetParameter(0), HType::Tagged(), |
| 1401 casted_stub()->pretenure_flag(), JS_OBJECT_TYPE); |
| 1402 return result; | 1402 return result; |
| 1403 } | 1403 } |
| 1404 | 1404 |
| 1405 | 1405 Handle<Code> AllocateStub::GenerateCode() { return DoGenerateCode(this); } |
| 1406 Handle<Code> AllocateInNewSpaceStub::GenerateCode() { | |
| 1407 return DoGenerateCode(this); | |
| 1408 } | |
| 1409 | |
| 1410 | 1406 |
| 1411 HValue* CodeStubGraphBuilderBase::BuildArrayConstructor( | 1407 HValue* CodeStubGraphBuilderBase::BuildArrayConstructor( |
| 1412 ElementsKind kind, | 1408 ElementsKind kind, |
| 1413 AllocationSiteOverrideMode override_mode, | 1409 AllocationSiteOverrideMode override_mode, |
| 1414 ArgumentClass argument_class) { | 1410 ArgumentClass argument_class) { |
| 1415 HValue* constructor = GetParameter(ArrayConstructorStubBase::kConstructor); | 1411 HValue* constructor = GetParameter(ArrayConstructorStubBase::kConstructor); |
| 1416 HValue* alloc_site = GetParameter(ArrayConstructorStubBase::kAllocationSite); | 1412 HValue* alloc_site = GetParameter(ArrayConstructorStubBase::kAllocationSite); |
| 1417 JSArrayBuilder array_builder(this, kind, alloc_site, constructor, | 1413 JSArrayBuilder array_builder(this, kind, alloc_site, constructor, |
| 1418 override_mode); | 1414 override_mode); |
| 1419 HValue* result = NULL; | 1415 HValue* result = NULL; |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2574 return Pop(); | 2570 return Pop(); |
| 2575 } | 2571 } |
| 2576 | 2572 |
| 2577 | 2573 |
| 2578 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2574 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
| 2579 return DoGenerateCode(this); | 2575 return DoGenerateCode(this); |
| 2580 } | 2576 } |
| 2581 | 2577 |
| 2582 } // namespace internal | 2578 } // namespace internal |
| 2583 } // namespace v8 | 2579 } // namespace v8 |
| OLD | NEW |