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

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

Issue 6062002: Merge 6006:6095 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
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-codegen-arm.h ('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 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 // the map. The object has already been smi checked. 1206 // the map. The object has already been smi checked.
1207 Register scratch = ToRegister(instr->temp()); 1207 Register scratch = ToRegister(instr->temp());
1208 __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset)); 1208 __ ldr(scratch, FieldMemOperand(reg, HeapObject::kMapOffset));
1209 __ ldrb(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset)); 1209 __ ldrb(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset));
1210 __ tst(scratch, Operand(1 << Map::kIsUndetectable)); 1210 __ tst(scratch, Operand(1 << Map::kIsUndetectable));
1211 EmitBranch(true_block, false_block, ne); 1211 EmitBranch(true_block, false_block, ne);
1212 } 1212 }
1213 } 1213 }
1214 1214
1215 1215
1216 Condition LCodeGen::EmitIsObject(Register input,
1217 Register temp1,
1218 Register temp2,
1219 Label* is_not_object,
1220 Label* is_object) {
1221 Abort("EmitIsObject unimplemented.");
1222 return ne;
1223 }
1224
1225
1226 void LCodeGen::DoIsObject(LIsObject* instr) {
1227 Abort("DoIsObject unimplemented.");
1228 }
1229
1230
1231 void LCodeGen::DoIsObjectAndBranch(LIsObjectAndBranch* instr) {
1232 Abort("DoIsObjectAndBranch unimplemented.");
1233 }
1234
1235
1216 void LCodeGen::DoIsSmi(LIsSmi* instr) { 1236 void LCodeGen::DoIsSmi(LIsSmi* instr) {
1217 ASSERT(instr->hydrogen()->value()->representation().IsTagged()); 1237 ASSERT(instr->hydrogen()->value()->representation().IsTagged());
1218 Register result = ToRegister(instr->result()); 1238 Register result = ToRegister(instr->result());
1219 Register input_reg = EmitLoadRegister(instr->input(), ip); 1239 Register input_reg = EmitLoadRegister(instr->input(), ip);
1220 __ tst(input_reg, Operand(kSmiTagMask)); 1240 __ tst(input_reg, Operand(kSmiTagMask));
1221 __ LoadRoot(result, Heap::kTrueValueRootIndex); 1241 __ LoadRoot(result, Heap::kTrueValueRootIndex);
1222 Label done; 1242 Label done;
1223 __ b(eq, &done); 1243 __ b(eq, &done);
1224 __ LoadRoot(result, Heap::kFalseValueRootIndex); 1244 __ LoadRoot(result, Heap::kFalseValueRootIndex);
1225 __ bind(&done); 1245 __ bind(&done);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 Abort("DoClassOfTestAndBranch unimplemented."); 1330 Abort("DoClassOfTestAndBranch unimplemented.");
1311 } 1331 }
1312 1332
1313 1333
1314 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) { 1334 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) {
1315 Abort("DoCmpMapAndBranch unimplemented."); 1335 Abort("DoCmpMapAndBranch unimplemented.");
1316 } 1336 }
1317 1337
1318 1338
1319 void LCodeGen::DoInstanceOf(LInstanceOf* instr) { 1339 void LCodeGen::DoInstanceOf(LInstanceOf* instr) {
1320 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);
1321 } 1348 }
1322 1349
1323 1350
1324 void LCodeGen::DoInstanceOfAndBranch(LInstanceOfAndBranch* instr) { 1351 void LCodeGen::DoInstanceOfAndBranch(LInstanceOfAndBranch* instr) {
1325 Abort("DoInstanceOfAndBranch unimplemented."); 1352 Abort("DoInstanceOfAndBranch unimplemented.");
1326 } 1353 }
1327 1354
1328 1355
1329 1356
1330 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
1520 Abort("DoCallConstantFunction unimplemented."); 1547 Abort("DoCallConstantFunction unimplemented.");
1521 } 1548 }
1522 1549
1523 1550
1524 void LCodeGen::DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr) { 1551 void LCodeGen::DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr) {
1525 Abort("DoDeferredMathAbsTaggedHeapNumber unimplemented."); 1552 Abort("DoDeferredMathAbsTaggedHeapNumber unimplemented.");
1526 } 1553 }
1527 1554
1528 1555
1529 void LCodeGen::DoMathAbs(LUnaryMathOperation* instr) { 1556 void LCodeGen::DoMathAbs(LUnaryMathOperation* instr) {
1530 Abort("LUnaryMathOperation unimplemented."); 1557 Abort("DoMathAbs unimplemented.");
1531 } 1558 }
1532 1559
1533 1560
1534 void LCodeGen::DoMathFloor(LUnaryMathOperation* instr) { 1561 void LCodeGen::DoMathFloor(LUnaryMathOperation* instr) {
1535 Abort("DoMathFloor unimplemented."); 1562 Abort("DoMathFloor unimplemented.");
1536 } 1563 }
1537 1564
1538 1565
1539 void LCodeGen::DoMathSqrt(LUnaryMathOperation* instr) { 1566 void LCodeGen::DoMathSqrt(LUnaryMathOperation* instr) {
1540 Abort("DoMathSqrt unimplemented."); 1567 Abort("DoMathSqrt unimplemented.");
1541 } 1568 }
1542 1569
1543 1570
1544 void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) { 1571 void LCodeGen::DoUnaryMathOperation(LUnaryMathOperation* instr) {
1545 ASSERT(instr->op() == kMathFloor ||
1546 instr->op() == kMathAbs);
1547
1548 switch (instr->op()) { 1572 switch (instr->op()) {
1549 case kMathAbs: 1573 case kMathAbs:
1550 DoMathAbs(instr); 1574 DoMathAbs(instr);
1551 break; 1575 break;
1552 case kMathFloor: 1576 case kMathFloor:
1553 DoMathFloor(instr); 1577 DoMathFloor(instr);
1554 break; 1578 break;
1555 case kMathSqrt: 1579 case kMathSqrt:
1556 DoMathSqrt(instr); 1580 DoMathSqrt(instr);
1557 break; 1581 break;
1558 default: 1582 default:
1583 Abort("Unimplemented type of LUnaryMathOperation.");
1559 UNREACHABLE(); 1584 UNREACHABLE();
1560 } 1585 }
1561 } 1586 }
1562 1587
1563 1588
1564 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { 1589 void LCodeGen::DoCallKeyed(LCallKeyed* instr) {
1565 Abort("DoCallKeyed unimplemented."); 1590 Abort("DoCallKeyed unimplemented.");
1566 } 1591 }
1567 1592
1568 1593
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 2163
2139 2164
2140 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2165 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2141 Abort("DoOsrEntry unimplemented."); 2166 Abort("DoOsrEntry unimplemented.");
2142 } 2167 }
2143 2168
2144 2169
2145 #undef __ 2170 #undef __
2146 2171
2147 } } // namespace v8::internal 2172 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698