| 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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 return DefineAsRegister(new(zone()) LContext); | 1048 return DefineAsRegister(new(zone()) LContext); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 | 1051 |
| 1052 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1052 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
| 1053 LOperand* context = UseFixed(instr->context(), rsi); | 1053 LOperand* context = UseFixed(instr->context(), rsi); |
| 1054 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); | 1054 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 | 1057 |
| 1058 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | |
| 1059 LOperand* context = UseRegisterAtStart(instr->value()); | |
| 1060 return DefineAsRegister(new(zone()) LGlobalObject(context)); | |
| 1061 } | |
| 1062 | |
| 1063 | |
| 1064 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { | |
| 1065 LOperand* global_object = UseRegisterAtStart(instr->value()); | |
| 1066 return DefineAsRegister(new(zone()) LGlobalReceiver(global_object)); | |
| 1067 } | |
| 1068 | |
| 1069 | |
| 1070 LInstruction* LChunkBuilder::DoCallJSFunction( | 1058 LInstruction* LChunkBuilder::DoCallJSFunction( |
| 1071 HCallJSFunction* instr) { | 1059 HCallJSFunction* instr) { |
| 1072 LOperand* function = UseFixed(instr->function(), rdi); | 1060 LOperand* function = UseFixed(instr->function(), rdi); |
| 1073 | 1061 |
| 1074 LCallJSFunction* result = new(zone()) LCallJSFunction(function); | 1062 LCallJSFunction* result = new(zone()) LCallJSFunction(function); |
| 1075 | 1063 |
| 1076 return MarkAsCall(DefineFixed(result, rax), instr); | 1064 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1077 } | 1065 } |
| 1078 | 1066 |
| 1079 | 1067 |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2464 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2452 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2465 LOperand* object = UseRegister(instr->object()); | 2453 LOperand* object = UseRegister(instr->object()); |
| 2466 LOperand* index = UseTempRegister(instr->index()); | 2454 LOperand* index = UseTempRegister(instr->index()); |
| 2467 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2455 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2468 } | 2456 } |
| 2469 | 2457 |
| 2470 | 2458 |
| 2471 } } // namespace v8::internal | 2459 } } // namespace v8::internal |
| 2472 | 2460 |
| 2473 #endif // V8_TARGET_ARCH_X64 | 2461 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |