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 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_H_ |
7 | 7 |
8 #include "src/accessors.h" | 8 #include "src/accessors.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 ElementsKind kind, | 1314 ElementsKind kind, |
1315 HValue* length); | 1315 HValue* length); |
1316 | 1316 |
1317 void BuildTransitionElementsKind(HValue* object, | 1317 void BuildTransitionElementsKind(HValue* object, |
1318 HValue* map, | 1318 HValue* map, |
1319 ElementsKind from_kind, | 1319 ElementsKind from_kind, |
1320 ElementsKind to_kind, | 1320 ElementsKind to_kind, |
1321 bool is_jsarray); | 1321 bool is_jsarray); |
1322 | 1322 |
1323 HValue* BuildNumberToString(HValue* object, Type* type); | 1323 HValue* BuildNumberToString(HValue* object, Type* type); |
| 1324 HValue* BuildToNumber(HValue* input, Type* input_type); |
1324 HValue* BuildToObject(HValue* receiver); | 1325 HValue* BuildToObject(HValue* receiver); |
1325 | 1326 |
1326 void BuildJSObjectCheck(HValue* receiver, | 1327 void BuildJSObjectCheck(HValue* receiver, |
1327 int bit_field_mask); | 1328 int bit_field_mask); |
1328 | 1329 |
1329 // Checks a key value that's being used for a keyed element access context. If | 1330 // Checks a key value that's being used for a keyed element access context. If |
1330 // the key is a index, i.e. a smi or a number in a unique string with a cached | 1331 // the key is a index, i.e. a smi or a number in a unique string with a cached |
1331 // numeric value, the "true" of the continuation is joined. Otherwise, | 1332 // numeric value, the "true" of the continuation is joined. Otherwise, |
1332 // if the key is a name or a unique string, the "false" of the continuation is | 1333 // if the key is a name or a unique string, the "false" of the continuation is |
1333 // joined. Otherwise, a deoptimization is triggered. In both paths of the | 1334 // joined. Otherwise, a deoptimization is triggered. In both paths of the |
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3033 | 3034 |
3034 private: | 3035 private: |
3035 HGraphBuilder* builder_; | 3036 HGraphBuilder* builder_; |
3036 }; | 3037 }; |
3037 | 3038 |
3038 | 3039 |
3039 } // namespace internal | 3040 } // namespace internal |
3040 } // namespace v8 | 3041 } // namespace v8 |
3041 | 3042 |
3042 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3043 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |