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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 } | 1401 } |
1402 | 1402 |
1403 | 1403 |
1404 template <> | 1404 template <> |
1405 HValue* CodeStubGraphBuilder<ArrayNoArgumentConstructorStub>::BuildCodeStub() { | 1405 HValue* CodeStubGraphBuilder<ArrayNoArgumentConstructorStub>::BuildCodeStub() { |
1406 ElementsKind kind = casted_stub()->elements_kind(); | 1406 ElementsKind kind = casted_stub()->elements_kind(); |
1407 AllocationSiteOverrideMode override_mode = casted_stub()->override_mode(); | 1407 AllocationSiteOverrideMode override_mode = casted_stub()->override_mode(); |
1408 return BuildArrayConstructor(kind, override_mode, NONE); | 1408 return BuildArrayConstructor(kind, override_mode, NONE); |
1409 } | 1409 } |
1410 | 1410 |
1411 | |
1412 Handle<Code> ArrayNoArgumentConstructorStub::GenerateCode() { | |
1413 return DoGenerateCode(this); | |
1414 } | |
1415 | |
1416 | |
1417 template <> | 1411 template <> |
1418 HValue* CodeStubGraphBuilder<ArraySingleArgumentConstructorStub>:: | 1412 HValue* CodeStubGraphBuilder<ArraySingleArgumentConstructorStub>:: |
1419 BuildCodeStub() { | 1413 BuildCodeStub() { |
1420 ElementsKind kind = casted_stub()->elements_kind(); | 1414 ElementsKind kind = casted_stub()->elements_kind(); |
1421 AllocationSiteOverrideMode override_mode = casted_stub()->override_mode(); | 1415 AllocationSiteOverrideMode override_mode = casted_stub()->override_mode(); |
1422 return BuildArrayConstructor(kind, override_mode, SINGLE); | 1416 return BuildArrayConstructor(kind, override_mode, SINGLE); |
1423 } | 1417 } |
1424 | 1418 |
1425 | 1419 |
1426 Handle<Code> ArraySingleArgumentConstructorStub::GenerateCode() { | 1420 Handle<Code> ArraySingleArgumentConstructorStub::GenerateCode() { |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2282 return Pop(); | 2276 return Pop(); |
2283 } | 2277 } |
2284 | 2278 |
2285 | 2279 |
2286 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2280 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
2287 return DoGenerateCode(this); | 2281 return DoGenerateCode(this); |
2288 } | 2282 } |
2289 | 2283 |
2290 } // namespace internal | 2284 } // namespace internal |
2291 } // namespace v8 | 2285 } // namespace v8 |
OLD | NEW |