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

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

Issue 7600025: Create a common subclass for arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 4 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/ia32/stub-cache-ia32.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 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 TempRegister()); 1531 TempRegister());
1532 } 1532 }
1533 1533
1534 1534
1535 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { 1535 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1536 LOperand* array = UseRegisterAtStart(instr->value()); 1536 LOperand* array = UseRegisterAtStart(instr->value());
1537 return DefineAsRegister(new LJSArrayLength(array)); 1537 return DefineAsRegister(new LJSArrayLength(array));
1538 } 1538 }
1539 1539
1540 1540
1541 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { 1541 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
1542 HFixedArrayBaseLength* instr) {
1542 LOperand* array = UseRegisterAtStart(instr->value()); 1543 LOperand* array = UseRegisterAtStart(instr->value());
1543 return DefineAsRegister(new LFixedArrayLength(array)); 1544 return DefineAsRegister(new LFixedArrayBaseLength(array));
1544 } 1545 }
1545 1546
1546 1547
1547 LInstruction* LChunkBuilder::DoExternalArrayLength(
1548 HExternalArrayLength* instr) {
1549 LOperand* array = UseRegisterAtStart(instr->value());
1550 return DefineAsRegister(new LExternalArrayLength(array));
1551 }
1552
1553
1554 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { 1548 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) {
1555 LOperand* object = UseRegisterAtStart(instr->value()); 1549 LOperand* object = UseRegisterAtStart(instr->value());
1556 return DefineAsRegister(new LElementsKind(object)); 1550 return DefineAsRegister(new LElementsKind(object));
1557 } 1551 }
1558 1552
1559 1553
1560 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1554 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1561 LOperand* object = UseRegister(instr->value()); 1555 LOperand* object = UseRegister(instr->value());
1562 LValueOf* result = new LValueOf(object, TempRegister()); 1556 LValueOf* result = new LValueOf(object, TempRegister());
1563 return AssignEnvironment(DefineSameAsFirst(result)); 1557 return AssignEnvironment(DefineSameAsFirst(result));
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 LOperand* key = UseOrConstantAtStart(instr->key()); 2256 LOperand* key = UseOrConstantAtStart(instr->key());
2263 LOperand* object = UseOrConstantAtStart(instr->object()); 2257 LOperand* object = UseOrConstantAtStart(instr->object());
2264 LIn* result = new LIn(context, key, object); 2258 LIn* result = new LIn(context, key, object);
2265 return MarkAsCall(DefineFixed(result, eax), instr); 2259 return MarkAsCall(DefineFixed(result, eax), instr);
2266 } 2260 }
2267 2261
2268 2262
2269 } } // namespace v8::internal 2263 } } // namespace v8::internal
2270 2264
2271 #endif // V8_TARGET_ARCH_IA32 2265 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698