| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 Handle<Code> Compile(); | 317 Handle<Code> Compile(); |
| 318 | 318 |
| 319 void set_undefined_constant(HConstant* constant) { | 319 void set_undefined_constant(HConstant* constant) { |
| 320 undefined_constant_.set(constant); | 320 undefined_constant_.set(constant); |
| 321 } | 321 } |
| 322 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } | 322 HConstant* GetConstantUndefined() const { return undefined_constant_.get(); } |
| 323 HConstant* GetConstant1(); | 323 HConstant* GetConstant1(); |
| 324 HConstant* GetConstantMinus1(); | 324 HConstant* GetConstantMinus1(); |
| 325 HConstant* GetConstantTrue(); | 325 HConstant* GetConstantTrue(); |
| 326 HConstant* GetConstantFalse(); | 326 HConstant* GetConstantFalse(); |
| 327 HConstant* GetConstantHole(); |
| 327 | 328 |
| 328 HBasicBlock* CreateBasicBlock(); | 329 HBasicBlock* CreateBasicBlock(); |
| 329 HArgumentsObject* GetArgumentsObject() const { | 330 HArgumentsObject* GetArgumentsObject() const { |
| 330 return arguments_object_.get(); | 331 return arguments_object_.get(); |
| 331 } | 332 } |
| 332 bool HasArgumentsObject() const { return arguments_object_.is_set(); } | 333 bool HasArgumentsObject() const { return arguments_object_.is_set(); } |
| 333 | 334 |
| 334 void SetArgumentsObject(HArgumentsObject* object) { | 335 void SetArgumentsObject(HArgumentsObject* object) { |
| 335 arguments_object_.set(object); | 336 arguments_object_.set(object); |
| 336 } | 337 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 CompilationInfo* info_; | 381 CompilationInfo* info_; |
| 381 HEnvironment* start_environment_; | 382 HEnvironment* start_environment_; |
| 382 ZoneList<HBasicBlock*> blocks_; | 383 ZoneList<HBasicBlock*> blocks_; |
| 383 ZoneList<HValue*> values_; | 384 ZoneList<HValue*> values_; |
| 384 ZoneList<HPhi*>* phi_list_; | 385 ZoneList<HPhi*>* phi_list_; |
| 385 SetOncePointer<HConstant> undefined_constant_; | 386 SetOncePointer<HConstant> undefined_constant_; |
| 386 SetOncePointer<HConstant> constant_1_; | 387 SetOncePointer<HConstant> constant_1_; |
| 387 SetOncePointer<HConstant> constant_minus1_; | 388 SetOncePointer<HConstant> constant_minus1_; |
| 388 SetOncePointer<HConstant> constant_true_; | 389 SetOncePointer<HConstant> constant_true_; |
| 389 SetOncePointer<HConstant> constant_false_; | 390 SetOncePointer<HConstant> constant_false_; |
| 391 SetOncePointer<HConstant> constant_hole_; |
| 390 SetOncePointer<HArgumentsObject> arguments_object_; | 392 SetOncePointer<HArgumentsObject> arguments_object_; |
| 391 | 393 |
| 392 friend class HSubgraph; | 394 friend class HSubgraph; |
| 393 | 395 |
| 394 DISALLOW_COPY_AND_ASSIGN(HGraph); | 396 DISALLOW_COPY_AND_ASSIGN(HGraph); |
| 395 }; | 397 }; |
| 396 | 398 |
| 397 | 399 |
| 398 class HEnvironment: public ZoneObject { | 400 class HEnvironment: public ZoneObject { |
| 399 public: | 401 public: |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 const char* filename_; | 1063 const char* filename_; |
| 1062 HeapStringAllocator string_allocator_; | 1064 HeapStringAllocator string_allocator_; |
| 1063 StringStream trace_; | 1065 StringStream trace_; |
| 1064 int indent_; | 1066 int indent_; |
| 1065 }; | 1067 }; |
| 1066 | 1068 |
| 1067 | 1069 |
| 1068 } } // namespace v8::internal | 1070 } } // namespace v8::internal |
| 1069 | 1071 |
| 1070 #endif // V8_HYDROGEN_H_ | 1072 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |