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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 return DefineAsRegister(new LOuterContext(context)); | 1192 return DefineAsRegister(new LOuterContext(context)); |
1193 } | 1193 } |
1194 | 1194 |
1195 | 1195 |
1196 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | 1196 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { |
1197 return DefineAsRegister(new LGlobalObject); | 1197 return DefineAsRegister(new LGlobalObject); |
1198 } | 1198 } |
1199 | 1199 |
1200 | 1200 |
1201 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { | 1201 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { |
1202 return DefineAsRegister(new LGlobalReceiver); | 1202 LOperand* global_object = UseRegisterAtStart(instr->value()); |
| 1203 return DefineAsRegister(new LGlobalReceiver(global_object)); |
1203 } | 1204 } |
1204 | 1205 |
1205 | 1206 |
1206 LInstruction* LChunkBuilder::DoCallConstantFunction( | 1207 LInstruction* LChunkBuilder::DoCallConstantFunction( |
1207 HCallConstantFunction* instr) { | 1208 HCallConstantFunction* instr) { |
1208 argument_count_ -= instr->argument_count(); | 1209 argument_count_ -= instr->argument_count(); |
1209 return MarkAsCall(DefineFixed(new LCallConstantFunction, rax), instr); | 1210 return MarkAsCall(DefineFixed(new LCallConstantFunction, rax), instr); |
1210 } | 1211 } |
1211 | 1212 |
1212 | 1213 |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 | 2064 |
2064 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2065 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2065 HEnvironment* outer = current_block_->last_environment()->outer(); | 2066 HEnvironment* outer = current_block_->last_environment()->outer(); |
2066 current_block_->UpdateEnvironment(outer); | 2067 current_block_->UpdateEnvironment(outer); |
2067 return NULL; | 2068 return NULL; |
2068 } | 2069 } |
2069 | 2070 |
2070 } } // namespace v8::internal | 2071 } } // namespace v8::internal |
2071 | 2072 |
2072 #endif // V8_TARGET_ARCH_X64 | 2073 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |