| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2023 | 2023 |
| 2024 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 2024 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
| 2025 LOperand* arguments = UseRegister(instr->arguments()); | 2025 LOperand* arguments = UseRegister(instr->arguments()); |
| 2026 LOperand* length = UseTempRegister(instr->length()); | 2026 LOperand* length = UseTempRegister(instr->length()); |
| 2027 LOperand* index = Use(instr->index()); | 2027 LOperand* index = Use(instr->index()); |
| 2028 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); | 2028 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); |
| 2029 return AssignEnvironment(DefineAsRegister(result)); | 2029 return AssignEnvironment(DefineAsRegister(result)); |
| 2030 } | 2030 } |
| 2031 | 2031 |
| 2032 | 2032 |
| 2033 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
| 2034 LOperand* object = UseFixed(instr->value(), eax); |
| 2035 LToFastProperties* result = new LToFastProperties(object); |
| 2036 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2037 } |
| 2038 |
| 2039 |
| 2033 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2040 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
| 2034 LTypeof* result = new LTypeof(UseAtStart(instr->value())); | 2041 LTypeof* result = new LTypeof(UseAtStart(instr->value())); |
| 2035 return MarkAsCall(DefineFixed(result, eax), instr); | 2042 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2036 } | 2043 } |
| 2037 | 2044 |
| 2038 | 2045 |
| 2039 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { | 2046 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { |
| 2040 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); | 2047 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); |
| 2041 } | 2048 } |
| 2042 | 2049 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2107 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2101 HEnvironment* outer = current_block_->last_environment()->outer(); | 2108 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2102 current_block_->UpdateEnvironment(outer); | 2109 current_block_->UpdateEnvironment(outer); |
| 2103 return NULL; | 2110 return NULL; |
| 2104 } | 2111 } |
| 2105 | 2112 |
| 2106 | 2113 |
| 2107 } } // namespace v8::internal | 2114 } } // namespace v8::internal |
| 2108 | 2115 |
| 2109 #endif // V8_TARGET_ARCH_IA32 | 2116 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |