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

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

Issue 6312124: X64: Implement FixedArrayLength, BoundsCheck, LoadElements, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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
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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 } 1318 }
1319 1319
1320 1320
1321 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { 1321 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1322 Abort("Unimplemented: %s", "DoJSArrayLength"); 1322 Abort("Unimplemented: %s", "DoJSArrayLength");
1323 return NULL; 1323 return NULL;
1324 } 1324 }
1325 1325
1326 1326
1327 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { 1327 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) {
1328 Abort("Unimplemented: %s", "DoFixedArrayLength"); 1328 LOperand* array = UseRegisterAtStart(instr->value());
1329 return NULL; 1329 return DefineAsRegister(new LFixedArrayLength(array));
1330 } 1330 }
1331 1331
1332 1332
1333 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1333 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
1334 Abort("Unimplemented: %s", "DoValueOf"); 1334 Abort("Unimplemented: %s", "DoValueOf");
1335 return NULL; 1335 return NULL;
1336 } 1336 }
1337 1337
1338 1338
1339 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1339 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1340 Abort("Unimplemented: %s", "DoBoundsCheck"); 1340 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()),
1341 return NULL; 1341 Use(instr->length())));
1342 } 1342 }
1343 1343
1344 1344
1345 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1345 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1346 // The control instruction marking the end of a block that completed 1346 // The control instruction marking the end of a block that completed
1347 // abruptly (e.g., threw an exception). There is nothing specific to do. 1347 // abruptly (e.g., threw an exception). There is nothing specific to do.
1348 return NULL; 1348 return NULL;
1349 } 1349 }
1350 1350
1351 1351
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 1516
1517 1517
1518 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 1518 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
1519 HLoadFunctionPrototype* instr) { 1519 HLoadFunctionPrototype* instr) {
1520 Abort("Unimplemented: %s", "DoLoadFunctionPrototype"); 1520 Abort("Unimplemented: %s", "DoLoadFunctionPrototype");
1521 return NULL; 1521 return NULL;
1522 } 1522 }
1523 1523
1524 1524
1525 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { 1525 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) {
1526 Abort("Unimplemented: %s", "DoLoadElements"); 1526 LOperand* input = UseRegisterAtStart(instr->value());
1527 return NULL; 1527 return DefineSameAsFirst(new LLoadElements(input));
1528 } 1528 }
1529 1529
1530 1530
1531 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( 1531 LInstruction* LChunkBuilder::DoLoadKeyedFastElement(
1532 HLoadKeyedFastElement* instr) { 1532 HLoadKeyedFastElement* instr) {
1533 Abort("Unimplemented: %s", "DoLoadKeyedFastElement"); 1533 ASSERT(instr->representation().IsTagged());
1534 return NULL; 1534 ASSERT(instr->key()->representation().IsInteger32());
1535 LOperand* obj = UseRegisterAtStart(instr->object());
1536 LOperand* key = UseRegisterAtStart(instr->key());
1537 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key);
1538 return AssignEnvironment(DefineSameAsFirst(result));
1535 } 1539 }
1536 1540
1537 1541
1538 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 1542 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
1539 Abort("Unimplemented: %s", "DoLoadKeyedGeneric"); 1543 Abort("Unimplemented: %s", "DoLoadKeyedGeneric");
1540 return NULL; 1544 return NULL;
1541 } 1545 }
1542 1546
1543 1547
1544 LInstruction* LChunkBuilder::DoStoreKeyedFastElement( 1548 LInstruction* LChunkBuilder::DoStoreKeyedFastElement(
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 1725
1722 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1726 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1723 HEnvironment* outer = current_block_->last_environment()->outer(); 1727 HEnvironment* outer = current_block_->last_environment()->outer();
1724 current_block_->UpdateEnvironment(outer); 1728 current_block_->UpdateEnvironment(outer);
1725 return NULL; 1729 return NULL;
1726 } 1730 }
1727 1731
1728 } } // namespace v8::internal 1732 } } // namespace v8::internal
1729 1733
1730 #endif // V8_TARGET_ARCH_X64 1734 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/lithium-codegen-x64.cc ('K') | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698