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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 Handle<Code> Compile(CompilationInfo* info); | 231 Handle<Code> Compile(CompilationInfo* info); |
232 | 232 |
233 void set_undefined_constant(HConstant* constant) { | 233 void set_undefined_constant(HConstant* constant) { |
234 undefined_constant_.set(constant); | 234 undefined_constant_.set(constant); |
235 } | 235 } |
236 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } | 236 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } |
237 HConstant* GetConstant1(); | 237 HConstant* GetConstant1(); |
238 HConstant* GetConstantMinus1(); | 238 HConstant* GetConstantMinus1(); |
239 HConstant* GetConstantTrue(); | 239 HConstant* GetConstantTrue(); |
240 HConstant* GetConstantFalse(); | 240 HConstant* GetConstantFalse(); |
| 241 HConstant* GetConstantHole(); |
241 | 242 |
242 HBasicBlock* CreateBasicBlock(); | 243 HBasicBlock* CreateBasicBlock(); |
243 HArgumentsObject* GetArgumentsObject() const { | 244 HArgumentsObject* GetArgumentsObject() const { |
244 return arguments_object_.get(); | 245 return arguments_object_.get(); |
245 } | 246 } |
246 bool HasArgumentsObject() const { return arguments_object_.is_set(); } | 247 bool HasArgumentsObject() const { return arguments_object_.is_set(); } |
247 | 248 |
248 void SetArgumentsObject(HArgumentsObject* object) { | 249 void SetArgumentsObject(HArgumentsObject* object) { |
249 arguments_object_.set(object); | 250 arguments_object_.set(object); |
250 } | 251 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 HBasicBlock* entry_block_; | 293 HBasicBlock* entry_block_; |
293 HEnvironment* start_environment_; | 294 HEnvironment* start_environment_; |
294 ZoneList<HBasicBlock*> blocks_; | 295 ZoneList<HBasicBlock*> blocks_; |
295 ZoneList<HValue*> values_; | 296 ZoneList<HValue*> values_; |
296 ZoneList<HPhi*>* phi_list_; | 297 ZoneList<HPhi*>* phi_list_; |
297 SetOncePointer<HConstant> undefined_constant_; | 298 SetOncePointer<HConstant> undefined_constant_; |
298 SetOncePointer<HConstant> constant_1_; | 299 SetOncePointer<HConstant> constant_1_; |
299 SetOncePointer<HConstant> constant_minus1_; | 300 SetOncePointer<HConstant> constant_minus1_; |
300 SetOncePointer<HConstant> constant_true_; | 301 SetOncePointer<HConstant> constant_true_; |
301 SetOncePointer<HConstant> constant_false_; | 302 SetOncePointer<HConstant> constant_false_; |
| 303 SetOncePointer<HConstant> constant_hole_; |
302 SetOncePointer<HArgumentsObject> arguments_object_; | 304 SetOncePointer<HArgumentsObject> arguments_object_; |
303 | 305 |
304 DISALLOW_COPY_AND_ASSIGN(HGraph); | 306 DISALLOW_COPY_AND_ASSIGN(HGraph); |
305 }; | 307 }; |
306 | 308 |
307 | 309 |
308 Zone* HBasicBlock::zone() { return graph_->zone(); } | 310 Zone* HBasicBlock::zone() { return graph_->zone(); } |
309 | 311 |
310 | 312 |
311 class HEnvironment: public ZoneObject { | 313 class HEnvironment: public ZoneObject { |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 const char* filename_; | 1195 const char* filename_; |
1194 HeapStringAllocator string_allocator_; | 1196 HeapStringAllocator string_allocator_; |
1195 StringStream trace_; | 1197 StringStream trace_; |
1196 int indent_; | 1198 int indent_; |
1197 }; | 1199 }; |
1198 | 1200 |
1199 | 1201 |
1200 } } // namespace v8::internal | 1202 } } // namespace v8::internal |
1201 | 1203 |
1202 #endif // V8_HYDROGEN_H_ | 1204 #endif // V8_HYDROGEN_H_ |
OLD | NEW |