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

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

Issue 9147034: Inlining Math.min and Math.max in crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: bugfix (register allocation). Created 8 years, 11 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 class LSmiTag: public LTemplateInstruction<1, 1, 0> { 1605 class LSmiTag: public LTemplateInstruction<1, 1, 0> {
1606 public: 1606 public:
1607 explicit LSmiTag(LOperand* value) { 1607 explicit LSmiTag(LOperand* value) {
1608 inputs_[0] = value; 1608 inputs_[0] = value;
1609 } 1609 }
1610 1610
1611 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") 1611 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
1612 }; 1612 };
1613 1613
1614 1614
1615 class LNumberUntagD: public LTemplateInstruction<1, 1, 0> { 1615 class LNumberUntagD: public LTemplateInstruction<1, 1, 1> {
1616 public: 1616 public:
1617 explicit LNumberUntagD(LOperand* value) { 1617 explicit LNumberUntagD(LOperand* value, LOperand* temp) {
1618 inputs_[0] = value; 1618 inputs_[0] = value;
1619 temps_[0] = temp;
1619 } 1620 }
1620 1621
1621 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag") 1622 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
1622 DECLARE_HYDROGEN_ACCESSOR(Change); 1623 DECLARE_HYDROGEN_ACCESSOR(Change);
1623 }; 1624 };
1624 1625
1625 1626
1626 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { 1627 class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
1627 public: 1628 public:
1628 LSmiUntag(LOperand* value, bool needs_check) 1629 LSmiUntag(LOperand* value, bool needs_check)
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 2376
2376 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2377 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2377 }; 2378 };
2378 2379
2379 #undef DECLARE_HYDROGEN_ACCESSOR 2380 #undef DECLARE_HYDROGEN_ACCESSOR
2380 #undef DECLARE_CONCRETE_INSTRUCTION 2381 #undef DECLARE_CONCRETE_INSTRUCTION
2381 2382
2382 } } // namespace v8::internal 2383 } } // namespace v8::internal
2383 2384
2384 #endif // V8_IA32_LITHIUM_IA32_H_ 2385 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698