| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
| 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 7452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7463 explicit HToFastProperties(HValue* value) : HUnaryOperation(value) { | 7463 explicit HToFastProperties(HValue* value) : HUnaryOperation(value) { |
| 7464 set_representation(Representation::Tagged()); | 7464 set_representation(Representation::Tagged()); |
| 7465 SetChangesFlag(kNewSpacePromotion); | 7465 SetChangesFlag(kNewSpacePromotion); |
| 7466 | 7466 |
| 7467 // This instruction is not marked as kChangesMaps, but does | 7467 // This instruction is not marked as kChangesMaps, but does |
| 7468 // change the map of the input operand. Use it only when creating | 7468 // change the map of the input operand. Use it only when creating |
| 7469 // object literals via a runtime call. | 7469 // object literals via a runtime call. |
| 7470 ASSERT(value->IsCallRuntime()); | 7470 ASSERT(value->IsCallRuntime()); |
| 7471 #ifdef DEBUG | 7471 #ifdef DEBUG |
| 7472 const Runtime::Function* function = HCallRuntime::cast(value)->function(); | 7472 const Runtime::Function* function = HCallRuntime::cast(value)->function(); |
| 7473 ASSERT(function->function_id == Runtime::kHiddenCreateObjectLiteral); | 7473 ASSERT(function->function_id == Runtime::kCreateObjectLiteral); |
| 7474 #endif | 7474 #endif |
| 7475 } | 7475 } |
| 7476 | 7476 |
| 7477 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7477 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7478 }; | 7478 }; |
| 7479 | 7479 |
| 7480 | 7480 |
| 7481 class HDateField V8_FINAL : public HUnaryOperation { | 7481 class HDateField V8_FINAL : public HUnaryOperation { |
| 7482 public: | 7482 public: |
| 7483 DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*); | 7483 DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7787 }; | 7787 }; |
| 7788 | 7788 |
| 7789 | 7789 |
| 7790 | 7790 |
| 7791 #undef DECLARE_INSTRUCTION | 7791 #undef DECLARE_INSTRUCTION |
| 7792 #undef DECLARE_CONCRETE_INSTRUCTION | 7792 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7793 | 7793 |
| 7794 } } // namespace v8::internal | 7794 } } // namespace v8::internal |
| 7795 | 7795 |
| 7796 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7796 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |