| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4399 | 4399 |
| 4400 | 4400 |
| 4401 class HAllocateObject: public HTemplateInstruction<1> { | 4401 class HAllocateObject: public HTemplateInstruction<1> { |
| 4402 public: | 4402 public: |
| 4403 HAllocateObject(HValue* context, Handle<JSFunction> constructor) | 4403 HAllocateObject(HValue* context, Handle<JSFunction> constructor) |
| 4404 : constructor_(constructor) { | 4404 : constructor_(constructor) { |
| 4405 SetOperandAt(0, context); | 4405 SetOperandAt(0, context); |
| 4406 set_representation(Representation::Tagged()); | 4406 set_representation(Representation::Tagged()); |
| 4407 } | 4407 } |
| 4408 | 4408 |
| 4409 // Maximum instance size for which allocations will be inlined. |
| 4410 static const int kMaxSize = 64 * kPointerSize; |
| 4411 |
| 4409 HValue* context() { return OperandAt(0); } | 4412 HValue* context() { return OperandAt(0); } |
| 4410 Handle<JSFunction> constructor() { return constructor_; } | 4413 Handle<JSFunction> constructor() { return constructor_; } |
| 4411 | 4414 |
| 4412 virtual Representation RequiredInputRepresentation(int index) { | 4415 virtual Representation RequiredInputRepresentation(int index) { |
| 4413 return Representation::Tagged(); | 4416 return Representation::Tagged(); |
| 4414 } | 4417 } |
| 4415 virtual HType CalculateInferredType(); | 4418 virtual HType CalculateInferredType(); |
| 4416 | 4419 |
| 4417 DECLARE_CONCRETE_INSTRUCTION(AllocateObject) | 4420 DECLARE_CONCRETE_INSTRUCTION(AllocateObject) |
| 4418 | 4421 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4854 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4857 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
| 4855 }; | 4858 }; |
| 4856 | 4859 |
| 4857 | 4860 |
| 4858 #undef DECLARE_INSTRUCTION | 4861 #undef DECLARE_INSTRUCTION |
| 4859 #undef DECLARE_CONCRETE_INSTRUCTION | 4862 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4860 | 4863 |
| 4861 } } // namespace v8::internal | 4864 } } // namespace v8::internal |
| 4862 | 4865 |
| 4863 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4866 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |