| 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 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 class HCallNewArray: public HCallNew { | 2484 class HCallNewArray: public HCallNew { |
| 2485 public: | 2485 public: |
| 2486 HCallNewArray(HValue* context, HValue* constructor, int argument_count, | 2486 HCallNewArray(HValue* context, HValue* constructor, int argument_count, |
| 2487 Handle<Cell> type_cell) | 2487 Handle<Cell> type_cell) |
| 2488 : HCallNew(context, constructor, argument_count), | 2488 : HCallNew(context, constructor, argument_count), |
| 2489 type_cell_(type_cell) { | 2489 type_cell_(type_cell) { |
| 2490 elements_kind_ = static_cast<ElementsKind>( | 2490 elements_kind_ = static_cast<ElementsKind>( |
| 2491 Smi::cast(type_cell->value())->value()); | 2491 Smi::cast(type_cell->value())->value()); |
| 2492 } | 2492 } |
| 2493 | 2493 |
| 2494 virtual void PrintDataTo(StringStream* stream); |
| 2495 |
| 2494 Handle<Cell> property_cell() const { | 2496 Handle<Cell> property_cell() const { |
| 2495 return type_cell_; | 2497 return type_cell_; |
| 2496 } | 2498 } |
| 2497 | 2499 |
| 2498 ElementsKind elements_kind() const { return elements_kind_; } | 2500 ElementsKind elements_kind() const { return elements_kind_; } |
| 2499 | 2501 |
| 2500 DECLARE_CONCRETE_INSTRUCTION(CallNewArray) | 2502 DECLARE_CONCRETE_INSTRUCTION(CallNewArray) |
| 2501 | 2503 |
| 2502 private: | 2504 private: |
| 2503 ElementsKind elements_kind_; | 2505 ElementsKind elements_kind_; |
| (...skipping 4137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6641 virtual bool IsDeletable() const { return true; } | 6643 virtual bool IsDeletable() const { return true; } |
| 6642 }; | 6644 }; |
| 6643 | 6645 |
| 6644 | 6646 |
| 6645 #undef DECLARE_INSTRUCTION | 6647 #undef DECLARE_INSTRUCTION |
| 6646 #undef DECLARE_CONCRETE_INSTRUCTION | 6648 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6647 | 6649 |
| 6648 } } // namespace v8::internal | 6650 } } // namespace v8::internal |
| 6649 | 6651 |
| 6650 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6652 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |