| 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_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
| 6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 ElementsKind kind, | 1322 ElementsKind kind, |
| 1323 HValue* length); | 1323 HValue* length); |
| 1324 | 1324 |
| 1325 void BuildTransitionElementsKind(HValue* object, | 1325 void BuildTransitionElementsKind(HValue* object, |
| 1326 HValue* map, | 1326 HValue* map, |
| 1327 ElementsKind from_kind, | 1327 ElementsKind from_kind, |
| 1328 ElementsKind to_kind, | 1328 ElementsKind to_kind, |
| 1329 bool is_jsarray); | 1329 bool is_jsarray); |
| 1330 | 1330 |
| 1331 HValue* BuildNumberToString(HValue* object, Type* type); | 1331 HValue* BuildNumberToString(HValue* object, Type* type); |
| 1332 HValue* BuildToObject(HValue* receiver); |
| 1332 | 1333 |
| 1333 void BuildJSObjectCheck(HValue* receiver, | 1334 void BuildJSObjectCheck(HValue* receiver, |
| 1334 int bit_field_mask); | 1335 int bit_field_mask); |
| 1335 | 1336 |
| 1336 // Checks a key value that's being used for a keyed element access context. If | 1337 // Checks a key value that's being used for a keyed element access context. If |
| 1337 // the key is a index, i.e. a smi or a number in a unique string with a cached | 1338 // the key is a index, i.e. a smi or a number in a unique string with a cached |
| 1338 // numeric value, the "true" of the continuation is joined. Otherwise, | 1339 // numeric value, the "true" of the continuation is joined. Otherwise, |
| 1339 // if the key is a name or a unique string, the "false" of the continuation is | 1340 // if the key is a name or a unique string, the "false" of the continuation is |
| 1340 // joined. Otherwise, a deoptimization is triggered. In both paths of the | 1341 // joined. Otherwise, a deoptimization is triggered. In both paths of the |
| 1341 // continuation, the key is pushed on the top of the environment. | 1342 // continuation, the key is pushed on the top of the environment. |
| (...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3055 } | 3056 } |
| 3056 | 3057 |
| 3057 private: | 3058 private: |
| 3058 HGraphBuilder* builder_; | 3059 HGraphBuilder* builder_; |
| 3059 }; | 3060 }; |
| 3060 | 3061 |
| 3061 | 3062 |
| 3062 } } // namespace v8::internal | 3063 } } // namespace v8::internal |
| 3063 | 3064 |
| 3064 #endif // V8_HYDROGEN_H_ | 3065 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |