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

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

Issue 6852015: Support string add in crankshaft: (Closed)
Patch Set: Review fixes and ports Created 9 years, 8 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
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-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 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 1938
1939 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 1939 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
1940 LOperand* obj = UseFixed(instr->object(), r1); 1940 LOperand* obj = UseFixed(instr->object(), r1);
1941 LOperand* val = UseFixed(instr->value(), r0); 1941 LOperand* val = UseFixed(instr->value(), r0);
1942 1942
1943 LInstruction* result = new LStoreNamedGeneric(obj, val); 1943 LInstruction* result = new LStoreNamedGeneric(obj, val);
1944 return MarkAsCall(result, instr); 1944 return MarkAsCall(result, instr);
1945 } 1945 }
1946 1946
1947 1947
1948 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
1949 LOperand* left = UseRegisterAtStart(instr->left());
1950 LOperand* right = UseRegisterAtStart(instr->right());
1951 return MarkAsCall(DefineFixed(new LStringAdd(left, right), r0), instr);
1952 }
1953
1954
1948 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 1955 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
1949 LOperand* string = UseRegister(instr->string()); 1956 LOperand* string = UseRegister(instr->string());
1950 LOperand* index = UseRegisterOrConstant(instr->index()); 1957 LOperand* index = UseRegisterOrConstant(instr->index());
1951 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 1958 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
1952 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 1959 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1953 } 1960 }
1954 1961
1955 1962
1956 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 1963 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
1957 LOperand* char_code = UseRegister(instr->value()); 1964 LOperand* char_code = UseRegister(instr->value());
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 2117
2111 2118
2112 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2119 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2113 HEnvironment* outer = current_block_->last_environment()->outer(); 2120 HEnvironment* outer = current_block_->last_environment()->outer();
2114 current_block_->UpdateEnvironment(outer); 2121 current_block_->UpdateEnvironment(outer);
2115 return NULL; 2122 return NULL;
2116 } 2123 }
2117 2124
2118 2125
2119 } } // namespace v8::internal 2126 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698