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

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

Issue 7860011: Rename SmartPointer to SmartArrayPointer. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: rebase it again to get more fixes Created 9 years, 3 months 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
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/liveobjectlist.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 stream->Add(" #%d / ", arity()); 308 stream->Add(" #%d / ", arity());
309 } 309 }
310 310
311 311
312 void LCallKeyed::PrintDataTo(StringStream* stream) { 312 void LCallKeyed::PrintDataTo(StringStream* stream) {
313 stream->Add("[ecx] #%d / ", arity()); 313 stream->Add("[ecx] #%d / ", arity());
314 } 314 }
315 315
316 316
317 void LCallNamed::PrintDataTo(StringStream* stream) { 317 void LCallNamed::PrintDataTo(StringStream* stream) {
318 SmartPointer<char> name_string = name()->ToCString(); 318 SmartArrayPointer<char> name_string = name()->ToCString();
319 stream->Add("%s #%d / ", *name_string, arity()); 319 stream->Add("%s #%d / ", *name_string, arity());
320 } 320 }
321 321
322 322
323 void LCallGlobal::PrintDataTo(StringStream* stream) { 323 void LCallGlobal::PrintDataTo(StringStream* stream) {
324 SmartPointer<char> name_string = name()->ToCString(); 324 SmartArrayPointer<char> name_string = name()->ToCString();
325 stream->Add("%s #%d / ", *name_string, arity()); 325 stream->Add("%s #%d / ", *name_string, arity());
326 } 326 }
327 327
328 328
329 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { 329 void LCallKnownGlobal::PrintDataTo(StringStream* stream) {
330 stream->Add("#%d / ", arity()); 330 stream->Add("#%d / ", arity());
331 } 331 }
332 332
333 333
334 void LCallNew::PrintDataTo(StringStream* stream) { 334 void LCallNew::PrintDataTo(StringStream* stream) {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 DoBasicBlock(blocks->at(i), next); 533 DoBasicBlock(blocks->at(i), next);
534 if (is_aborted()) return NULL; 534 if (is_aborted()) return NULL;
535 } 535 }
536 status_ = DONE; 536 status_ = DONE;
537 return chunk_; 537 return chunk_;
538 } 538 }
539 539
540 540
541 void LChunkBuilder::Abort(const char* format, ...) { 541 void LChunkBuilder::Abort(const char* format, ...) {
542 if (FLAG_trace_bailout) { 542 if (FLAG_trace_bailout) {
543 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); 543 SmartArrayPointer<char> name(
544 info()->shared_info()->DebugName()->ToCString());
544 PrintF("Aborting LChunk building in @\"%s\": ", *name); 545 PrintF("Aborting LChunk building in @\"%s\": ", *name);
545 va_list arguments; 546 va_list arguments;
546 va_start(arguments, format); 547 va_start(arguments, format);
547 OS::VPrint(format, arguments); 548 OS::VPrint(format, arguments);
548 va_end(arguments); 549 va_end(arguments);
549 PrintF("\n"); 550 PrintF("\n");
550 } 551 }
551 status_ = ABORTED; 552 status_ = ABORTED;
552 } 553 }
553 554
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 LOperand* key = UseOrConstantAtStart(instr->key()); 2258 LOperand* key = UseOrConstantAtStart(instr->key());
2258 LOperand* object = UseOrConstantAtStart(instr->object()); 2259 LOperand* object = UseOrConstantAtStart(instr->object());
2259 LIn* result = new LIn(context, key, object); 2260 LIn* result = new LIn(context, key, object);
2260 return MarkAsCall(DefineFixed(result, eax), instr); 2261 return MarkAsCall(DefineFixed(result, eax), instr);
2261 } 2262 }
2262 2263
2263 2264
2264 } } // namespace v8::internal 2265 } } // namespace v8::internal
2265 2266
2266 #endif // V8_TARGET_ARCH_IA32 2267 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/liveobjectlist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698