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 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 } | 1689 } |
1690 | 1690 |
1691 | 1691 |
1692 const char* TypeRecordingUnaryOpStub::GetName() { | 1692 const char* TypeRecordingUnaryOpStub::GetName() { |
1693 if (name_ != NULL) return name_; | 1693 if (name_ != NULL) return name_; |
1694 const int kMaxNameLength = 100; | 1694 const int kMaxNameLength = 100; |
1695 name_ = Isolate::Current()->bootstrapper()->AllocateAutoDeletedArray( | 1695 name_ = Isolate::Current()->bootstrapper()->AllocateAutoDeletedArray( |
1696 kMaxNameLength); | 1696 kMaxNameLength); |
1697 if (name_ == NULL) return "OOM"; | 1697 if (name_ == NULL) return "OOM"; |
1698 const char* op_name = Token::Name(op_); | 1698 const char* op_name = Token::Name(op_); |
1699 const char* overwrite_name; | 1699 const char* overwrite_name = NULL; // Make g++ happy. |
1700 switch (mode_) { | 1700 switch (mode_) { |
1701 case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; | 1701 case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; |
1702 case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; | 1702 case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; |
1703 } | 1703 } |
1704 | 1704 |
1705 OS::SNPrintF(Vector<char>(name_, kMaxNameLength), | 1705 OS::SNPrintF(Vector<char>(name_, kMaxNameLength), |
1706 "TypeRecordingUnaryOpStub_%s_%s_%s", | 1706 "TypeRecordingUnaryOpStub_%s_%s_%s", |
1707 op_name, | 1707 op_name, |
1708 overwrite_name, | 1708 overwrite_name, |
1709 TRUnaryOpIC::GetName(operand_type_)); | 1709 TRUnaryOpIC::GetName(operand_type_)); |
(...skipping 4398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6108 __ str(pc, MemOperand(sp, 0)); | 6108 __ str(pc, MemOperand(sp, 0)); |
6109 __ Jump(target); // Call the C++ function. | 6109 __ Jump(target); // Call the C++ function. |
6110 } | 6110 } |
6111 | 6111 |
6112 | 6112 |
6113 #undef __ | 6113 #undef __ |
6114 | 6114 |
6115 } } // namespace v8::internal | 6115 } } // namespace v8::internal |
6116 | 6116 |
6117 #endif // V8_TARGET_ARCH_ARM | 6117 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |