| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 10086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10097 return true; | 10097 return true; |
| 10098 } | 10098 } |
| 10099 if (filter[filter.length() - 1] == '*' && | 10099 if (filter[filter.length() - 1] == '*' && |
| 10100 name->IsUtf8EqualTo(filter.SubVector(0, filter.length() - 1), true)) { | 10100 name->IsUtf8EqualTo(filter.SubVector(0, filter.length() - 1), true)) { |
| 10101 return true; | 10101 return true; |
| 10102 } | 10102 } |
| 10103 return false; | 10103 return false; |
| 10104 } | 10104 } |
| 10105 | 10105 |
| 10106 | 10106 |
| 10107 MaybeObject* Oddball::Initialize(Heap* heap, | 10107 void Oddball::Initialize(Isolate* isolate, |
| 10108 const char* to_string, | 10108 Handle<Oddball> oddball, |
| 10109 Object* to_number, | 10109 const char* to_string, |
| 10110 byte kind) { | 10110 Handle<Object> to_number, |
| 10111 String* internalized_to_string; | 10111 byte kind) { |
| 10112 { MaybeObject* maybe_string = | 10112 Handle<String> internalized_to_string = |
| 10113 heap->InternalizeUtf8String( | 10113 isolate->factory()->InternalizeUtf8String(CStrVector(to_string)); |
| 10114 CStrVector(to_string)); | 10114 oddball->set_to_string(*internalized_to_string); |
| 10115 if (!maybe_string->To(&internalized_to_string)) return maybe_string; | 10115 oddball->set_to_number(*to_number); |
| 10116 } | 10116 oddball->set_kind(kind); |
| 10117 set_to_string(internalized_to_string); | |
| 10118 set_to_number(to_number); | |
| 10119 set_kind(kind); | |
| 10120 return this; | |
| 10121 } | 10117 } |
| 10122 | 10118 |
| 10123 | 10119 |
| 10124 String* SharedFunctionInfo::DebugName() { | 10120 String* SharedFunctionInfo::DebugName() { |
| 10125 Object* n = name(); | 10121 Object* n = name(); |
| 10126 if (!n->IsString() || String::cast(n)->length() == 0) return inferred_name(); | 10122 if (!n->IsString() || String::cast(n)->length() == 0) return inferred_name(); |
| 10127 return String::cast(n); | 10123 return String::cast(n); |
| 10128 } | 10124 } |
| 10129 | 10125 |
| 10130 | 10126 |
| (...skipping 4298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14429 Dictionary<SeededNumberDictionary, SeededNumberDictionaryShape, uint32_t>:: | 14425 Dictionary<SeededNumberDictionary, SeededNumberDictionaryShape, uint32_t>:: |
| 14430 DeleteProperty( | 14426 DeleteProperty( |
| 14431 Handle<Dictionary<SeededNumberDictionary, | 14427 Handle<Dictionary<SeededNumberDictionary, |
| 14432 SeededNumberDictionaryShape, | 14428 SeededNumberDictionaryShape, |
| 14433 uint32_t> >, | 14429 uint32_t> >, |
| 14434 int, | 14430 int, |
| 14435 JSObject::DeleteMode); | 14431 JSObject::DeleteMode); |
| 14436 | 14432 |
| 14437 template Handle<NameDictionary> | 14433 template Handle<NameDictionary> |
| 14438 HashTable<NameDictionary, NameDictionaryShape, Name*>:: | 14434 HashTable<NameDictionary, NameDictionaryShape, Name*>:: |
| 14435 New(Isolate*, int, MinimumCapacity, PretenureFlag); |
| 14436 |
| 14437 template Handle<NameDictionary> |
| 14438 HashTable<NameDictionary, NameDictionaryShape, Name*>:: |
| 14439 Shrink(Handle<NameDictionary>, Name* n); | 14439 Shrink(Handle<NameDictionary>, Name* n); |
| 14440 | 14440 |
| 14441 template Handle<SeededNumberDictionary> | 14441 template Handle<SeededNumberDictionary> |
| 14442 HashTable<SeededNumberDictionary, SeededNumberDictionaryShape, uint32_t>:: | 14442 HashTable<SeededNumberDictionary, SeededNumberDictionaryShape, uint32_t>:: |
| 14443 Shrink(Handle<SeededNumberDictionary>, uint32_t); | 14443 Shrink(Handle<SeededNumberDictionary>, uint32_t); |
| 14444 | 14444 |
| 14445 template void Dictionary<NameDictionary, NameDictionaryShape, Name*>:: | 14445 template void Dictionary<NameDictionary, NameDictionaryShape, Name*>:: |
| 14446 CopyKeysTo( | 14446 CopyKeysTo( |
| 14447 FixedArray*, | 14447 FixedArray*, |
| 14448 int, | 14448 int, |
| (...skipping 2156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16605 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16605 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16606 static const char* error_messages_[] = { | 16606 static const char* error_messages_[] = { |
| 16607 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16607 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16608 }; | 16608 }; |
| 16609 #undef ERROR_MESSAGES_TEXTS | 16609 #undef ERROR_MESSAGES_TEXTS |
| 16610 return error_messages_[reason]; | 16610 return error_messages_[reason]; |
| 16611 } | 16611 } |
| 16612 | 16612 |
| 16613 | 16613 |
| 16614 } } // namespace v8::internal | 16614 } } // namespace v8::internal |
| OLD | NEW |