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

Side by Side Diff: src/arm/lithium-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/code-stubs-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 } 1309 }
1310 1310
1311 1311
1312 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { 1312 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) {
1313 return DefineAsRegister(new LArgumentsElements); 1313 return DefineAsRegister(new LArgumentsElements);
1314 } 1314 }
1315 1315
1316 1316
1317 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { 1317 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) {
1318 LInstruction* result = 1318 LInstruction* result =
1319 new LInstanceOf(Use(instr->left()), Use(instr->right())); 1319 new LInstanceOf(UseFixed(instr->left(), r1),
1320 UseFixed(instr->right(), r0));
1320 return MarkAsCall(DefineFixed(result, r0), instr); 1321 return MarkAsCall(DefineFixed(result, r0), instr);
1321 } 1322 }
1322 1323
1323 1324
1324 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1325 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1325 LOperand* function = UseFixed(instr->function(), r1); 1326 LOperand* function = UseFixed(instr->function(), r1);
1326 LOperand* receiver = UseFixed(instr->receiver(), r0); 1327 LOperand* receiver = UseFixed(instr->receiver(), r0);
1327 LOperand* length = UseRegisterAtStart(instr->length()); 1328 LOperand* length = UseRegisterAtStart(instr->length());
1328 LOperand* elements = UseRegisterAtStart(instr->elements()); 1329 LOperand* elements = UseRegisterAtStart(instr->elements());
1329 LInstruction* result = new LApplyArguments(function, 1330 LInstruction* result = new LApplyArguments(function,
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 void LPointerMap::PrintTo(StringStream* stream) const { 2113 void LPointerMap::PrintTo(StringStream* stream) const {
2113 stream->Add("{"); 2114 stream->Add("{");
2114 for (int i = 0; i < pointer_operands_.length(); ++i) { 2115 for (int i = 0; i < pointer_operands_.length(); ++i) {
2115 if (i != 0) stream->Add(";"); 2116 if (i != 0) stream->Add(";");
2116 pointer_operands_[i]->PrintTo(stream); 2117 pointer_operands_[i]->PrintTo(stream);
2117 } 2118 }
2118 stream->Add("} @%d", position()); 2119 stream->Add("} @%d", position());
2119 } 2120 }
2120 2121
2121 } } // namespace v8::internal 2122 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698