| OLD | NEW |
| 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 FillCache(isolate_, code); | 1042 FillCache(isolate_, code); |
| 1043 return code; | 1043 return code; |
| 1044 } | 1044 } |
| 1045 #endif | 1045 #endif |
| 1046 | 1046 |
| 1047 | 1047 |
| 1048 void StubCache::Clear() { | 1048 void StubCache::Clear() { |
| 1049 Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal); | 1049 Code* empty = isolate_->builtins()->builtin(Builtins::kIllegal); |
| 1050 for (int i = 0; i < kPrimaryTableSize; i++) { | 1050 for (int i = 0; i < kPrimaryTableSize; i++) { |
| 1051 primary_[i].key = heap()->empty_string(); | 1051 primary_[i].key = heap()->empty_string(); |
| 1052 primary_[i].map = NULL; |
| 1052 primary_[i].value = empty; | 1053 primary_[i].value = empty; |
| 1053 } | 1054 } |
| 1054 for (int j = 0; j < kSecondaryTableSize; j++) { | 1055 for (int j = 0; j < kSecondaryTableSize; j++) { |
| 1055 secondary_[j].key = heap()->empty_string(); | 1056 secondary_[j].key = heap()->empty_string(); |
| 1057 secondary_[j].map = NULL; |
| 1056 secondary_[j].value = empty; | 1058 secondary_[j].value = empty; |
| 1057 } | 1059 } |
| 1058 } | 1060 } |
| 1059 | 1061 |
| 1060 | 1062 |
| 1061 void StubCache::CollectMatchingMaps(SmallMapList* types, | 1063 void StubCache::CollectMatchingMaps(SmallMapList* types, |
| 1062 Name* name, | 1064 Name* name, |
| 1063 Code::Flags flags, | 1065 Code::Flags flags, |
| 1064 Handle<Context> native_context, | 1066 Handle<Context> native_context, |
| 1065 Zone* zone) { | 1067 Zone* zone) { |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2116 Handle<FunctionTemplateInfo>( | 2118 Handle<FunctionTemplateInfo>( |
| 2117 FunctionTemplateInfo::cast(signature->receiver())); | 2119 FunctionTemplateInfo::cast(signature->receiver())); |
| 2118 } | 2120 } |
| 2119 } | 2121 } |
| 2120 | 2122 |
| 2121 is_simple_api_call_ = true; | 2123 is_simple_api_call_ = true; |
| 2122 } | 2124 } |
| 2123 | 2125 |
| 2124 | 2126 |
| 2125 } } // namespace v8::internal | 2127 } } // namespace v8::internal |
| OLD | NEW |