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/field-index.h" | 8 #include "src/field-index.h" |
9 #include "src/hydrogen.h" | 9 #include "src/hydrogen.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 CodeStubDescriptor descriptor_; | 124 CodeStubDescriptor descriptor_; |
125 HContext* context_; | 125 HContext* context_; |
126 }; | 126 }; |
127 | 127 |
128 | 128 |
129 bool CodeStubGraphBuilderBase::BuildGraph() { | 129 bool CodeStubGraphBuilderBase::BuildGraph() { |
130 // Update the static counter each time a new code stub is generated. | 130 // Update the static counter each time a new code stub is generated. |
131 isolate()->counters()->code_stubs()->Increment(); | 131 isolate()->counters()->code_stubs()->Increment(); |
132 | 132 |
133 if (FLAG_trace_hydrogen_stubs) { | 133 if (FLAG_trace_hydrogen_stubs) { |
134 const char* name = CodeStub::MajorName(stub()->MajorKey(), false); | 134 const char* name = CodeStub::MajorName(stub()->MajorKey()); |
135 PrintF("-----------------------------------------------------------\n"); | 135 PrintF("-----------------------------------------------------------\n"); |
136 PrintF("Compiling stub %s using hydrogen\n", name); | 136 PrintF("Compiling stub %s using hydrogen\n", name); |
137 isolate()->GetHTracer()->TraceCompilation(info()); | 137 isolate()->GetHTracer()->TraceCompilation(info()); |
138 } | 138 } |
139 | 139 |
140 int param_count = GetParameterCount(); | 140 int param_count = GetParameterCount(); |
141 int register_param_count = GetRegisterParameterCount(); | 141 int register_param_count = GetRegisterParameterCount(); |
142 HEnvironment* start_environment = graph()->start_environment(); | 142 HEnvironment* start_environment = graph()->start_environment(); |
143 HBasicBlock* next_block = CreateBasicBlock(start_environment); | 143 HBasicBlock* next_block = CreateBasicBlock(start_environment); |
144 Goto(next_block); | 144 Goto(next_block); |
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2206 return Pop(); | 2206 return Pop(); |
2207 } | 2207 } |
2208 | 2208 |
2209 | 2209 |
2210 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2210 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
2211 return DoGenerateCode(this); | 2211 return DoGenerateCode(this); |
2212 } | 2212 } |
2213 | 2213 |
2214 } // namespace internal | 2214 } // namespace internal |
2215 } // namespace v8 | 2215 } // namespace v8 |
OLD | NEW |