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

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

Issue 6474039: More x64 work. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 V(Return) \ 139 V(Return) \
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(StringLength) \
149 V(SubI) \ 150 V(SubI) \
150 V(TaggedToI) \ 151 V(TaggedToI) \
151 V(Throw) \ 152 V(Throw) \
152 V(Typeof) \ 153 V(Typeof) \
153 V(TypeofIs) \ 154 V(TypeofIs) \
154 V(TypeofIsAndBranch) \ 155 V(TypeofIsAndBranch) \
155 V(IsConstructCall) \ 156 V(IsConstructCall) \
156 V(IsConstructCallAndBranch) \ 157 V(IsConstructCallAndBranch) \
157 V(UnaryMathOperation) \ 158 V(UnaryMathOperation) \
158 V(UnknownOSRValue) \ 159 V(UnknownOSRValue) \
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 1544
1544 class LStoreKeyedGeneric: public LStoreKeyed { 1545 class LStoreKeyedGeneric: public LStoreKeyed {
1545 public: 1546 public:
1546 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val) 1547 LStoreKeyedGeneric(LOperand* obj, LOperand* key, LOperand* val)
1547 : LStoreKeyed(obj, key, val) { } 1548 : LStoreKeyed(obj, key, val) { }
1548 1549
1549 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 1550 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1550 }; 1551 };
1551 1552
1552 1553
1554 class LStringLength: public LTemplateInstruction<1, 1, 0> {
1555 public:
1556 explicit LStringLength(LOperand* string) {
1557 inputs_[0] = string;
1558 }
1559
1560 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
1561 DECLARE_HYDROGEN_ACCESSOR(StringLength)
1562
1563 LOperand* string() { return inputs_[0]; }
1564 };
1565
1566
1553 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { 1567 class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
1554 public: 1568 public:
1555 explicit LCheckFunction(LOperand* value) { 1569 explicit LCheckFunction(LOperand* value) {
1556 inputs_[0] = value; 1570 inputs_[0] = value;
1557 } 1571 }
1558 1572
1559 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") 1573 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
1560 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) 1574 DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
1561 }; 1575 };
1562 1576
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1977 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1964 }; 1978 };
1965 1979
1966 #undef DECLARE_HYDROGEN_ACCESSOR 1980 #undef DECLARE_HYDROGEN_ACCESSOR
1967 #undef DECLARE_INSTRUCTION 1981 #undef DECLARE_INSTRUCTION
1968 #undef DECLARE_CONCRETE_INSTRUCTION 1982 #undef DECLARE_CONCRETE_INSTRUCTION
1969 1983
1970 } } // namespace v8::int 1984 } } // namespace v8::int
1971 1985
1972 #endif // V8_X64_LITHIUM_X64_H_ 1986 #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