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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm/lithium-codegen-arm.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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 stream->Add(" #%d / ", arity()); 304 stream->Add(" #%d / ", arity());
305 } 305 }
306 306
307 307
308 void LCallKeyed::PrintDataTo(StringStream* stream) { 308 void LCallKeyed::PrintDataTo(StringStream* stream) {
309 stream->Add("[r2] #%d / ", arity()); 309 stream->Add("[r2] #%d / ", arity());
310 } 310 }
311 311
312 312
313 void LCallNamed::PrintDataTo(StringStream* stream) { 313 void LCallNamed::PrintDataTo(StringStream* stream) {
314 SmartPointer<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, arity());
316 } 316 }
317 317
318 318
319 void LCallGlobal::PrintDataTo(StringStream* stream) { 319 void LCallGlobal::PrintDataTo(StringStream* stream) {
320 SmartPointer<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, 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) {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 DoBasicBlock(blocks->at(i), next); 539 DoBasicBlock(blocks->at(i), next);
540 if (is_aborted()) return NULL; 540 if (is_aborted()) return NULL;
541 } 541 }
542 status_ = DONE; 542 status_ = DONE;
543 return chunk_; 543 return chunk_;
544 } 544 }
545 545
546 546
547 void LChunkBuilder::Abort(const char* format, ...) { 547 void LChunkBuilder::Abort(const char* format, ...) {
548 if (FLAG_trace_bailout) { 548 if (FLAG_trace_bailout) {
549 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); 549 SmartArrayPointer<char> name(
550 info()->shared_info()->DebugName()->ToCString());
550 PrintF("Aborting LChunk building in @\"%s\": ", *name); 551 PrintF("Aborting LChunk building in @\"%s\": ", *name);
551 va_list arguments; 552 va_list arguments;
552 va_start(arguments, format); 553 va_start(arguments, format);
553 OS::VPrint(format, arguments); 554 OS::VPrint(format, arguments);
554 va_end(arguments); 555 va_end(arguments);
555 PrintF("\n"); 556 PrintF("\n");
556 } 557 }
557 status_ = ABORTED; 558 status_ = ABORTED;
558 } 559 }
559 560
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2181 2182
2182 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2183 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2183 LOperand* key = UseRegisterAtStart(instr->key()); 2184 LOperand* key = UseRegisterAtStart(instr->key());
2184 LOperand* object = UseRegisterAtStart(instr->object()); 2185 LOperand* object = UseRegisterAtStart(instr->object());
2185 LIn* result = new LIn(key, object); 2186 LIn* result = new LIn(key, object);
2186 return MarkAsCall(DefineFixed(result, r0), instr); 2187 return MarkAsCall(DefineFixed(result, r0), instr);
2187 } 2188 }
2188 2189
2189 2190
2190 } } // namespace v8::internal 2191 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698