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

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

Issue 9166007: Tiny improvement of register constraints in LClassOfTest instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | 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 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 1518
1519 LInstruction* LChunkBuilder::DoHasCachedArrayIndexAndBranch( 1519 LInstruction* LChunkBuilder::DoHasCachedArrayIndexAndBranch(
1520 HHasCachedArrayIndexAndBranch* instr) { 1520 HHasCachedArrayIndexAndBranch* instr) {
1521 ASSERT(instr->value()->representation().IsTagged()); 1521 ASSERT(instr->value()->representation().IsTagged());
1522 return new LHasCachedArrayIndexAndBranch(UseRegisterAtStart(instr->value())); 1522 return new LHasCachedArrayIndexAndBranch(UseRegisterAtStart(instr->value()));
1523 } 1523 }
1524 1524
1525 1525
1526 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1526 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1527 HClassOfTestAndBranch* instr) { 1527 HClassOfTestAndBranch* instr) {
1528 return new LClassOfTestAndBranch(UseTempRegister(instr->value()), 1528 return new LClassOfTestAndBranch(UseRegister(instr->value()),
1529 TempRegister(), 1529 TempRegister(),
1530 TempRegister()); 1530 TempRegister());
1531 } 1531 }
1532 1532
1533 1533
1534 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { 1534 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1535 LOperand* array = UseRegisterAtStart(instr->value()); 1535 LOperand* array = UseRegisterAtStart(instr->value());
1536 return DefineAsRegister(new LJSArrayLength(array)); 1536 return DefineAsRegister(new LJSArrayLength(array));
1537 } 1537 }
1538 1538
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2238 LOperand* key = UseOrConstantAtStart(instr->key()); 2238 LOperand* key = UseOrConstantAtStart(instr->key());
2239 LOperand* object = UseOrConstantAtStart(instr->object()); 2239 LOperand* object = UseOrConstantAtStart(instr->object());
2240 LIn* result = new LIn(key, object); 2240 LIn* result = new LIn(key, object);
2241 return MarkAsCall(DefineFixed(result, rax), instr); 2241 return MarkAsCall(DefineFixed(result, rax), instr);
2242 } 2242 }
2243 2243
2244 2244
2245 } } // namespace v8::internal 2245 } } // namespace v8::internal
2246 2246
2247 #endif // V8_TARGET_ARCH_X64 2247 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698