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

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

Issue 12385014: Hydrogen stubs for array constructors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More efficient code when number of arguments is known Created 7 years, 8 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
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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 bool has_constant_parameter_count() { 1468 bool has_constant_parameter_count() {
1469 return parameter_count()->IsConstantOperand(); 1469 return parameter_count()->IsConstantOperand();
1470 } 1470 }
1471 LConstantOperand* constant_parameter_count() { 1471 LConstantOperand* constant_parameter_count() {
1472 ASSERT(has_constant_parameter_count()); 1472 ASSERT(has_constant_parameter_count());
1473 return LConstantOperand::cast(parameter_count()); 1473 return LConstantOperand::cast(parameter_count());
1474 } 1474 }
1475 LOperand* parameter_count() { return inputs_[2]; } 1475 LOperand* parameter_count() { return inputs_[2]; }
1476 1476
1477 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1477 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1478 DECLARE_HYDROGEN_ACCESSOR(Return)
1478 }; 1479 };
1479 1480
1480 1481
1481 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { 1482 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1482 public: 1483 public:
1483 explicit LLoadNamedField(LOperand* object) { 1484 explicit LLoadNamedField(LOperand* object) {
1484 inputs_[0] = object; 1485 inputs_[0] = object;
1485 } 1486 }
1486 1487
1487 LOperand* object() { return inputs_[0]; } 1488 LOperand* object() { return inputs_[0]; }
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 2976
2976 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2977 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2977 }; 2978 };
2978 2979
2979 #undef DECLARE_HYDROGEN_ACCESSOR 2980 #undef DECLARE_HYDROGEN_ACCESSOR
2980 #undef DECLARE_CONCRETE_INSTRUCTION 2981 #undef DECLARE_CONCRETE_INSTRUCTION
2981 2982
2982 } } // namespace v8::internal 2983 } } // namespace v8::internal
2983 2984
2984 #endif // V8_IA32_LITHIUM_IA32_H_ 2985 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698