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 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2503 DECLARE_CONCRETE_INSTRUCTION(CallNew) | 2503 DECLARE_CONCRETE_INSTRUCTION(CallNew) |
2504 | 2504 |
2505 private: | 2505 private: |
2506 HCallNew(HValue* context, HValue* constructor, int argument_count) | 2506 HCallNew(HValue* context, HValue* constructor, int argument_count) |
2507 : HBinaryCall(context, constructor, argument_count) {} | 2507 : HBinaryCall(context, constructor, argument_count) {} |
2508 }; | 2508 }; |
2509 | 2509 |
2510 | 2510 |
2511 class HCallNewArray V8_FINAL : public HBinaryCall { | 2511 class HCallNewArray V8_FINAL : public HBinaryCall { |
2512 public: | 2512 public: |
2513 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P4(HCallNewArray, | 2513 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HCallNewArray, |
2514 HValue*, | 2514 HValue*, |
2515 int, | 2515 int, |
2516 Handle<Cell>, | |
2517 ElementsKind); | 2516 ElementsKind); |
2518 | 2517 |
2519 HValue* context() { return first(); } | 2518 HValue* context() { return first(); } |
2520 HValue* constructor() { return second(); } | 2519 HValue* constructor() { return second(); } |
2521 | 2520 |
2522 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2521 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
2523 | 2522 |
2524 Handle<Cell> property_cell() const { | |
2525 return type_cell_; | |
2526 } | |
2527 | |
2528 ElementsKind elements_kind() const { return elements_kind_; } | 2523 ElementsKind elements_kind() const { return elements_kind_; } |
2529 | 2524 |
2530 DECLARE_CONCRETE_INSTRUCTION(CallNewArray) | 2525 DECLARE_CONCRETE_INSTRUCTION(CallNewArray) |
2531 | 2526 |
2532 private: | 2527 private: |
2533 HCallNewArray(HValue* context, HValue* constructor, int argument_count, | 2528 HCallNewArray(HValue* context, HValue* constructor, int argument_count, |
2534 Handle<Cell> type_cell, ElementsKind elements_kind) | 2529 ElementsKind elements_kind) |
2535 : HBinaryCall(context, constructor, argument_count), | 2530 : HBinaryCall(context, constructor, argument_count), |
2536 elements_kind_(elements_kind), | 2531 elements_kind_(elements_kind) {} |
2537 type_cell_(type_cell) {} | |
2538 | 2532 |
2539 ElementsKind elements_kind_; | 2533 ElementsKind elements_kind_; |
2540 Handle<Cell> type_cell_; | |
2541 }; | 2534 }; |
2542 | 2535 |
2543 | 2536 |
2544 class HCallRuntime V8_FINAL : public HCall<1> { | 2537 class HCallRuntime V8_FINAL : public HCall<1> { |
2545 public: | 2538 public: |
2546 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HCallRuntime, | 2539 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HCallRuntime, |
2547 Handle<String>, | 2540 Handle<String>, |
2548 const Runtime::Function*, | 2541 const Runtime::Function*, |
2549 int); | 2542 int); |
2550 | 2543 |
(...skipping 5009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7560 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7553 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7561 }; | 7554 }; |
7562 | 7555 |
7563 | 7556 |
7564 #undef DECLARE_INSTRUCTION | 7557 #undef DECLARE_INSTRUCTION |
7565 #undef DECLARE_CONCRETE_INSTRUCTION | 7558 #undef DECLARE_CONCRETE_INSTRUCTION |
7566 | 7559 |
7567 } } // namespace v8::internal | 7560 } } // namespace v8::internal |
7568 | 7561 |
7569 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7562 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |