Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 101763003: Replace 'operator*' with explicit 'get' method on SmartPointer (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reupload to make rietveld happy Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 *hydrogen()->class_name(), 279 *hydrogen()->class_name(),
280 true_block_id(), 280 true_block_id(),
281 false_block_id()); 281 false_block_id());
282 } 282 }
283 283
284 284
285 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { 285 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) {
286 stream->Add("if typeof "); 286 stream->Add("if typeof ");
287 value()->PrintTo(stream); 287 value()->PrintTo(stream);
288 stream->Add(" == \"%s\" then B%d else B%d", 288 stream->Add(" == \"%s\" then B%d else B%d",
289 *hydrogen()->type_literal()->ToCString(), 289 hydrogen()->type_literal()->ToCString().get(),
290 true_block_id(), false_block_id()); 290 true_block_id(), false_block_id());
291 } 291 }
292 292
293 293
294 void LStoreCodeEntry::PrintDataTo(StringStream* stream) { 294 void LStoreCodeEntry::PrintDataTo(StringStream* stream) {
295 stream->Add(" = "); 295 stream->Add(" = ");
296 function()->PrintTo(stream); 296 function()->PrintTo(stream);
297 stream->Add(".code_entry = "); 297 stream->Add(".code_entry = ");
298 code_object()->PrintTo(stream); 298 code_object()->PrintTo(stream);
299 } 299 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 } 334 }
335 335
336 336
337 void LCallKeyed::PrintDataTo(StringStream* stream) { 337 void LCallKeyed::PrintDataTo(StringStream* stream) {
338 stream->Add("[ecx] #%d / ", arity()); 338 stream->Add("[ecx] #%d / ", arity());
339 } 339 }
340 340
341 341
342 void LCallNamed::PrintDataTo(StringStream* stream) { 342 void LCallNamed::PrintDataTo(StringStream* stream) {
343 SmartArrayPointer<char> name_string = name()->ToCString(); 343 SmartArrayPointer<char> name_string = name()->ToCString();
344 stream->Add("%s #%d / ", *name_string, arity()); 344 stream->Add("%s #%d / ", name_string.get(), arity());
345 } 345 }
346 346
347 347
348 void LCallGlobal::PrintDataTo(StringStream* stream) { 348 void LCallGlobal::PrintDataTo(StringStream* stream) {
349 SmartArrayPointer<char> name_string = name()->ToCString(); 349 SmartArrayPointer<char> name_string = name()->ToCString();
350 stream->Add("%s #%d / ", *name_string, arity()); 350 stream->Add("%s #%d / ", name_string.get(), arity());
351 } 351 }
352 352
353 353
354 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { 354 void LCallKnownGlobal::PrintDataTo(StringStream* stream) {
355 stream->Add("#%d / ", arity()); 355 stream->Add("#%d / ", arity());
356 } 356 }
357 357
358 358
359 void LCallNew::PrintDataTo(StringStream* stream) { 359 void LCallNew::PrintDataTo(StringStream* stream) {
360 stream->Add("= "); 360 stream->Add("= ");
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 object()->PrintTo(stream); 413 object()->PrintTo(stream);
414 hydrogen()->access().PrintTo(stream); 414 hydrogen()->access().PrintTo(stream);
415 stream->Add(" <- "); 415 stream->Add(" <- ");
416 value()->PrintTo(stream); 416 value()->PrintTo(stream);
417 } 417 }
418 418
419 419
420 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 420 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
421 object()->PrintTo(stream); 421 object()->PrintTo(stream);
422 stream->Add("."); 422 stream->Add(".");
423 stream->Add(*String::cast(*name())->ToCString()); 423 stream->Add(String::cast(*name())->ToCString().get());
424 stream->Add(" <- "); 424 stream->Add(" <- ");
425 value()->PrintTo(stream); 425 value()->PrintTo(stream);
426 } 426 }
427 427
428 428
429 void LLoadKeyed::PrintDataTo(StringStream* stream) { 429 void LLoadKeyed::PrintDataTo(StringStream* stream) {
430 elements()->PrintTo(stream); 430 elements()->PrintTo(stream);
431 stream->Add("["); 431 stream->Add("[");
432 key()->PrintTo(stream); 432 key()->PrintTo(stream);
433 if (hydrogen()->IsDehoisted()) { 433 if (hydrogen()->IsDehoisted()) {
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2789 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2790 LOperand* object = UseRegister(instr->object()); 2790 LOperand* object = UseRegister(instr->object());
2791 LOperand* index = UseTempRegister(instr->index()); 2791 LOperand* index = UseTempRegister(instr->index());
2792 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2792 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2793 } 2793 }
2794 2794
2795 2795
2796 } } // namespace v8::internal 2796 } } // namespace v8::internal
2797 2797
2798 #endif // V8_TARGET_ARCH_IA32 2798 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698