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

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

Issue 12613004: To fully support hydrogen code stubs which accept a variable number of arguments, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The start environment for a hydrogen stub is initialized twice (fixed). 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 1331
1332 virtual Opcode opcode() const { return LInstruction::kArithmeticT; } 1332 virtual Opcode opcode() const { return LInstruction::kArithmeticT; }
1333 virtual void CompileToNative(LCodeGen* generator); 1333 virtual void CompileToNative(LCodeGen* generator);
1334 virtual const char* Mnemonic() const; 1334 virtual const char* Mnemonic() const;
1335 1335
1336 private: 1336 private:
1337 Token::Value op_; 1337 Token::Value op_;
1338 }; 1338 };
1339 1339
1340 1340
1341 class LReturn: public LTemplateInstruction<0, 1, 0> { 1341 class LReturn: public LTemplateInstruction<0, 2, 0> {
1342 public: 1342 public:
1343 explicit LReturn(LOperand* value) { 1343 explicit LReturn(LOperand* value, LOperand* parameter_count) {
1344 inputs_[0] = value; 1344 inputs_[0] = value;
1345 inputs_[1] = parameter_count;
1345 } 1346 }
1346 1347
1347 LOperand* value() { return inputs_[0]; } 1348 LOperand* value() { return inputs_[0]; }
1348 1349
1350 bool has_constant_parameter_count() {
1351 return parameter_count()->IsConstantOperand();
1352 }
1353 LConstantOperand* constant_parameter_count() {
1354 ASSERT(has_constant_parameter_count());
1355 return LConstantOperand::cast(parameter_count());
1356 }
1357 LOperand* parameter_count() { return inputs_[1]; }
1358
1349 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1359 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1350 }; 1360 };
1351 1361
1352 1362
1353 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { 1363 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1354 public: 1364 public:
1355 explicit LLoadNamedField(LOperand* object) { 1365 explicit LLoadNamedField(LOperand* object) {
1356 inputs_[0] = object; 1366 inputs_[0] = object;
1357 } 1367 }
1358 1368
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2620 2630
2621 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2631 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2622 }; 2632 };
2623 2633
2624 #undef DECLARE_HYDROGEN_ACCESSOR 2634 #undef DECLARE_HYDROGEN_ACCESSOR
2625 #undef DECLARE_CONCRETE_INSTRUCTION 2635 #undef DECLARE_CONCRETE_INSTRUCTION
2626 2636
2627 } } // namespace v8::int 2637 } } // namespace v8::int
2628 2638
2629 #endif // V8_X64_LITHIUM_X64_H_ 2639 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698