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

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

Issue 6368009: ARM: Implement StringLength and StringCharCodeAt in the lithium-arm (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 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
« no previous file with comments | « no previous file | src/arm/lithium-arm.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // LCmpT 60 // LCmpT
61 // LDivI 61 // LDivI
62 // LInstanceOf 62 // LInstanceOf
63 // LInstanceOfAndBranch 63 // LInstanceOfAndBranch
64 // LInstanceOfKnownGlobal 64 // LInstanceOfKnownGlobal
65 // LLoadKeyedFastElement 65 // LLoadKeyedFastElement
66 // LLoadKeyedGeneric 66 // LLoadKeyedGeneric
67 // LModI 67 // LModI
68 // LMulI 68 // LMulI
69 // LShiftI 69 // LShiftI
70 // LStringCharCodeAt
70 // LSubI 71 // LSubI
71 // LCallConstantFunction 72 // LCallConstantFunction
72 // LCallFunction 73 // LCallFunction
73 // LCallGlobal 74 // LCallGlobal
74 // LCallKeyed 75 // LCallKeyed
75 // LCallKnownGlobal 76 // LCallKnownGlobal
76 // LCallNamed 77 // LCallNamed
77 // LCallRuntime 78 // LCallRuntime
78 // LCallStub 79 // LCallStub
79 // LCheckPrototypeMaps 80 // LCheckPrototypeMaps
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // LIsSmiAndBranch 130 // LIsSmiAndBranch
130 // LLoadNamedField 131 // LLoadNamedField
131 // LLoadNamedGeneric 132 // LLoadNamedGeneric
132 // LLoadFunctionPrototype 133 // LLoadFunctionPrototype
133 // LNumberTagD 134 // LNumberTagD
134 // LNumberTagI 135 // LNumberTagI
135 // LPushArgument 136 // LPushArgument
136 // LReturn 137 // LReturn
137 // LSmiTag 138 // LSmiTag
138 // LStoreGlobal 139 // LStoreGlobal
140 // LStringLength
139 // LTaggedToI 141 // LTaggedToI
140 // LThrow 142 // LThrow
141 // LTypeof 143 // LTypeof
142 // LTypeofIs 144 // LTypeofIs
143 // LTypeofIsAndBranch 145 // LTypeofIsAndBranch
144 // LUnaryMathOperation 146 // LUnaryMathOperation
145 // LValueOf 147 // LValueOf
146 // LUnknownOSRValue 148 // LUnknownOSRValue
147 149
148 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ 150 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 V(ShiftI) \ 246 V(ShiftI) \
245 V(SmiTag) \ 247 V(SmiTag) \
246 V(SmiUntag) \ 248 V(SmiUntag) \
247 V(StackCheck) \ 249 V(StackCheck) \
248 V(StoreGlobal) \ 250 V(StoreGlobal) \
249 V(StoreKeyedFastElement) \ 251 V(StoreKeyedFastElement) \
250 V(StoreKeyedGeneric) \ 252 V(StoreKeyedGeneric) \
251 V(StoreNamedField) \ 253 V(StoreNamedField) \
252 V(StoreNamedGeneric) \ 254 V(StoreNamedGeneric) \
253 V(SubI) \ 255 V(SubI) \
256 V(StringCharCodeAt) \
257 V(StringLength) \
254 V(TaggedToI) \ 258 V(TaggedToI) \
255 V(Throw) \ 259 V(Throw) \
256 V(Typeof) \ 260 V(Typeof) \
257 V(TypeofIs) \ 261 V(TypeofIs) \
258 V(TypeofIsAndBranch) \ 262 V(TypeofIsAndBranch) \
259 V(UnaryMathOperation) \ 263 V(UnaryMathOperation) \
260 V(UnknownOSRValue) \ 264 V(UnknownOSRValue) \
261 V(ValueOf) 265 V(ValueOf)
262 266
263 267
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 1577
1574 class LStoreKeyedGeneric: public LStoreKeyed { 1578 class LStoreKeyedGeneric: public LStoreKeyed {
1575 public: 1579 public:
1576 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val) 1580 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val)
1577 : LStoreKeyed(obj, key, val) { } 1581 : LStoreKeyed(obj, key, val) { }
1578 1582
1579 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 1583 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1580 }; 1584 };
1581 1585
1582 1586
1587 class LStringCharCodeAt: public LBinaryOperation {
1588 public:
1589 LStringCharCodeAt(LOperand* string, LOperand* index)
1590 : LBinaryOperation(string, index) {}
1591
1592 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1593 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1594
1595 LOperand* string() { return left(); }
1596 LOperand* index() { return right(); }
1597 };
1598
1599
1600 class LStringLength: public LUnaryOperation {
1601 public:
1602 explicit LStringLength(LOperand* string) : LUnaryOperation(string) {}
1603
1604 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
1605 DECLARE_HYDROGEN_ACCESSOR(StringLength)
1606 };
1607
1608
1583 class LCheckFunction: public LUnaryOperation { 1609 class LCheckFunction: public LUnaryOperation {
1584 public: 1610 public:
1585 explicit LCheckFunction(LOperand* use) : LUnaryOperation(use) { } 1611 explicit LCheckFunction(LOperand* use) : LUnaryOperation(use) { }
1586 1612
1587 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") 1613 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
1588 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) 1614 DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
1589 }; 1615 };
1590 1616
1591 1617
1592 class LCheckInstanceType: public LUnaryOperation { 1618 class LCheckInstanceType: public LUnaryOperation {
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1995 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1970 }; 1996 };
1971 1997
1972 #undef DECLARE_HYDROGEN_ACCESSOR 1998 #undef DECLARE_HYDROGEN_ACCESSOR
1973 #undef DECLARE_INSTRUCTION 1999 #undef DECLARE_INSTRUCTION
1974 #undef DECLARE_CONCRETE_INSTRUCTION 2000 #undef DECLARE_CONCRETE_INSTRUCTION
1975 2001
1976 } } // namespace v8::internal 2002 } } // namespace v8::internal
1977 2003
1978 #endif // V8_ARM_LITHIUM_ARM_H_ 2004 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698