Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: src/objects.cc

Issue 250003002: *NumberDictionary::AtNumberPut() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698