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

Side by Side Diff: src/stub-cache.cc

Issue 15565002: Zap map value in the stub-cache on clear. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 FillCache(isolate_, code); 1027 FillCache(isolate_, code);
1028 return code; 1028 return code;
1029 } 1029 }
1030 #endif 1030 #endif
1031 1031
1032 1032
1033 void StubCache::Clear() { 1033 void StubCache::Clear() {
1034 Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal); 1034 Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal);
1035 for (int i = 0; i < kPrimaryTableSize; i++) { 1035 for (int i = 0; i < kPrimaryTableSize; i++) {
1036 primary_[i].key = heap()->empty_string(); 1036 primary_[i].key = heap()->empty_string();
1037 primary_[i].map = NULL;
1037 primary_[i].value = empty; 1038 primary_[i].value = empty;
1038 } 1039 }
1039 for (int j = 0; j < kSecondaryTableSize; j++) { 1040 for (int j = 0; j < kSecondaryTableSize; j++) {
1040 secondary_[j].key = heap()->empty_string(); 1041 secondary_[j].key = heap()->empty_string();
1042 secondary_[j].map = NULL;
1041 secondary_[j].value = empty; 1043 secondary_[j].value = empty;
1042 } 1044 }
1043 } 1045 }
1044 1046
1045 1047
1046 void StubCache::CollectMatchingMaps(SmallMapList* types, 1048 void StubCache::CollectMatchingMaps(SmallMapList* types,
1047 Handle<Name> name, 1049 Handle<Name> name,
1048 Code::Flags flags, 1050 Code::Flags flags,
1049 Handle<Context> native_context, 1051 Handle<Context> native_context,
1050 Zone* zone) { 1052 Zone* zone) {
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 Handle<FunctionTemplateInfo>( 2102 Handle<FunctionTemplateInfo>(
2101 FunctionTemplateInfo::cast(signature->receiver())); 2103 FunctionTemplateInfo::cast(signature->receiver()));
2102 } 2104 }
2103 } 2105 }
2104 2106
2105 is_simple_api_call_ = true; 2107 is_simple_api_call_ = true;
2106 } 2108 }
2107 2109
2108 2110
2109 } } // namespace v8::internal 2111 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698