| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 return Handle<Code>(code, isolate); | 190 return Handle<Code>(code, isolate); |
| 191 } | 191 } |
| 192 | 192 |
| 193 | 193 |
| 194 const char* CodeStub::MajorName(CodeStub::Major major_key, | 194 const char* CodeStub::MajorName(CodeStub::Major major_key, |
| 195 bool allow_unknown_keys) { | 195 bool allow_unknown_keys) { |
| 196 switch (major_key) { | 196 switch (major_key) { |
| 197 #define DEF_CASE(name) case name: return #name "Stub"; | 197 #define DEF_CASE(name) case name: return #name "Stub"; |
| 198 CODE_STUB_LIST(DEF_CASE) | 198 CODE_STUB_LIST(DEF_CASE) |
| 199 #undef DEF_CASE | 199 #undef DEF_CASE |
| 200 case UninitializedMajorKey: return "<UninitializedMajorKey>Stub"; |
| 200 default: | 201 default: |
| 201 if (!allow_unknown_keys) { | 202 if (!allow_unknown_keys) { |
| 202 UNREACHABLE(); | 203 UNREACHABLE(); |
| 203 } | 204 } |
| 204 return NULL; | 205 return NULL; |
| 205 } | 206 } |
| 206 } | 207 } |
| 207 | 208 |
| 208 | 209 |
| 209 void CodeStub::PrintBaseName(StringStream* stream) { | 210 void CodeStub::PrintBaseName(StringStream* stream) { |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 InstallDescriptor(isolate, &stub3); | 763 InstallDescriptor(isolate, &stub3); |
| 763 } | 764 } |
| 764 | 765 |
| 765 InternalArrayConstructorStub::InternalArrayConstructorStub( | 766 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 766 Isolate* isolate) { | 767 Isolate* isolate) { |
| 767 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 768 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 768 } | 769 } |
| 769 | 770 |
| 770 | 771 |
| 771 } } // namespace v8::internal | 772 } } // namespace v8::internal |
| OLD | NEW |