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