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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('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 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) { 1517 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) {
1518 ASSERT(instr->value()->representation().IsTagged()); 1518 ASSERT(instr->value()->representation().IsTagged());
1519 LOperand* value = UseRegisterAtStart(instr->value()); 1519 LOperand* value = UseRegisterAtStart(instr->value());
1520 1520
1521 return DefineAsRegister(new LHasInstanceType(value)); 1521 return DefineAsRegister(new LHasInstanceType(value));
1522 } 1522 }
1523 1523
1524 1524
1525 LInstruction* LChunkBuilder::DoGetCachedArrayIndex( 1525 LInstruction* LChunkBuilder::DoGetCachedArrayIndex(
1526 HGetCachedArrayIndex* instr) { 1526 HGetCachedArrayIndex* instr) {
1527 Abort("Unimplemented: %s", "DoGetCachedArrayIndex"); 1527 ASSERT(instr->value()->representation().IsTagged());
1528 return NULL; 1528 LOperand* value = UseRegisterAtStart(instr->value());
1529
1530 return DefineAsRegister(new LGetCachedArrayIndex(value));
1529 } 1531 }
1530 1532
1531 1533
1532 LInstruction* LChunkBuilder::DoHasCachedArrayIndex( 1534 LInstruction* LChunkBuilder::DoHasCachedArrayIndex(
1533 HHasCachedArrayIndex* instr) { 1535 HHasCachedArrayIndex* instr) {
1534 ASSERT(instr->value()->representation().IsTagged()); 1536 ASSERT(instr->value()->representation().IsTagged());
1535 LOperand* value = UseRegister(instr->value()); 1537 LOperand* value = UseRegister(instr->value());
1536 return DefineAsRegister(new LHasCachedArrayIndex(value)); 1538 return DefineAsRegister(new LHasCachedArrayIndex(value));
1537 } 1539 }
1538 1540
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 2037
2036 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2038 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2037 HEnvironment* outer = current_block_->last_environment()->outer(); 2039 HEnvironment* outer = current_block_->last_environment()->outer();
2038 current_block_->UpdateEnvironment(outer); 2040 current_block_->UpdateEnvironment(outer);
2039 return NULL; 2041 return NULL;
2040 } 2042 }
2041 2043
2042 } } // namespace v8::internal 2044 } } // namespace v8::internal
2043 2045
2044 #endif // V8_TARGET_ARCH_X64 2046 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698