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

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

Issue 23548009: Merged r16406, r16431 into 3.19 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Created 7 years, 3 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-environment-liveness.cc ('k') | src/ia32/lithium-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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 #define HYDROGEN_ABSTRACT_INSTRUCTION_LIST(V) \ 57 #define HYDROGEN_ABSTRACT_INSTRUCTION_LIST(V) \
58 V(ArithmeticBinaryOperation) \ 58 V(ArithmeticBinaryOperation) \
59 V(BinaryOperation) \ 59 V(BinaryOperation) \
60 V(BitwiseBinaryOperation) \ 60 V(BitwiseBinaryOperation) \
61 V(ControlInstruction) \ 61 V(ControlInstruction) \
62 V(Instruction) \ 62 V(Instruction) \
63 63
64 64
65 #define HYDROGEN_CONCRETE_INSTRUCTION_LIST(V) \ 65 #define HYDROGEN_CONCRETE_INSTRUCTION_LIST(V) \
66 V(AbnormalExit) \
67 V(AccessArgumentsAt) \ 66 V(AccessArgumentsAt) \
68 V(Add) \ 67 V(Add) \
69 V(Allocate) \ 68 V(Allocate) \
70 V(ApplyArguments) \ 69 V(ApplyArguments) \
71 V(ArgumentsElements) \ 70 V(ArgumentsElements) \
72 V(ArgumentsLength) \ 71 V(ArgumentsLength) \
73 V(ArgumentsObject) \ 72 V(ArgumentsObject) \
74 V(Bitwise) \ 73 V(Bitwise) \
75 V(BitNot) \ 74 V(BitNot) \
76 V(BlockEntry) \ 75 V(BlockEntry) \
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 virtual void PrintDataTo(StringStream* stream); 1617 virtual void PrintDataTo(StringStream* stream);
1619 1618
1620 HValue* value() { return OperandAt(0); } 1619 HValue* value() { return OperandAt(0); }
1621 HValue* context() { return OperandAt(1); } 1620 HValue* context() { return OperandAt(1); }
1622 HValue* parameter_count() { return OperandAt(2); } 1621 HValue* parameter_count() { return OperandAt(2); }
1623 1622
1624 DECLARE_CONCRETE_INSTRUCTION(Return) 1623 DECLARE_CONCRETE_INSTRUCTION(Return)
1625 }; 1624 };
1626 1625
1627 1626
1628 class HAbnormalExit: public HTemplateControlInstruction<0, 0> {
1629 public:
1630 virtual Representation RequiredInputRepresentation(int index) {
1631 return Representation::None();
1632 }
1633
1634 DECLARE_CONCRETE_INSTRUCTION(AbnormalExit)
1635 };
1636
1637
1638 class HUnaryOperation: public HTemplateInstruction<1> { 1627 class HUnaryOperation: public HTemplateInstruction<1> {
1639 public: 1628 public:
1640 explicit HUnaryOperation(HValue* value) { 1629 explicit HUnaryOperation(HValue* value) {
1641 SetOperandAt(0, value); 1630 SetOperandAt(0, value);
1642 } 1631 }
1643 1632
1644 static HUnaryOperation* cast(HValue* value) { 1633 static HUnaryOperation* cast(HValue* value) {
1645 return reinterpret_cast<HUnaryOperation*>(value); 1634 return reinterpret_cast<HUnaryOperation*>(value);
1646 } 1635 }
1647 1636
(...skipping 4912 matching lines...) Expand 10 before | Expand all | Expand 10 after
6560 virtual bool IsDeletable() const { return true; } 6549 virtual bool IsDeletable() const { return true; }
6561 }; 6550 };
6562 6551
6563 6552
6564 #undef DECLARE_INSTRUCTION 6553 #undef DECLARE_INSTRUCTION
6565 #undef DECLARE_CONCRETE_INSTRUCTION 6554 #undef DECLARE_CONCRETE_INSTRUCTION
6566 6555
6567 } } // namespace v8::internal 6556 } } // namespace v8::internal
6568 6557
6569 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6558 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-environment-liveness.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698