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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 virtual void CompileToNative(LCodeGen* generator); 1384 virtual void CompileToNative(LCodeGen* generator);
1385 virtual const char* Mnemonic() const; 1385 virtual const char* Mnemonic() const;
1386 1386
1387 Token::Value op() const { return op_; } 1387 Token::Value op() const { return op_; }
1388 1388
1389 private: 1389 private:
1390 Token::Value op_; 1390 Token::Value op_;
1391 }; 1391 };
1392 1392
1393 1393
1394 class LReturn: public LTemplateInstruction<0, 2, 0> { 1394 class LReturn: public LTemplateInstruction<0, 3, 0> {
1395 public: 1395 public:
1396 explicit LReturn(LOperand* value, LOperand* context) { 1396 explicit LReturn(LOperand* value, LOperand* context,
1397 LOperand* parameter_count) {
1397 inputs_[0] = value; 1398 inputs_[0] = value;
1398 inputs_[1] = context; 1399 inputs_[1] = context;
1400 inputs_[2] = parameter_count;
1399 } 1401 }
1400 1402
1403 bool has_constant_parameter_count() {
1404 return parameter_count()->IsConstantOperand();
1405 }
1406 LConstantOperand* constant_parameter_count() {
1407 ASSERT(has_constant_parameter_count());
1408 return LConstantOperand::cast(parameter_count());
1409 }
1410 LOperand* parameter_count() { return inputs_[2]; }
1411
1401 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1412 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1402 }; 1413 };
1403 1414
1404 1415
1405 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { 1416 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1406 public: 1417 public:
1407 explicit LLoadNamedField(LOperand* object) { 1418 explicit LLoadNamedField(LOperand* object) {
1408 inputs_[0] = object; 1419 inputs_[0] = object;
1409 } 1420 }
1410 1421
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2829 2840
2830 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2841 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2831 }; 2842 };
2832 2843
2833 #undef DECLARE_HYDROGEN_ACCESSOR 2844 #undef DECLARE_HYDROGEN_ACCESSOR
2834 #undef DECLARE_CONCRETE_INSTRUCTION 2845 #undef DECLARE_CONCRETE_INSTRUCTION
2835 2846
2836 } } // namespace v8::internal 2847 } } // namespace v8::internal
2837 2848
2838 #endif // V8_IA32_LITHIUM_IA32_H_ 2849 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698