| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |