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

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

Issue 6069012: Add constraints verification to LAllocator::MarkAsCall(). (Closed) Base URL: https://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/lithium-allocator.cc » ('j') | src/lithium-allocator.cc » ('J')
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 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { 2029 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) {
2030 LOperand* arguments = UseRegister(instr->arguments()); 2030 LOperand* arguments = UseRegister(instr->arguments());
2031 LOperand* length = UseTempRegister(instr->length()); 2031 LOperand* length = UseTempRegister(instr->length());
2032 LOperand* index = Use(instr->index()); 2032 LOperand* index = Use(instr->index());
2033 LInstruction* result = new LAccessArgumentsAt(arguments, length, index); 2033 LInstruction* result = new LAccessArgumentsAt(arguments, length, index);
2034 return DefineAsRegister(AssignEnvironment(result)); 2034 return DefineAsRegister(AssignEnvironment(result));
2035 } 2035 }
2036 2036
2037 2037
2038 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2038 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2039 LInstruction* result = new LTypeof(Use(instr->value())); 2039 LInstruction* result = new LTypeof(UseAtStart(instr->value()));
2040 return MarkAsCall(DefineFixed(result, eax), instr); 2040 return MarkAsCall(DefineFixed(result, eax), instr);
2041 } 2041 }
2042 2042
2043 2043
2044 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { 2044 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) {
2045 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); 2045 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value())));
2046 } 2046 }
2047 2047
2048 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { 2048 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) {
2049 HEnvironment* env = current_block_->last_environment(); 2049 HEnvironment* env = current_block_->last_environment();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 void LPointerMap::PrintTo(StringStream* stream) const { 2113 void LPointerMap::PrintTo(StringStream* stream) const {
2114 stream->Add("{"); 2114 stream->Add("{");
2115 for (int i = 0; i < pointer_operands_.length(); ++i) { 2115 for (int i = 0; i < pointer_operands_.length(); ++i) {
2116 if (i != 0) stream->Add(";"); 2116 if (i != 0) stream->Add(";");
2117 pointer_operands_[i]->PrintTo(stream); 2117 pointer_operands_[i]->PrintTo(stream);
2118 } 2118 }
2119 stream->Add("} @%d", position()); 2119 stream->Add("} @%d", position());
2120 } 2120 }
2121 2121
2122 } } // namespace v8::internal 2122 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/lithium-allocator.cc » ('j') | src/lithium-allocator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698