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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 6067004: Version 3.0.4... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years 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/arm/lithium-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 Abort("DoClassOfTestAndBranch unimplemented."); 1330 Abort("DoClassOfTestAndBranch unimplemented.");
1331 } 1331 }
1332 1332
1333 1333
1334 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) { 1334 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) {
1335 Abort("DoCmpMapAndBranch unimplemented."); 1335 Abort("DoCmpMapAndBranch unimplemented.");
1336 } 1336 }
1337 1337
1338 1338
1339 void LCodeGen::DoInstanceOf(LInstanceOf* instr) { 1339 void LCodeGen::DoInstanceOf(LInstanceOf* instr) {
1340 Abort("DoInstanceOf unimplemented."); 1340 // We expect object and function in registers r1 and r0.
1341 InstanceofStub stub(InstanceofStub::kArgsInRegisters);
1342 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
1343
1344 Label true_value, done;
1345 __ tst(r0, r0);
1346 __ mov(r0, Operand(Factory::false_value()), LeaveCC, eq);
1347 __ mov(r0, Operand(Factory::true_value()), LeaveCC, ne);
1341 } 1348 }
1342 1349
1343 1350
1344 void LCodeGen::DoInstanceOfAndBranch(LInstanceOfAndBranch* instr) { 1351 void LCodeGen::DoInstanceOfAndBranch(LInstanceOfAndBranch* instr) {
1345 Abort("DoInstanceOfAndBranch unimplemented."); 1352 Abort("DoInstanceOfAndBranch unimplemented.");
1346 } 1353 }
1347 1354
1348 1355
1349 1356
1350 static Condition ComputeCompareCondition(Token::Value op) { 1357 static Condition ComputeCompareCondition(Token::Value op) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 Abort("DoCallConstantFunction unimplemented."); 1547 Abort("DoCallConstantFunction unimplemented.");
1541 } 1548 }
1542 1549
1543 1550
1544 void LCodeGen::DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr) { 1551 void LCodeGen::DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr) {
1545 Abort("DoDeferredMathAbsTaggedHeapNumber unimplemented."); 1552 Abort("DoDeferredMathAbsTaggedHeapNumber unimplemented.");
1546 } 1553 }
1547 1554
1548 1555
1549 void LCodeGen::DoMathAbs(LUnaryMathOperation* instr) { 1556 void LCodeGen::DoMathAbs(LUnaryMathOperation* instr) {
1550 Abort("LUnaryMathOperation unimplemented."); 1557 Abort("DoMathAbs unimplemented.");
1551 } 1558 }
1552 1559
1553 1560
1554 void LCodeGen::DoMathFloor(LUnaryMathOperation* instr) { 1561 void LCodeGen::DoMathFloor(LUnaryMathOperation* instr) {
1555 Abort("DoMathFloor unimplemented."); 1562 Abort("DoMathFloor unimplemented.");
1556 } 1563 }
1557 1564
1558 1565
1559 void LCodeGen::DoMathSqrt(LUnaryMathOperation* instr) { 1566 void LCodeGen::DoMathSqrt(LUnaryMathOperation* instr) {
1560 Abort("DoMathSqrt unimplemented."); 1567 Abort("DoMathSqrt unimplemented.");
1561 } 1568 }
1562 1569
1563 1570
1564 void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) { 1571 void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) {
1565 ASSERT(instr->op() == kMathFloor ||
1566 instr->op() == kMathAbs);
1567
1568 switch (instr->op()) { 1572 switch (instr->op()) {
1569 case kMathAbs: 1573 case kMathAbs:
1570 DoMathAbs(instr); 1574 DoMathAbs(instr);
1571 break; 1575 break;
1572 case kMathFloor: 1576 case kMathFloor:
1573 DoMathFloor(instr); 1577 DoMathFloor(instr);
1574 break; 1578 break;
1575 case kMathSqrt: 1579 case kMathSqrt:
1576 DoMathSqrt(instr); 1580 DoMathSqrt(instr);
1577 break; 1581 break;
1578 default: 1582 default:
1583 Abort("Unimplemented type of LUnaryMathOperation.");
1579 UNREACHABLE(); 1584 UNREACHABLE();
1580 } 1585 }
1581 } 1586 }
1582 1587
1583 1588
1584 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { 1589 void LCodeGen::DoCallKeyed(LCallKeyed* instr) {
1585 Abort("DoCallKeyed unimplemented."); 1590 Abort("DoCallKeyed unimplemented.");
1586 } 1591 }
1587 1592
1588 1593
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 2163
2159 2164
2160 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2165 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2161 Abort("DoOsrEntry unimplemented."); 2166 Abort("DoOsrEntry unimplemented.");
2162 } 2167 }
2163 2168
2164 2169
2165 #undef __ 2170 #undef __
2166 2171
2167 } } // namespace v8::internal 2172 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698