| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // Returns false if there are phi-uses of the arguments-object | 215 // Returns false if there are phi-uses of the arguments-object |
| 216 // which are not supported by the optimizing compiler. | 216 // which are not supported by the optimizing compiler. |
| 217 bool CollectPhis(); | 217 bool CollectPhis(); |
| 218 | 218 |
| 219 Handle<Code> Compile(CompilationInfo* info); | 219 Handle<Code> Compile(CompilationInfo* info); |
| 220 | 220 |
| 221 void set_undefined_constant(HConstant* constant) { | 221 void set_undefined_constant(HConstant* constant) { |
| 222 undefined_constant_.set(constant); | 222 undefined_constant_.set(constant); |
| 223 } | 223 } |
| 224 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } | 224 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } |
| 225 HConstant* GetConstant0(); |
| 225 HConstant* GetConstant1(); | 226 HConstant* GetConstant1(); |
| 226 HConstant* GetConstantMinus1(); | 227 HConstant* GetConstantMinus1(); |
| 227 HConstant* GetConstantTrue(); | 228 HConstant* GetConstantTrue(); |
| 228 HConstant* GetConstantFalse(); | 229 HConstant* GetConstantFalse(); |
| 229 | 230 |
| 230 HBasicBlock* CreateBasicBlock(); | 231 HBasicBlock* CreateBasicBlock(); |
| 231 HArgumentsObject* GetArgumentsObject() const { | 232 HArgumentsObject* GetArgumentsObject() const { |
| 232 return arguments_object_.get(); | 233 return arguments_object_.get(); |
| 233 } | 234 } |
| 234 bool HasArgumentsObject() const { return arguments_object_.is_set(); } | 235 bool HasArgumentsObject() const { return arguments_object_.is_set(); } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 void InitializeInferredTypes(int from_inclusive, int to_inclusive); | 277 void InitializeInferredTypes(int from_inclusive, int to_inclusive); |
| 277 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); | 278 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); |
| 278 | 279 |
| 279 int next_block_id_; | 280 int next_block_id_; |
| 280 HBasicBlock* entry_block_; | 281 HBasicBlock* entry_block_; |
| 281 HEnvironment* start_environment_; | 282 HEnvironment* start_environment_; |
| 282 ZoneList<HBasicBlock*> blocks_; | 283 ZoneList<HBasicBlock*> blocks_; |
| 283 ZoneList<HValue*> values_; | 284 ZoneList<HValue*> values_; |
| 284 ZoneList<HPhi*>* phi_list_; | 285 ZoneList<HPhi*>* phi_list_; |
| 285 SetOncePointer<HConstant> undefined_constant_; | 286 SetOncePointer<HConstant> undefined_constant_; |
| 287 SetOncePointer<HConstant> constant_0_; |
| 286 SetOncePointer<HConstant> constant_1_; | 288 SetOncePointer<HConstant> constant_1_; |
| 287 SetOncePointer<HConstant> constant_minus1_; | 289 SetOncePointer<HConstant> constant_minus1_; |
| 288 SetOncePointer<HConstant> constant_true_; | 290 SetOncePointer<HConstant> constant_true_; |
| 289 SetOncePointer<HConstant> constant_false_; | 291 SetOncePointer<HConstant> constant_false_; |
| 290 SetOncePointer<HArgumentsObject> arguments_object_; | 292 SetOncePointer<HArgumentsObject> arguments_object_; |
| 291 | 293 |
| 292 DISALLOW_COPY_AND_ASSIGN(HGraph); | 294 DISALLOW_COPY_AND_ASSIGN(HGraph); |
| 293 }; | 295 }; |
| 294 | 296 |
| 295 | 297 |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 const char* filename_; | 1096 const char* filename_; |
| 1095 HeapStringAllocator string_allocator_; | 1097 HeapStringAllocator string_allocator_; |
| 1096 StringStream trace_; | 1098 StringStream trace_; |
| 1097 int indent_; | 1099 int indent_; |
| 1098 }; | 1100 }; |
| 1099 | 1101 |
| 1100 | 1102 |
| 1101 } } // namespace v8::internal | 1103 } } // namespace v8::internal |
| 1102 | 1104 |
| 1103 #endif // V8_HYDROGEN_H_ | 1105 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |