OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1834 MemOperand operand = BuildSeqStringOperand(string, instr->index(), encoding); | 1834 MemOperand operand = BuildSeqStringOperand(string, instr->index(), encoding); |
1835 if (encoding == String::ONE_BYTE_ENCODING) { | 1835 if (encoding == String::ONE_BYTE_ENCODING) { |
1836 __ sb(value, operand); | 1836 __ sb(value, operand); |
1837 } else { | 1837 } else { |
1838 __ sh(value, operand); | 1838 __ sh(value, operand); |
1839 } | 1839 } |
1840 } | 1840 } |
1841 | 1841 |
1842 | 1842 |
1843 void LCodeGen::DoThrow(LThrow* instr) { | 1843 void LCodeGen::DoThrow(LThrow* instr) { |
1844 Register input_reg = EmitLoadRegister(instr->value(), at); | 1844 __ push(ToRegister(instr->value())); |
1845 __ push(input_reg); | |
1846 ASSERT(ToRegister(instr->context()).is(cp)); | 1845 ASSERT(ToRegister(instr->context()).is(cp)); |
1847 CallRuntime(Runtime::kThrow, 1, instr); | 1846 CallRuntime(Runtime::kThrow, 1, instr); |
1848 | 1847 |
1849 if (FLAG_debug_code) { | 1848 if (FLAG_debug_code) { |
1850 __ stop("Unreachable code."); | 1849 __ stop("Unreachable code."); |
1851 } | 1850 } |
1852 } | 1851 } |
1853 | 1852 |
1854 | 1853 |
1855 void LCodeGen::DoAddI(LAddI* instr) { | 1854 void LCodeGen::DoAddI(LAddI* instr) { |
(...skipping 4013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5869 __ Subu(scratch, result, scratch); | 5868 __ Subu(scratch, result, scratch); |
5870 __ lw(result, FieldMemOperand(scratch, | 5869 __ lw(result, FieldMemOperand(scratch, |
5871 FixedArray::kHeaderSize - kPointerSize)); | 5870 FixedArray::kHeaderSize - kPointerSize)); |
5872 __ bind(&done); | 5871 __ bind(&done); |
5873 } | 5872 } |
5874 | 5873 |
5875 | 5874 |
5876 #undef __ | 5875 #undef __ |
5877 | 5876 |
5878 } } // namespace v8::internal | 5877 } } // namespace v8::internal |
OLD | NEW |