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

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

Issue 7477045: Tentative implementation of string slices (hidden under the flag --string-slices). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patched RegExp for string slices. Created 9 years, 4 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 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 1750
1751 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") 1751 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
1752 DECLARE_HYDROGEN_ACCESSOR(StringAdd) 1752 DECLARE_HYDROGEN_ACCESSOR(StringAdd)
1753 1753
1754 LOperand* context() { return inputs_[0]; } 1754 LOperand* context() { return inputs_[0]; }
1755 LOperand* left() { return inputs_[1]; } 1755 LOperand* left() { return inputs_[1]; }
1756 LOperand* right() { return inputs_[2]; } 1756 LOperand* right() { return inputs_[2]; }
1757 }; 1757 };
1758 1758
1759 1759
1760 class LStringCharCodeAt: public LTemplateInstruction<1, 3, 0> { 1760 class LStringCharCodeAt: public LTemplateInstruction<1, 3, 1> {
1761 public: 1761 public:
1762 LStringCharCodeAt(LOperand* context, LOperand* string, LOperand* index) { 1762 LStringCharCodeAt(LOperand* context, LOperand* string,
1763 LOperand* index, LOperand* temp) {
1763 inputs_[0] = context; 1764 inputs_[0] = context;
1764 inputs_[1] = string; 1765 inputs_[1] = string;
1765 inputs_[2] = index; 1766 inputs_[2] = index;
1767 temps_[0] = temp;
1766 } 1768 }
1767 1769
1768 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") 1770 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1769 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) 1771 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1770 1772
1771 LOperand* context() { return inputs_[0]; } 1773 LOperand* context() { return inputs_[0]; }
1772 LOperand* string() { return inputs_[1]; } 1774 LOperand* string() { return inputs_[1]; }
1773 LOperand* index() { return inputs_[2]; } 1775 LOperand* index() { return inputs_[2]; }
1774 }; 1776 };
1775 1777
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 2294
2293 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2295 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2294 }; 2296 };
2295 2297
2296 #undef DECLARE_HYDROGEN_ACCESSOR 2298 #undef DECLARE_HYDROGEN_ACCESSOR
2297 #undef DECLARE_CONCRETE_INSTRUCTION 2299 #undef DECLARE_CONCRETE_INSTRUCTION
2298 2300
2299 } } // namespace v8::internal 2301 } } // namespace v8::internal
2300 2302
2301 #endif // V8_IA32_LITHIUM_IA32_H_ 2303 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698