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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 *hydrogen()->class_name(), | 254 *hydrogen()->class_name(), |
255 true_block_id(), | 255 true_block_id(), |
256 false_block_id()); | 256 false_block_id()); |
257 } | 257 } |
258 | 258 |
259 | 259 |
260 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { | 260 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { |
261 stream->Add("if typeof "); | 261 stream->Add("if typeof "); |
262 value()->PrintTo(stream); | 262 value()->PrintTo(stream); |
263 stream->Add(" == \"%s\" then B%d else B%d", | 263 stream->Add(" == \"%s\" then B%d else B%d", |
264 *hydrogen()->type_literal()->ToCString(), | 264 hydrogen()->type_literal()->ToCString().get(), |
265 true_block_id(), false_block_id()); | 265 true_block_id(), false_block_id()); |
266 } | 266 } |
267 | 267 |
268 | 268 |
269 void LStoreCodeEntry::PrintDataTo(StringStream* stream) { | 269 void LStoreCodeEntry::PrintDataTo(StringStream* stream) { |
270 stream->Add(" = "); | 270 stream->Add(" = "); |
271 function()->PrintTo(stream); | 271 function()->PrintTo(stream); |
272 stream->Add(".code_entry = "); | 272 stream->Add(".code_entry = "); |
273 code_object()->PrintTo(stream); | 273 code_object()->PrintTo(stream); |
274 } | 274 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 } | 307 } |
308 | 308 |
309 | 309 |
310 void LCallKeyed::PrintDataTo(StringStream* stream) { | 310 void LCallKeyed::PrintDataTo(StringStream* stream) { |
311 stream->Add("[a2] #%d / ", arity()); | 311 stream->Add("[a2] #%d / ", arity()); |
312 } | 312 } |
313 | 313 |
314 | 314 |
315 void LCallNamed::PrintDataTo(StringStream* stream) { | 315 void LCallNamed::PrintDataTo(StringStream* stream) { |
316 SmartArrayPointer<char> name_string = name()->ToCString(); | 316 SmartArrayPointer<char> name_string = name()->ToCString(); |
317 stream->Add("%s #%d / ", *name_string, arity()); | 317 stream->Add("%s #%d / ", name_string.get(), arity()); |
318 } | 318 } |
319 | 319 |
320 | 320 |
321 void LCallGlobal::PrintDataTo(StringStream* stream) { | 321 void LCallGlobal::PrintDataTo(StringStream* stream) { |
322 SmartArrayPointer<char> name_string = name()->ToCString(); | 322 SmartArrayPointer<char> name_string = name()->ToCString(); |
323 stream->Add("%s #%d / ", *name_string, arity()); | 323 stream->Add("%s #%d / ", name_string.get(), arity()); |
324 } | 324 } |
325 | 325 |
326 | 326 |
327 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { | 327 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { |
328 stream->Add("#%d / ", arity()); | 328 stream->Add("#%d / ", arity()); |
329 } | 329 } |
330 | 330 |
331 | 331 |
332 void LCallNew::PrintDataTo(StringStream* stream) { | 332 void LCallNew::PrintDataTo(StringStream* stream) { |
333 stream->Add("= "); | 333 stream->Add("= "); |
(...skipping 24 matching lines...) Expand all Loading... |
358 object()->PrintTo(stream); | 358 object()->PrintTo(stream); |
359 hydrogen()->access().PrintTo(stream); | 359 hydrogen()->access().PrintTo(stream); |
360 stream->Add(" <- "); | 360 stream->Add(" <- "); |
361 value()->PrintTo(stream); | 361 value()->PrintTo(stream); |
362 } | 362 } |
363 | 363 |
364 | 364 |
365 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 365 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
366 object()->PrintTo(stream); | 366 object()->PrintTo(stream); |
367 stream->Add("."); | 367 stream->Add("."); |
368 stream->Add(*String::cast(*name())->ToCString()); | 368 stream->Add(String::cast(*name())->ToCString().get()); |
369 stream->Add(" <- "); | 369 stream->Add(" <- "); |
370 value()->PrintTo(stream); | 370 value()->PrintTo(stream); |
371 } | 371 } |
372 | 372 |
373 | 373 |
374 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 374 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
375 elements()->PrintTo(stream); | 375 elements()->PrintTo(stream); |
376 stream->Add("["); | 376 stream->Add("["); |
377 key()->PrintTo(stream); | 377 key()->PrintTo(stream); |
378 if (hydrogen()->IsDehoisted()) { | 378 if (hydrogen()->IsDehoisted()) { |
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2598 | 2598 |
2599 | 2599 |
2600 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2600 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2601 LOperand* object = UseRegister(instr->object()); | 2601 LOperand* object = UseRegister(instr->object()); |
2602 LOperand* index = UseRegister(instr->index()); | 2602 LOperand* index = UseRegister(instr->index()); |
2603 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2603 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2604 } | 2604 } |
2605 | 2605 |
2606 | 2606 |
2607 } } // namespace v8::internal | 2607 } } // namespace v8::internal |
OLD | NEW |