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

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

Issue 6469052: x64: Implement regexp literals and string CharCodeAt in lithium backend. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments. Created 9 years, 10 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 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 V(ShiftI) \ 140 V(ShiftI) \
141 V(SmiTag) \ 141 V(SmiTag) \
142 V(SmiUntag) \ 142 V(SmiUntag) \
143 V(StackCheck) \ 143 V(StackCheck) \
144 V(StoreGlobal) \ 144 V(StoreGlobal) \
145 V(StoreKeyedFastElement) \ 145 V(StoreKeyedFastElement) \
146 V(StoreKeyedGeneric) \ 146 V(StoreKeyedGeneric) \
147 V(StoreNamedField) \ 147 V(StoreNamedField) \
148 V(StoreNamedGeneric) \ 148 V(StoreNamedGeneric) \
149 V(StorePixelArrayElement) \ 149 V(StorePixelArrayElement) \
150 V(StringCharCodeAt) \
150 V(StringLength) \ 151 V(StringLength) \
151 V(SubI) \ 152 V(SubI) \
152 V(TaggedToI) \ 153 V(TaggedToI) \
153 V(Throw) \ 154 V(Throw) \
154 V(Typeof) \ 155 V(Typeof) \
155 V(TypeofIs) \ 156 V(TypeofIs) \
156 V(TypeofIsAndBranch) \ 157 V(TypeofIsAndBranch) \
157 V(IsConstructCall) \ 158 V(IsConstructCall) \
158 V(IsConstructCallAndBranch) \ 159 V(IsConstructCallAndBranch) \
159 V(UnaryMathOperation) \ 160 V(UnaryMathOperation) \
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 1566
1566 class LStoreKeyedGeneric: public LStoreKeyed { 1567 class LStoreKeyedGeneric: public LStoreKeyed {
1567 public: 1568 public:
1568 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) 1569 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value)
1569 : LStoreKeyed(object, key, value) { } 1570 : LStoreKeyed(object, key, value) { }
1570 1571
1571 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 1572 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1572 }; 1573 };
1573 1574
1574 1575
1576 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
1577 public:
1578 LStringCharCodeAt(LOperand* string, LOperand* index) {
1579 inputs_[0] = string;
1580 inputs_[1] = index;
1581 }
1582
1583 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1584 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1585
1586 LOperand* string() { return inputs_[0]; }
1587 LOperand* index() { return inputs_[1]; }
1588 };
1589
1590
1575 class LStringLength: public LTemplateInstruction<1, 1, 0> { 1591 class LStringLength: public LTemplateInstruction<1, 1, 0> {
1576 public: 1592 public:
1577 explicit LStringLength(LOperand* string) { 1593 explicit LStringLength(LOperand* string) {
1578 inputs_[0] = string; 1594 inputs_[0] = string;
1579 } 1595 }
1580 1596
1581 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") 1597 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
1582 DECLARE_HYDROGEN_ACCESSOR(StringLength) 1598 DECLARE_HYDROGEN_ACCESSOR(StringLength)
1583 1599
1584 LOperand* string() { return inputs_[0]; } 1600 LOperand* string() { return inputs_[0]; }
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2014 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1999 }; 2015 };
2000 2016
2001 #undef DECLARE_HYDROGEN_ACCESSOR 2017 #undef DECLARE_HYDROGEN_ACCESSOR
2002 #undef DECLARE_INSTRUCTION 2018 #undef DECLARE_INSTRUCTION
2003 #undef DECLARE_CONCRETE_INSTRUCTION 2019 #undef DECLARE_CONCRETE_INSTRUCTION
2004 2020
2005 } } // namespace v8::int 2021 } } // namespace v8::int
2006 2022
2007 #endif // V8_X64_LITHIUM_X64_H_ 2023 #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