| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 bool CheckConstPhiUses(); | 324 bool CheckConstPhiUses(); |
| 325 | 325 |
| 326 void CollectPhis(); | 326 void CollectPhis(); |
| 327 | 327 |
| 328 HConstant* GetConstantUndefined(); | 328 HConstant* GetConstantUndefined(); |
| 329 HConstant* GetConstant0(); | 329 HConstant* GetConstant0(); |
| 330 HConstant* GetConstant1(); | 330 HConstant* GetConstant1(); |
| 331 HConstant* GetConstantMinus1(); | 331 HConstant* GetConstantMinus1(); |
| 332 HConstant* GetConstantTrue(); | 332 HConstant* GetConstantTrue(); |
| 333 HConstant* GetConstantFalse(); | 333 HConstant* GetConstantFalse(); |
| 334 HConstant* GetConstantBool(bool value); |
| 334 HConstant* GetConstantHole(); | 335 HConstant* GetConstantHole(); |
| 335 HConstant* GetConstantNull(); | 336 HConstant* GetConstantNull(); |
| 336 HConstant* GetInvalidContext(); | 337 HConstant* GetInvalidContext(); |
| 337 | 338 |
| 338 bool IsConstantUndefined(HConstant* constant); | 339 bool IsConstantUndefined(HConstant* constant); |
| 339 bool IsConstant0(HConstant* constant); | 340 bool IsConstant0(HConstant* constant); |
| 340 bool IsConstant1(HConstant* constant); | 341 bool IsConstant1(HConstant* constant); |
| 341 bool IsConstantMinus1(HConstant* constant); | 342 bool IsConstantMinus1(HConstant* constant); |
| 342 bool IsConstantTrue(HConstant* constant); | 343 bool IsConstantTrue(HConstant* constant); |
| 343 bool IsConstantFalse(HConstant* constant); | 344 bool IsConstantFalse(HConstant* constant); |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 // case "true" of continuation is taken, otherwise the "false" | 1346 // case "true" of continuation is taken, otherwise the "false" |
| 1346 void BuildTestForDictionaryProperties(HValue* object, | 1347 void BuildTestForDictionaryProperties(HValue* object, |
| 1347 HIfContinuation* continuation); | 1348 HIfContinuation* continuation); |
| 1348 | 1349 |
| 1349 void BuildNonGlobalObjectCheck(HValue* receiver); | 1350 void BuildNonGlobalObjectCheck(HValue* receiver); |
| 1350 | 1351 |
| 1351 HValue* BuildKeyedLookupCacheHash(HValue* object, | 1352 HValue* BuildKeyedLookupCacheHash(HValue* object, |
| 1352 HValue* key); | 1353 HValue* key); |
| 1353 | 1354 |
| 1354 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver, | 1355 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver, |
| 1355 HValue* elements, | 1356 HValue* elements, HValue* key, |
| 1356 HValue* key, | 1357 HValue* hash, |
| 1357 HValue* hash); | 1358 LanguageMode language_mode); |
| 1358 | 1359 |
| 1359 HValue* BuildRegExpConstructResult(HValue* length, | 1360 HValue* BuildRegExpConstructResult(HValue* length, |
| 1360 HValue* index, | 1361 HValue* index, |
| 1361 HValue* input); | 1362 HValue* input); |
| 1362 | 1363 |
| 1363 // Allocates a new object according with the given allocation properties. | 1364 // Allocates a new object according with the given allocation properties. |
| 1364 HAllocate* BuildAllocate(HValue* object_size, | 1365 HAllocate* BuildAllocate(HValue* object_size, |
| 1365 HType type, | 1366 HType type, |
| 1366 InstanceType instance_type, | 1367 InstanceType instance_type, |
| 1367 HAllocationMode allocation_mode); | 1368 HAllocationMode allocation_mode); |
| (...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3047 } | 3048 } |
| 3048 | 3049 |
| 3049 private: | 3050 private: |
| 3050 HGraphBuilder* builder_; | 3051 HGraphBuilder* builder_; |
| 3051 }; | 3052 }; |
| 3052 | 3053 |
| 3053 | 3054 |
| 3054 } } // namespace v8::internal | 3055 } } // namespace v8::internal |
| 3055 | 3056 |
| 3056 #endif // V8_HYDROGEN_H_ | 3057 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |