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

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

Issue 6611014: Add lithium support for %_GetCachedArrayIndex for IA32 and X64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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-ia32.h ('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 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) { 1541 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) {
1542 ASSERT(instr->value()->representation().IsTagged()); 1542 ASSERT(instr->value()->representation().IsTagged());
1543 LOperand* value = UseRegisterAtStart(instr->value()); 1543 LOperand* value = UseRegisterAtStart(instr->value());
1544 1544
1545 return DefineAsRegister(new LHasInstanceType(value)); 1545 return DefineAsRegister(new LHasInstanceType(value));
1546 } 1546 }
1547 1547
1548 1548
1549 LInstruction* LChunkBuilder::DoGetCachedArrayIndex( 1549 LInstruction* LChunkBuilder::DoGetCachedArrayIndex(
1550 HGetCachedArrayIndex* instr) { 1550 HGetCachedArrayIndex* instr) {
1551 Abort("Unimplemented: %s", "DoGetCachedArrayIndex"); 1551 ASSERT(instr->value()->representation().IsTagged());
1552 return NULL; 1552 LOperand* value = UseRegisterAtStart(instr->value());
1553
1554 return DefineAsRegister(new LGetCachedArrayIndex(value));
1553 } 1555 }
1554 1556
1555 1557
1556 LInstruction* LChunkBuilder::DoHasCachedArrayIndex( 1558 LInstruction* LChunkBuilder::DoHasCachedArrayIndex(
1557 HHasCachedArrayIndex* instr) { 1559 HHasCachedArrayIndex* instr) {
1558 ASSERT(instr->value()->representation().IsTagged()); 1560 ASSERT(instr->value()->representation().IsTagged());
1559 LOperand* value = UseRegister(instr->value()); 1561 LOperand* value = UseRegister(instr->value());
1560 1562
1561 return DefineAsRegister(new LHasCachedArrayIndex(value)); 1563 return DefineAsRegister(new LHasCachedArrayIndex(value));
1562 } 1564 }
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2088 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2087 HEnvironment* outer = current_block_->last_environment()->outer(); 2089 HEnvironment* outer = current_block_->last_environment()->outer();
2088 current_block_->UpdateEnvironment(outer); 2090 current_block_->UpdateEnvironment(outer);
2089 return NULL; 2091 return NULL;
2090 } 2092 }
2091 2093
2092 2094
2093 } } // namespace v8::internal 2095 } } // namespace v8::internal
2094 2096
2095 #endif // V8_TARGET_ARCH_IA32 2097 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698