| 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 16046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16057 uint32_t key, | 16057 uint32_t key, |
| 16058 Handle<Object> value) { | 16058 Handle<Object> value) { |
| 16059 SLOW_ASSERT(dictionary->FindEntry(key) == kNotFound); | 16059 SLOW_ASSERT(dictionary->FindEntry(key) == kNotFound); |
| 16060 CALL_HEAP_FUNCTION(dictionary->GetIsolate(), | 16060 CALL_HEAP_FUNCTION(dictionary->GetIsolate(), |
| 16061 dictionary->Add( | 16061 dictionary->Add( |
| 16062 key, *value, PropertyDetails(NONE, NORMAL, 0)), | 16062 key, *value, PropertyDetails(NONE, NORMAL, 0)), |
| 16063 UnseededNumberDictionary); | 16063 UnseededNumberDictionary); |
| 16064 } | 16064 } |
| 16065 | 16065 |
| 16066 | 16066 |
| 16067 Handle<SeededNumberDictionary> SeededNumberDictionary::AtNumberPut( | 16067 MaybeObject* SeededNumberDictionary::AtNumberPut(uint32_t key, Object* value) { |
| 16068 Handle<SeededNumberDictionary> dictionary, | 16068 UpdateMaxNumberKey(key); |
| 16069 uint32_t key, | 16069 return AtPut(key, value); |
| 16070 Handle<Object> value) { | |
| 16071 dictionary->UpdateMaxNumberKey(key); | |
| 16072 CALL_HEAP_FUNCTION( | |
| 16073 dictionary->GetIsolate(), | |
| 16074 dictionary->AtPut(key, *value), | |
| 16075 SeededNumberDictionary); | |
| 16076 } | 16070 } |
| 16077 | 16071 |
| 16078 | 16072 |
| 16079 Handle<UnseededNumberDictionary> UnseededNumberDictionary::AtNumberPut( | 16073 MaybeObject* UnseededNumberDictionary::AtNumberPut(uint32_t key, |
| 16080 Handle<UnseededNumberDictionary> dictionary, | 16074 Object* value) { |
| 16081 uint32_t key, | 16075 return AtPut(key, value); |
| 16082 Handle<Object> value) { | |
| 16083 CALL_HEAP_FUNCTION( | |
| 16084 dictionary->GetIsolate(), | |
| 16085 dictionary->AtPut(key, *value), | |
| 16086 UnseededNumberDictionary); | |
| 16087 } | 16076 } |
| 16088 | 16077 |
| 16089 | 16078 |
| 16090 Handle<SeededNumberDictionary> SeededNumberDictionary::Set( | 16079 Handle<SeededNumberDictionary> SeededNumberDictionary::Set( |
| 16091 Handle<SeededNumberDictionary> dictionary, | 16080 Handle<SeededNumberDictionary> dictionary, |
| 16092 uint32_t key, | 16081 uint32_t key, |
| 16093 Handle<Object> value, | 16082 Handle<Object> value, |
| 16094 PropertyDetails details) { | 16083 PropertyDetails details) { |
| 16095 int entry = dictionary->FindEntry(key); | 16084 int entry = dictionary->FindEntry(key); |
| 16096 if (entry == kNotFound) { | 16085 if (entry == kNotFound) { |
| (...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17425 #define ERROR_MESSAGES_TEXTS(C, T) T, | 17414 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 17426 static const char* error_messages_[] = { | 17415 static const char* error_messages_[] = { |
| 17427 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 17416 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 17428 }; | 17417 }; |
| 17429 #undef ERROR_MESSAGES_TEXTS | 17418 #undef ERROR_MESSAGES_TEXTS |
| 17430 return error_messages_[reason]; | 17419 return error_messages_[reason]; |
| 17431 } | 17420 } |
| 17432 | 17421 |
| 17433 | 17422 |
| 17434 } } // namespace v8::internal | 17423 } } // namespace v8::internal |
| OLD | NEW |