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 23506020: Merged r16358, r16372, r16406, r16431, r16443 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
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/code-stubs-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(BlockEntry) \ 74 V(BlockEntry) \
76 V(BoundsCheck) \ 75 V(BoundsCheck) \
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 1418
1420 private: 1419 private:
1421 HReturn(HValue* value, HValue* context, HValue* parameter_count) { 1420 HReturn(HValue* value, HValue* context, HValue* parameter_count) {
1422 SetOperandAt(0, value); 1421 SetOperandAt(0, value);
1423 SetOperandAt(1, context); 1422 SetOperandAt(1, context);
1424 SetOperandAt(2, parameter_count); 1423 SetOperandAt(2, parameter_count);
1425 } 1424 }
1426 }; 1425 };
1427 1426
1428 1427
1429 class HAbnormalExit: public HTemplateControlInstruction<0, 0> {
1430 public:
1431 virtual Representation RequiredInputRepresentation(int index) {
1432 return Representation::None();
1433 }
1434
1435 DECLARE_CONCRETE_INSTRUCTION(AbnormalExit)
1436 };
1437
1438
1439 class HUnaryOperation: public HTemplateInstruction<1> { 1428 class HUnaryOperation: public HTemplateInstruction<1> {
1440 public: 1429 public:
1441 HUnaryOperation(HValue* value, HType type = HType::Tagged()) 1430 HUnaryOperation(HValue* value, HType type = HType::Tagged())
1442 : HTemplateInstruction<1>(type) { 1431 : HTemplateInstruction<1>(type) {
1443 SetOperandAt(0, value); 1432 SetOperandAt(0, value);
1444 } 1433 }
1445 1434
1446 static HUnaryOperation* cast(HValue* value) { 1435 static HUnaryOperation* cast(HValue* value) {
1447 return reinterpret_cast<HUnaryOperation*>(value); 1436 return reinterpret_cast<HUnaryOperation*>(value);
1448 } 1437 }
(...skipping 5340 matching lines...) Expand 10 before | Expand all | Expand 10 after
6789 virtual bool IsDeletable() const { return true; } 6778 virtual bool IsDeletable() const { return true; }
6790 }; 6779 };
6791 6780
6792 6781
6793 #undef DECLARE_INSTRUCTION 6782 #undef DECLARE_INSTRUCTION
6794 #undef DECLARE_CONCRETE_INSTRUCTION 6783 #undef DECLARE_CONCRETE_INSTRUCTION
6795 6784
6796 } } // namespace v8::internal 6785 } } // namespace v8::internal
6797 6786
6798 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6787 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-environment-liveness.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698