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/crankshaft/hydrogen.h" | 10 #include "src/crankshaft/hydrogen.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 if (chunk == NULL) { | 30 if (chunk == NULL) { |
31 FATAL(GetBailoutReason(graph->info()->bailout_reason())); | 31 FATAL(GetBailoutReason(graph->info()->bailout_reason())); |
32 } | 32 } |
33 return chunk; | 33 return chunk; |
34 } | 34 } |
35 | 35 |
36 | 36 |
37 class CodeStubGraphBuilderBase : public HGraphBuilder { | 37 class CodeStubGraphBuilderBase : public HGraphBuilder { |
38 public: | 38 public: |
39 explicit CodeStubGraphBuilderBase(CompilationInfo* info, CodeStub* code_stub) | 39 explicit CodeStubGraphBuilderBase(CompilationInfo* info, CodeStub* code_stub) |
40 : HGraphBuilder(info, code_stub->GetCallInterfaceDescriptor()), | 40 : HGraphBuilder(info, code_stub->GetCallInterfaceDescriptor(), false), |
41 arguments_length_(NULL), | 41 arguments_length_(NULL), |
42 info_(info), | 42 info_(info), |
43 code_stub_(code_stub), | 43 code_stub_(code_stub), |
44 descriptor_(code_stub), | 44 descriptor_(code_stub), |
45 context_(NULL) { | 45 context_(NULL) { |
46 int parameter_count = GetParameterCount(); | 46 int parameter_count = GetParameterCount(); |
47 parameters_.reset(new HParameter*[parameter_count]); | 47 parameters_.reset(new HParameter*[parameter_count]); |
48 } | 48 } |
49 virtual bool BuildGraph(); | 49 virtual bool BuildGraph(); |
50 | 50 |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 return Pop(); | 1458 return Pop(); |
1459 } | 1459 } |
1460 | 1460 |
1461 | 1461 |
1462 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 1462 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
1463 return DoGenerateCode(this); | 1463 return DoGenerateCode(this); |
1464 } | 1464 } |
1465 | 1465 |
1466 } // namespace internal | 1466 } // namespace internal |
1467 } // namespace v8 | 1467 } // namespace v8 |
OLD | NEW |