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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-debug.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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 stream->Add(" #%d / ", arity()); 306 stream->Add(" #%d / ", arity());
307 } 307 }
308 308
309 309
310 void LCallKeyed::PrintDataTo(StringStream* stream) { 310 void LCallKeyed::PrintDataTo(StringStream* stream) {
311 stream->Add("[rcx] #%d / ", arity()); 311 stream->Add("[rcx] #%d / ", arity());
312 } 312 }
313 313
314 314
315 void LCallNamed::PrintDataTo(StringStream* stream) { 315 void LCallNamed::PrintDataTo(StringStream* stream) {
316 SmartPointer<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, arity());
318 } 318 }
319 319
320 320
321 void LCallGlobal::PrintDataTo(StringStream* stream) { 321 void LCallGlobal::PrintDataTo(StringStream* stream) {
322 SmartPointer<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, 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) {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 DoBasicBlock(blocks->at(i), next); 532 DoBasicBlock(blocks->at(i), next);
533 if (is_aborted()) return NULL; 533 if (is_aborted()) return NULL;
534 } 534 }
535 status_ = DONE; 535 status_ = DONE;
536 return chunk_; 536 return chunk_;
537 } 537 }
538 538
539 539
540 void LChunkBuilder::Abort(const char* format, ...) { 540 void LChunkBuilder::Abort(const char* format, ...) {
541 if (FLAG_trace_bailout) { 541 if (FLAG_trace_bailout) {
542 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); 542 SmartArrayPointer<char> name(
543 info()->shared_info()->DebugName()->ToCString());
543 PrintF("Aborting LChunk building in @\"%s\": ", *name); 544 PrintF("Aborting LChunk building in @\"%s\": ", *name);
544 va_list arguments; 545 va_list arguments;
545 va_start(arguments, format); 546 va_start(arguments, format);
546 OS::VPrint(format, arguments); 547 OS::VPrint(format, arguments);
547 va_end(arguments); 548 va_end(arguments);
548 PrintF("\n"); 549 PrintF("\n");
549 } 550 }
550 status_ = ABORTED; 551 status_ = ABORTED;
551 } 552 }
552 553
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 LOperand* key = UseOrConstantAtStart(instr->key()); 2169 LOperand* key = UseOrConstantAtStart(instr->key());
2169 LOperand* object = UseOrConstantAtStart(instr->object()); 2170 LOperand* object = UseOrConstantAtStart(instr->object());
2170 LIn* result = new LIn(key, object); 2171 LIn* result = new LIn(key, object);
2171 return MarkAsCall(DefineFixed(result, rax), instr); 2172 return MarkAsCall(DefineFixed(result, rax), instr);
2172 } 2173 }
2173 2174
2174 2175
2175 } } // namespace v8::internal 2176 } } // namespace v8::internal
2176 2177
2177 #endif // V8_TARGET_ARCH_X64 2178 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698