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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/bailout-reason.h" | 7 #include "src/bailout-reason.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/field-index.h" | 9 #include "src/field-index.h" |
10 #include "src/hydrogen.h" | 10 #include "src/hydrogen.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 int field_offset); | 111 int field_offset); |
112 void BuildInstallFromOptimizedCodeMap(HValue* js_function, | 112 void BuildInstallFromOptimizedCodeMap(HValue* js_function, |
113 HValue* shared_info, | 113 HValue* shared_info, |
114 HValue* native_context); | 114 HValue* native_context); |
115 | 115 |
116 private: | 116 private: |
117 HValue* BuildArraySingleArgumentConstructor(JSArrayBuilder* builder); | 117 HValue* BuildArraySingleArgumentConstructor(JSArrayBuilder* builder); |
118 HValue* BuildArrayNArgumentsConstructor(JSArrayBuilder* builder, | 118 HValue* BuildArrayNArgumentsConstructor(JSArrayBuilder* builder, |
119 ElementsKind kind); | 119 ElementsKind kind); |
120 | 120 |
121 SmartArrayPointer<HParameter*> parameters_; | 121 base::SmartArrayPointer<HParameter*> parameters_; |
122 HValue* arguments_length_; | 122 HValue* arguments_length_; |
123 CompilationInfo* info_; | 123 CompilationInfo* info_; |
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(); |
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2265 return Pop(); | 2265 return Pop(); |
2266 } | 2266 } |
2267 | 2267 |
2268 | 2268 |
2269 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2269 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
2270 return DoGenerateCode(this); | 2270 return DoGenerateCode(this); |
2271 } | 2271 } |
2272 | 2272 |
2273 } // namespace internal | 2273 } // namespace internal |
2274 } // namespace v8 | 2274 } // namespace v8 |
OLD | NEW |