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

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

Issue 131513016: Merged r18697 into 3.22 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.22
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 | « no previous file | src/hydrogen-instructions.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 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 1465 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
1466 }; 1466 };
1467 1467
1468 1468
1469 class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> { 1469 class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> {
1470 public: 1470 public:
1471 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*); 1471 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*);
1472 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*); 1472 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*);
1473 1473
1474 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1474 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1475 // TODO(titzer): require an Int32 input for faster returns.
1476 if (index == 2) return Representation::Smi();
1475 return Representation::Tagged(); 1477 return Representation::Tagged();
1476 } 1478 }
1477 1479
1478 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1480 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1479 1481
1480 HValue* value() { return OperandAt(0); } 1482 HValue* value() { return OperandAt(0); }
1481 HValue* context() { return OperandAt(1); } 1483 HValue* context() { return OperandAt(1); }
1482 HValue* parameter_count() { return OperandAt(2); } 1484 HValue* parameter_count() { return OperandAt(2); }
1483 1485
1484 DECLARE_CONCRETE_INSTRUCTION(Return) 1486 DECLARE_CONCRETE_INSTRUCTION(Return)
(...skipping 5716 matching lines...) Expand 10 before | Expand all | Expand 10 after
7201 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7203 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7202 }; 7204 };
7203 7205
7204 7206
7205 #undef DECLARE_INSTRUCTION 7207 #undef DECLARE_INSTRUCTION
7206 #undef DECLARE_CONCRETE_INSTRUCTION 7208 #undef DECLARE_CONCRETE_INSTRUCTION
7207 7209
7208 } } // namespace v8::internal 7210 } } // namespace v8::internal
7209 7211
7210 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7212 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698