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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | src/x64/stub-cache-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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 TempRegister()); 1491 TempRegister());
1492 } 1492 }
1493 1493
1494 1494
1495 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { 1495 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1496 LOperand* array = UseRegisterAtStart(instr->value()); 1496 LOperand* array = UseRegisterAtStart(instr->value());
1497 return DefineAsRegister(new LJSArrayLength(array)); 1497 return DefineAsRegister(new LJSArrayLength(array));
1498 } 1498 }
1499 1499
1500 1500
1501 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { 1501 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
1502 HFixedArrayBaseLength* instr) {
1502 LOperand* array = UseRegisterAtStart(instr->value()); 1503 LOperand* array = UseRegisterAtStart(instr->value());
1503 return DefineAsRegister(new LFixedArrayLength(array)); 1504 return DefineAsRegister(new LFixedArrayBaseLength(array));
1504 } 1505 }
1505 1506
1506 1507
1507 LInstruction* LChunkBuilder::DoExternalArrayLength(
1508 HExternalArrayLength* instr) {
1509 LOperand* array = UseRegisterAtStart(instr->value());
1510 return DefineAsRegister(new LExternalArrayLength(array));
1511 }
1512
1513
1514 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { 1508 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) {
1515 LOperand* object = UseRegisterAtStart(instr->value()); 1509 LOperand* object = UseRegisterAtStart(instr->value());
1516 return DefineAsRegister(new LElementsKind(object)); 1510 return DefineAsRegister(new LElementsKind(object));
1517 } 1511 }
1518 1512
1519 1513
1520 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1514 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1521 LOperand* object = UseRegister(instr->value()); 1515 LOperand* object = UseRegister(instr->value());
1522 LValueOf* result = new LValueOf(object); 1516 LValueOf* result = new LValueOf(object);
1523 return AssignEnvironment(DefineSameAsFirst(result)); 1517 return AssignEnvironment(DefineSameAsFirst(result));
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2173 LOperand* key = UseOrConstantAtStart(instr->key()); 2167 LOperand* key = UseOrConstantAtStart(instr->key());
2174 LOperand* object = UseOrConstantAtStart(instr->object()); 2168 LOperand* object = UseOrConstantAtStart(instr->object());
2175 LIn* result = new LIn(key, object); 2169 LIn* result = new LIn(key, object);
2176 return MarkAsCall(DefineFixed(result, rax), instr); 2170 return MarkAsCall(DefineFixed(result, rax), instr);
2177 } 2171 }
2178 2172
2179 2173
2180 } } // namespace v8::internal 2174 } } // namespace v8::internal
2181 2175
2182 #endif // V8_TARGET_ARCH_X64 2176 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698