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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 stream->Add("[rcx] #%d / ", arity()); | 309 stream->Add("[rcx] #%d / ", arity()); |
310 } | 310 } |
311 | 311 |
312 | 312 |
313 void LCallNamed::PrintDataTo(StringStream* stream) { | 313 void LCallNamed::PrintDataTo(StringStream* stream) { |
314 SmartArrayPointer<char> name_string = name()->ToCString(); | 314 SmartArrayPointer<char> name_string = name()->ToCString(); |
315 stream->Add("%s #%d / ", name_string.get(), arity()); | 315 stream->Add("%s #%d / ", name_string.get(), arity()); |
316 } | 316 } |
317 | 317 |
318 | 318 |
319 void LCallGlobal::PrintDataTo(StringStream* stream) { | |
320 SmartArrayPointer<char> name_string = name()->ToCString(); | |
321 stream->Add("%s #%d / ", name_string.get(), arity()); | |
322 } | |
323 | |
324 | |
325 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { | 319 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { |
326 stream->Add("#%d / ", arity()); | 320 stream->Add("#%d / ", arity()); |
327 } | 321 } |
328 | 322 |
329 | 323 |
330 void LCallNew::PrintDataTo(StringStream* stream) { | 324 void LCallNew::PrintDataTo(StringStream* stream) { |
331 stream->Add("= "); | 325 stream->Add("= "); |
332 constructor()->PrintTo(stream); | 326 constructor()->PrintTo(stream); |
333 stream->Add(" #%d / ", arity()); | 327 stream->Add(" #%d / ", arity()); |
334 } | 328 } |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 } | 1178 } |
1185 | 1179 |
1186 | 1180 |
1187 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) { | 1181 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) { |
1188 LOperand* context = UseFixed(instr->context(), rsi); | 1182 LOperand* context = UseFixed(instr->context(), rsi); |
1189 LCallNamed* result = new(zone()) LCallNamed(context); | 1183 LCallNamed* result = new(zone()) LCallNamed(context); |
1190 return MarkAsCall(DefineFixed(result, rax), instr); | 1184 return MarkAsCall(DefineFixed(result, rax), instr); |
1191 } | 1185 } |
1192 | 1186 |
1193 | 1187 |
1194 LInstruction* LChunkBuilder::DoCallGlobal(HCallGlobal* instr) { | |
1195 LOperand* context = UseFixed(instr->context(), rsi); | |
1196 LCallGlobal* result = new(zone()) LCallGlobal(context); | |
1197 return MarkAsCall(DefineFixed(result, rax), instr); | |
1198 } | |
1199 | |
1200 | |
1201 LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) { | 1188 LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) { |
1202 return MarkAsCall(DefineFixed(new(zone()) LCallKnownGlobal, rax), instr); | 1189 return MarkAsCall(DefineFixed(new(zone()) LCallKnownGlobal, rax), instr); |
1203 } | 1190 } |
1204 | 1191 |
1205 | 1192 |
1206 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { | 1193 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { |
1207 LOperand* context = UseFixed(instr->context(), rsi); | 1194 LOperand* context = UseFixed(instr->context(), rsi); |
1208 LOperand* constructor = UseFixed(instr->constructor(), rdi); | 1195 LOperand* constructor = UseFixed(instr->constructor(), rdi); |
1209 LCallNew* result = new(zone()) LCallNew(context, constructor); | 1196 LCallNew* result = new(zone()) LCallNew(context, constructor); |
1210 return MarkAsCall(DefineFixed(result, rax), instr); | 1197 return MarkAsCall(DefineFixed(result, rax), instr); |
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2511 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2525 LOperand* object = UseRegister(instr->object()); | 2512 LOperand* object = UseRegister(instr->object()); |
2526 LOperand* index = UseTempRegister(instr->index()); | 2513 LOperand* index = UseTempRegister(instr->index()); |
2527 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2514 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2528 } | 2515 } |
2529 | 2516 |
2530 | 2517 |
2531 } } // namespace v8::internal | 2518 } } // namespace v8::internal |
2532 | 2519 |
2533 #endif // V8_TARGET_ARCH_X64 | 2520 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |