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

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

Issue 6004005: Implement inlining of instanceof tests on ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 2163
2157 2164
2158 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2165 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2159 Abort("DoOsrEntry unimplemented."); 2166 Abort("DoOsrEntry unimplemented.");
2160 } 2167 }
2161 2168
2162 2169
2163 #undef __ 2170 #undef __
2164 2171
2165 } } // 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