| 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 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 | 1933 |
| 1934 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 1934 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 1935 LOperand* object = UseFixed(instr->object(), rdx); | 1935 LOperand* object = UseFixed(instr->object(), rdx); |
| 1936 LOperand* value = UseFixed(instr->value(), rax); | 1936 LOperand* value = UseFixed(instr->value(), rax); |
| 1937 | 1937 |
| 1938 LStoreNamedGeneric* result = new LStoreNamedGeneric(object, value); | 1938 LStoreNamedGeneric* result = new LStoreNamedGeneric(object, value); |
| 1939 return MarkAsCall(result, instr); | 1939 return MarkAsCall(result, instr); |
| 1940 } | 1940 } |
| 1941 | 1941 |
| 1942 | 1942 |
| 1943 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 1944 LOperand* left = UseOrConstantAtStart(instr->left()); |
| 1945 LOperand* right = UseOrConstantAtStart(instr->right()); |
| 1946 return MarkAsCall(DefineFixed(new LStringAdd(left, right), rax), instr); |
| 1947 } |
| 1948 |
| 1949 |
| 1943 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 1950 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 1944 LOperand* string = UseRegister(instr->string()); | 1951 LOperand* string = UseRegister(instr->string()); |
| 1945 LOperand* index = UseRegisterOrConstant(instr->index()); | 1952 LOperand* index = UseRegisterOrConstant(instr->index()); |
| 1946 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); | 1953 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); |
| 1947 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 1954 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| 1948 } | 1955 } |
| 1949 | 1956 |
| 1950 | 1957 |
| 1951 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { | 1958 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { |
| 1952 LOperand* char_code = UseRegister(instr->value()); | 1959 LOperand* char_code = UseRegister(instr->value()); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 | 2113 |
| 2107 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2114 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2108 HEnvironment* outer = current_block_->last_environment()->outer(); | 2115 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2109 current_block_->UpdateEnvironment(outer); | 2116 current_block_->UpdateEnvironment(outer); |
| 2110 return NULL; | 2117 return NULL; |
| 2111 } | 2118 } |
| 2112 | 2119 |
| 2113 } } // namespace v8::internal | 2120 } } // namespace v8::internal |
| 2114 | 2121 |
| 2115 #endif // V8_TARGET_ARCH_X64 | 2122 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |