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

Side by Side Diff: src/mips/lithium-mips.h

Issue 12414011: MIPS: To fully support hydrogen code stubs which accept a variable number of arguments, the HReturn… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 1336
1337 virtual Opcode opcode() const { return LInstruction::kArithmeticT; } 1337 virtual Opcode opcode() const { return LInstruction::kArithmeticT; }
1338 virtual void CompileToNative(LCodeGen* generator); 1338 virtual void CompileToNative(LCodeGen* generator);
1339 virtual const char* Mnemonic() const; 1339 virtual const char* Mnemonic() const;
1340 1340
1341 private: 1341 private:
1342 Token::Value op_; 1342 Token::Value op_;
1343 }; 1343 };
1344 1344
1345 1345
1346 class LReturn: public LTemplateInstruction<0, 1, 0> { 1346 class LReturn: public LTemplateInstruction<0, 2, 0> {
1347 public: 1347 public:
1348 explicit LReturn(LOperand* value) { 1348 explicit LReturn(LOperand* value, LOperand* parameter_count) {
1349 inputs_[0] = value; 1349 inputs_[0] = value;
1350 inputs_[1] = parameter_count;
1350 } 1351 }
1351 1352
1352 LOperand* value() { return inputs_[0]; } 1353 LOperand* value() { return inputs_[0]; }
1353 1354
1355 bool has_constant_parameter_count() {
1356 return parameter_count()->IsConstantOperand();
1357 }
1358 LConstantOperand* constant_parameter_count() {
1359 ASSERT(has_constant_parameter_count());
1360 return LConstantOperand::cast(parameter_count());
1361 }
1362 LOperand* parameter_count() { return inputs_[1]; }
1363
1354 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1364 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1355 }; 1365 };
1356 1366
1357 1367
1358 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { 1368 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1359 public: 1369 public:
1360 explicit LLoadNamedField(LOperand* object) { 1370 explicit LLoadNamedField(LOperand* object) {
1361 inputs_[0] = object; 1371 inputs_[0] = object;
1362 } 1372 }
1363 1373
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 2672
2663 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2673 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2664 }; 2674 };
2665 2675
2666 #undef DECLARE_HYDROGEN_ACCESSOR 2676 #undef DECLARE_HYDROGEN_ACCESSOR
2667 #undef DECLARE_CONCRETE_INSTRUCTION 2677 #undef DECLARE_CONCRETE_INSTRUCTION
2668 2678
2669 } } // namespace v8::internal 2679 } } // namespace v8::internal
2670 2680
2671 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2681 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698