| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 *hydrogen()->class_name(), | 252 *hydrogen()->class_name(), |
| 253 true_block_id(), | 253 true_block_id(), |
| 254 false_block_id()); | 254 false_block_id()); |
| 255 } | 255 } |
| 256 | 256 |
| 257 | 257 |
| 258 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { | 258 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { |
| 259 stream->Add("if typeof "); | 259 stream->Add("if typeof "); |
| 260 value()->PrintTo(stream); | 260 value()->PrintTo(stream); |
| 261 stream->Add(" == \"%s\" then B%d else B%d", | 261 stream->Add(" == \"%s\" then B%d else B%d", |
| 262 *hydrogen()->type_literal()->ToCString(), | 262 hydrogen()->type_literal()->ToCString().get(), |
| 263 true_block_id(), false_block_id()); | 263 true_block_id(), false_block_id()); |
| 264 } | 264 } |
| 265 | 265 |
| 266 | 266 |
| 267 void LStoreCodeEntry::PrintDataTo(StringStream* stream) { | 267 void LStoreCodeEntry::PrintDataTo(StringStream* stream) { |
| 268 stream->Add(" = "); | 268 stream->Add(" = "); |
| 269 function()->PrintTo(stream); | 269 function()->PrintTo(stream); |
| 270 stream->Add(".code_entry = "); | 270 stream->Add(".code_entry = "); |
| 271 code_object()->PrintTo(stream); | 271 code_object()->PrintTo(stream); |
| 272 } | 272 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 } | 305 } |
| 306 | 306 |
| 307 | 307 |
| 308 void LCallKeyed::PrintDataTo(StringStream* stream) { | 308 void LCallKeyed::PrintDataTo(StringStream* stream) { |
| 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, arity()); | 315 stream->Add("%s #%d / ", name_string.get(), arity()); |
| 316 } | 316 } |
| 317 | 317 |
| 318 | 318 |
| 319 void LCallGlobal::PrintDataTo(StringStream* stream) { | 319 void LCallGlobal::PrintDataTo(StringStream* stream) { |
| 320 SmartArrayPointer<char> name_string = name()->ToCString(); | 320 SmartArrayPointer<char> name_string = name()->ToCString(); |
| 321 stream->Add("%s #%d / ", *name_string, arity()); | 321 stream->Add("%s #%d / ", name_string.get(), arity()); |
| 322 } | 322 } |
| 323 | 323 |
| 324 | 324 |
| 325 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { | 325 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { |
| 326 stream->Add("#%d / ", arity()); | 326 stream->Add("#%d / ", arity()); |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 void LCallNew::PrintDataTo(StringStream* stream) { | 330 void LCallNew::PrintDataTo(StringStream* stream) { |
| 331 stream->Add("= "); | 331 stream->Add("= "); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 object()->PrintTo(stream); | 377 object()->PrintTo(stream); |
| 378 hydrogen()->access().PrintTo(stream); | 378 hydrogen()->access().PrintTo(stream); |
| 379 stream->Add(" <- "); | 379 stream->Add(" <- "); |
| 380 value()->PrintTo(stream); | 380 value()->PrintTo(stream); |
| 381 } | 381 } |
| 382 | 382 |
| 383 | 383 |
| 384 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 384 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 385 object()->PrintTo(stream); | 385 object()->PrintTo(stream); |
| 386 stream->Add("."); | 386 stream->Add("."); |
| 387 stream->Add(*String::cast(*name())->ToCString()); | 387 stream->Add(String::cast(*name())->ToCString().get()); |
| 388 stream->Add(" <- "); | 388 stream->Add(" <- "); |
| 389 value()->PrintTo(stream); | 389 value()->PrintTo(stream); |
| 390 } | 390 } |
| 391 | 391 |
| 392 | 392 |
| 393 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 393 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
| 394 elements()->PrintTo(stream); | 394 elements()->PrintTo(stream); |
| 395 stream->Add("["); | 395 stream->Add("["); |
| 396 key()->PrintTo(stream); | 396 key()->PrintTo(stream); |
| 397 if (hydrogen()->IsDehoisted()) { | 397 if (hydrogen()->IsDehoisted()) { |
| (...skipping 2226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2624 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2624 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2625 LOperand* object = UseRegister(instr->object()); | 2625 LOperand* object = UseRegister(instr->object()); |
| 2626 LOperand* index = UseTempRegister(instr->index()); | 2626 LOperand* index = UseTempRegister(instr->index()); |
| 2627 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2627 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2628 } | 2628 } |
| 2629 | 2629 |
| 2630 | 2630 |
| 2631 } } // namespace v8::internal | 2631 } } // namespace v8::internal |
| 2632 | 2632 |
| 2633 #endif // V8_TARGET_ARCH_X64 | 2633 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |