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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-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 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 HHasCachedArrayIndexAndBranch* instr) { 1581 HHasCachedArrayIndexAndBranch* instr) {
1582 ASSERT(instr->value()->representation().IsTagged()); 1582 ASSERT(instr->value()->representation().IsTagged());
1583 return new(zone()) LHasCachedArrayIndexAndBranch( 1583 return new(zone()) LHasCachedArrayIndexAndBranch(
1584 UseRegisterAtStart(instr->value())); 1584 UseRegisterAtStart(instr->value()));
1585 } 1585 }
1586 1586
1587 1587
1588 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1588 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1589 HClassOfTestAndBranch* instr) { 1589 HClassOfTestAndBranch* instr) {
1590 ASSERT(instr->value()->representation().IsTagged()); 1590 ASSERT(instr->value()->representation().IsTagged());
1591 return new(zone()) LClassOfTestAndBranch(UseTempRegister(instr->value()), 1591 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()),
1592 TempRegister(), 1592 TempRegister(),
1593 TempRegister()); 1593 TempRegister());
1594 } 1594 }
1595 1595
1596 1596
1597 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { 1597 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1598 LOperand* array = UseRegisterAtStart(instr->value()); 1598 LOperand* array = UseRegisterAtStart(instr->value());
1599 return DefineAsRegister(new(zone()) LJSArrayLength(array)); 1599 return DefineAsRegister(new(zone()) LJSArrayLength(array));
1600 } 1600 }
1601 1601
1602 1602
1603 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( 1603 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 LOperand* key = UseOrConstantAtStart(instr->key()); 2374 LOperand* key = UseOrConstantAtStart(instr->key());
2375 LOperand* object = UseOrConstantAtStart(instr->object()); 2375 LOperand* object = UseOrConstantAtStart(instr->object());
2376 LIn* result = new(zone()) LIn(context, key, object); 2376 LIn* result = new(zone()) LIn(context, key, object);
2377 return MarkAsCall(DefineFixed(result, eax), instr); 2377 return MarkAsCall(DefineFixed(result, eax), instr);
2378 } 2378 }
2379 2379
2380 2380
2381 } } // namespace v8::internal 2381 } } // namespace v8::internal
2382 2382
2383 #endif // V8_TARGET_ARCH_IA32 2383 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698