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

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

Issue 7860035: Merge bleeding edge up to 9192 into the GC branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 3 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/macro-assembler-x64.h » ('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 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 1979
1980 1980
1981 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 1981 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
1982 LOperand* left = UseOrConstantAtStart(instr->left()); 1982 LOperand* left = UseOrConstantAtStart(instr->left());
1983 LOperand* right = UseOrConstantAtStart(instr->right()); 1983 LOperand* right = UseOrConstantAtStart(instr->right());
1984 return MarkAsCall(DefineFixed(new LStringAdd(left, right), rax), instr); 1984 return MarkAsCall(DefineFixed(new LStringAdd(left, right), rax), instr);
1985 } 1985 }
1986 1986
1987 1987
1988 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 1988 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
1989 LOperand* string = UseRegister(instr->string()); 1989 LOperand* string = UseTempRegister(instr->string());
1990 LOperand* index = UseRegisterOrConstant(instr->index()); 1990 LOperand* index = UseTempRegister(instr->index());
1991 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 1991 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
1992 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 1992 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1993 } 1993 }
1994 1994
1995 1995
1996 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 1996 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
1997 LOperand* char_code = UseRegister(instr->value()); 1997 LOperand* char_code = UseRegister(instr->value());
1998 LStringCharFromCode* result = new LStringCharFromCode(char_code); 1998 LStringCharFromCode* result = new LStringCharFromCode(char_code);
1999 return AssignPointerMap(DefineAsRegister(result)); 1999 return AssignPointerMap(DefineAsRegister(result));
2000 } 2000 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 LOperand* key = UseOrConstantAtStart(instr->key()); 2170 LOperand* key = UseOrConstantAtStart(instr->key());
2171 LOperand* object = UseOrConstantAtStart(instr->object()); 2171 LOperand* object = UseOrConstantAtStart(instr->object());
2172 LIn* result = new LIn(key, object); 2172 LIn* result = new LIn(key, object);
2173 return MarkAsCall(DefineFixed(result, rax), instr); 2173 return MarkAsCall(DefineFixed(result, rax), instr);
2174 } 2174 }
2175 2175
2176 2176
2177 } } // namespace v8::internal 2177 } } // namespace v8::internal
2178 2178
2179 #endif // V8_TARGET_ARCH_X64 2179 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698