| 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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1918 | 1918 |
| 1919 ASSERT(instr->object()->representation().IsTagged()); | 1919 ASSERT(instr->object()->representation().IsTagged()); |
| 1920 ASSERT(instr->key()->representation().IsTagged()); | 1920 ASSERT(instr->key()->representation().IsTagged()); |
| 1921 ASSERT(instr->value()->representation().IsTagged()); | 1921 ASSERT(instr->value()->representation().IsTagged()); |
| 1922 | 1922 |
| 1923 return MarkAsCall(new LStoreKeyedGeneric(obj, key, val), instr); | 1923 return MarkAsCall(new LStoreKeyedGeneric(obj, key, val), instr); |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 | 1926 |
| 1927 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { | 1927 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
| 1928 bool needs_write_barrier = !instr->value()->type().IsSmi(); | 1928 bool needs_write_barrier = instr->NeedsWriteBarrier(); |
| 1929 | 1929 |
| 1930 LOperand* obj = needs_write_barrier | 1930 LOperand* obj = needs_write_barrier |
| 1931 ? UseTempRegister(instr->object()) | 1931 ? UseTempRegister(instr->object()) |
| 1932 : UseRegisterAtStart(instr->object()); | 1932 : UseRegisterAtStart(instr->object()); |
| 1933 | 1933 |
| 1934 LOperand* val = needs_write_barrier | 1934 LOperand* val = needs_write_barrier |
| 1935 ? UseTempRegister(instr->value()) | 1935 ? UseTempRegister(instr->value()) |
| 1936 : UseRegister(instr->value()); | 1936 : UseRegister(instr->value()); |
| 1937 | 1937 |
| 1938 // We only need a scratch register if we have a write barrier or we | 1938 // We only need a scratch register if we have a write barrier or we |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2107 void LPointerMap::PrintTo(StringStream* stream) const { | 2107 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2108 stream->Add("{"); | 2108 stream->Add("{"); |
| 2109 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2109 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2110 if (i != 0) stream->Add(";"); | 2110 if (i != 0) stream->Add(";"); |
| 2111 pointer_operands_[i]->PrintTo(stream); | 2111 pointer_operands_[i]->PrintTo(stream); |
| 2112 } | 2112 } |
| 2113 stream->Add("} @%d", position()); | 2113 stream->Add("} @%d", position()); |
| 2114 } | 2114 } |
| 2115 | 2115 |
| 2116 } } // namespace v8::internal | 2116 } } // namespace v8::internal |
| OLD | NEW |