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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 6893105: Fixed build on Mac, where g++ is a bit too dumb to see that a variable is always initialized. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 526 }
527 527
528 528
529 const char* TypeRecordingUnaryOpStub::GetName() { 529 const char* TypeRecordingUnaryOpStub::GetName() {
530 if (name_ != NULL) return name_; 530 if (name_ != NULL) return name_;
531 const int kMaxNameLength = 100; 531 const int kMaxNameLength = 100;
532 name_ = Isolate::Current()->bootstrapper()->AllocateAutoDeletedArray( 532 name_ = Isolate::Current()->bootstrapper()->AllocateAutoDeletedArray(
533 kMaxNameLength); 533 kMaxNameLength);
534 if (name_ == NULL) return "OOM"; 534 if (name_ == NULL) return "OOM";
535 const char* op_name = Token::Name(op_); 535 const char* op_name = Token::Name(op_);
536 const char* overwrite_name; 536 const char* overwrite_name = NULL; // Make g++ on Mac happy.
537 switch (mode_) { 537 switch (mode_) {
538 case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; 538 case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break;
539 case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; 539 case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break;
540 } 540 }
541 541
542 OS::SNPrintF(Vector<char>(name_, kMaxNameLength), 542 OS::SNPrintF(Vector<char>(name_, kMaxNameLength),
543 "TypeRecordingUnaryOpStub_%s_%s_%s", 543 "TypeRecordingUnaryOpStub_%s_%s_%s",
544 op_name, 544 op_name,
545 overwrite_name, 545 overwrite_name,
546 TRUnaryOpIC::GetName(operand_type_)); 546 TRUnaryOpIC::GetName(operand_type_));
(...skipping 5445 matching lines...) Expand 10 before | Expand all | Expand 10 after
5992 // Do a tail call to the rewritten stub. 5992 // Do a tail call to the rewritten stub.
5993 __ jmp(Operand(edi)); 5993 __ jmp(Operand(edi));
5994 } 5994 }
5995 5995
5996 5996
5997 #undef __ 5997 #undef __
5998 5998
5999 } } // namespace v8::internal 5999 } } // namespace v8::internal
6000 6000
6001 #endif // V8_TARGET_ARCH_IA32 6001 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698