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

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

Issue 6174001: ARM: Implement lithium codegen for DoTypeof, DoTypeofIs and DoSmiUntag (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 months 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 | « no previous file | 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 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 2015 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
2016 LOperand* arguments = UseRegister(instr->arguments()); 2016 LOperand* arguments = UseRegister(instr->arguments());
2017 LOperand* length = UseTempRegister(instr->length()); 2017 LOperand* length = UseTempRegister(instr->length());
2018 LOperand* index = UseRegister(instr->index()); 2018 LOperand* index = UseRegister(instr->index());
2019 LInstruction* result = new LAccessArgumentsAt(arguments, length, index); 2019 LInstruction* result = new LAccessArgumentsAt(arguments, length, index);
2020 return DefineAsRegister(AssignEnvironment(result)); 2020 return DefineAsRegister(AssignEnvironment(result));
2021 } 2021 }
2022 2022
2023 2023
2024 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2024 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2025 LInstruction* result = new LTypeof(Use(instr->value())); 2025 LInstruction* result = new LTypeof(UseRegisterAtStart(instr->value()));
2026 return MarkAsCall(DefineFixed(result, r0), instr); 2026 return MarkAsCall(DefineFixed(result, r0), instr);
2027 } 2027 }
2028 2028
2029 2029
2030 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 2030 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
2031 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); 2031 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
2032 } 2032 }
2033 2033
2034 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { 2034 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) {
2035 HEnvironment* env = current_block_->last_environment(); 2035 HEnvironment* env = current_block_->last_environment();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 void LPointerMap::PrintTo(StringStream* stream) const { 2100 void LPointerMap::PrintTo(StringStream* stream) const {
2101 stream->Add("{"); 2101 stream->Add("{");
2102 for (int i = 0; i < pointer_operands_.length(); ++i) { 2102 for (int i = 0; i < pointer_operands_.length(); ++i) {
2103 if (i != 0) stream->Add(";"); 2103 if (i != 0) stream->Add(";");
2104 pointer_operands_[i]->PrintTo(stream); 2104 pointer_operands_[i]->PrintTo(stream);
2105 } 2105 }
2106 stream->Add("} @%d", position()); 2106 stream->Add("} @%d", position());
2107 } 2107 }
2108 2108
2109 } } // namespace v8::internal 2109 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698