Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/hydrogen-instructions.h

Issue 131103021: Replace HThrow with HCallRuntime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 V(StoreKeyed) \ 165 V(StoreKeyed) \
166 V(StoreKeyedGeneric) \ 166 V(StoreKeyedGeneric) \
167 V(StoreNamedField) \ 167 V(StoreNamedField) \
168 V(StoreNamedGeneric) \ 168 V(StoreNamedGeneric) \
169 V(StringAdd) \ 169 V(StringAdd) \
170 V(StringCharCodeAt) \ 170 V(StringCharCodeAt) \
171 V(StringCharFromCode) \ 171 V(StringCharFromCode) \
172 V(StringCompareAndBranch) \ 172 V(StringCompareAndBranch) \
173 V(Sub) \ 173 V(Sub) \
174 V(ThisFunction) \ 174 V(ThisFunction) \
175 V(Throw) \
176 V(ToFastProperties) \ 175 V(ToFastProperties) \
177 V(TransitionElementsKind) \ 176 V(TransitionElementsKind) \
178 V(TrapAllocationMemento) \ 177 V(TrapAllocationMemento) \
179 V(Typeof) \ 178 V(Typeof) \
180 V(TypeofIsAndBranch) \ 179 V(TypeofIsAndBranch) \
181 V(UnaryMathOperation) \ 180 V(UnaryMathOperation) \
182 V(UnknownOSRValue) \ 181 V(UnknownOSRValue) \
183 V(UseConst) \ 182 V(UseConst) \
184 V(ValueOf) \ 183 V(ValueOf) \
185 V(WrapReceiver) 184 V(WrapReceiver)
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 1634
1636 static HUnaryOperation* cast(HValue* value) { 1635 static HUnaryOperation* cast(HValue* value) {
1637 return reinterpret_cast<HUnaryOperation*>(value); 1636 return reinterpret_cast<HUnaryOperation*>(value);
1638 } 1637 }
1639 1638
1640 HValue* value() const { return OperandAt(0); } 1639 HValue* value() const { return OperandAt(0); }
1641 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1640 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1642 }; 1641 };
1643 1642
1644 1643
1645 class HThrow V8_FINAL : public HTemplateInstruction<2> {
1646 public:
1647 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HThrow, HValue*);
1648
1649 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1650 return Representation::Tagged();
1651 }
1652
1653 HValue* context() { return OperandAt(0); }
1654 HValue* value() { return OperandAt(1); }
1655
1656 DECLARE_CONCRETE_INSTRUCTION(Throw)
1657
1658 private:
1659 HThrow(HValue* context, HValue* value) {
1660 SetOperandAt(0, context);
1661 SetOperandAt(1, value);
1662 SetAllSideEffects();
1663 }
1664 };
1665
1666
1667 class HUseConst V8_FINAL : public HUnaryOperation { 1644 class HUseConst V8_FINAL : public HUnaryOperation {
1668 public: 1645 public:
1669 DECLARE_INSTRUCTION_FACTORY_P1(HUseConst, HValue*); 1646 DECLARE_INSTRUCTION_FACTORY_P1(HUseConst, HValue*);
1670 1647
1671 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1648 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1672 return Representation::None(); 1649 return Representation::None();
1673 } 1650 }
1674 1651
1675 DECLARE_CONCRETE_INSTRUCTION(UseConst) 1652 DECLARE_CONCRETE_INSTRUCTION(UseConst)
1676 1653
(...skipping 5795 matching lines...) Expand 10 before | Expand all | Expand 10 after
7472 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7449 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7473 }; 7450 };
7474 7451
7475 7452
7476 #undef DECLARE_INSTRUCTION 7453 #undef DECLARE_INSTRUCTION
7477 #undef DECLARE_CONCRETE_INSTRUCTION 7454 #undef DECLARE_CONCRETE_INSTRUCTION
7478 7455
7479 } } // namespace v8::internal 7456 } } // namespace v8::internal
7480 7457
7481 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7458 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698