Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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. |
|
Søren Thygesen Gjesse
2010/12/20 13:07:10
Please start comment with uppercase letter.
Karl Klose
2010/12/21 08:56:37
Done.
| |
| 1341 InstanceofStub stub(InstanceofStub::kArgsInRegisters); | |
| 1342 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 1343 | |
| 1344 Label true_value, done; | |
| 1345 __ tst(r0, r0); | |
|
Søren Thygesen Gjesse
2010/12/20 13:07:10
I think this can be done with conditional moves an
Karl Klose
2010/12/21 08:56:37
Done.
| |
| 1346 __ b(eq, &true_value); | |
| 1347 __ mov(r0, Operand(Factory::false_value())); | |
| 1348 __ b(&done); | |
| 1349 __ bind(&true_value); | |
| 1350 __ mov(r0, Operand(Factory::true_value())); | |
| 1351 __ bind(&done); | |
| 1341 } | 1352 } |
| 1342 | 1353 |
| 1343 | 1354 |
| 1344 void LCodeGen::DoInstanceOfAndBranch(LInstanceOfAndBranch* instr) { | 1355 void LCodeGen::DoInstanceOfAndBranch(LInstanceOfAndBranch* instr) { |
| 1345 Abort("DoInstanceOfAndBranch unimplemented."); | 1356 Abort("DoInstanceOfAndBranch unimplemented."); |
| 1346 } | 1357 } |
| 1347 | 1358 |
| 1348 | 1359 |
| 1349 | 1360 |
| 1350 static Condition ComputeCompareCondition(Token::Value op) { | 1361 static Condition ComputeCompareCondition(Token::Value op) { |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2158 | 2169 |
| 2159 | 2170 |
| 2160 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2171 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
| 2161 Abort("DoOsrEntry unimplemented."); | 2172 Abort("DoOsrEntry unimplemented."); |
| 2162 } | 2173 } |
| 2163 | 2174 |
| 2164 | 2175 |
| 2165 #undef __ | 2176 #undef __ |
| 2166 | 2177 |
| 2167 } } // namespace v8::internal | 2178 } } // namespace v8::internal |
| OLD | NEW |