| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 172     } | 172     } | 
| 173   } | 173   } | 
| 174   return STANDARD_STORE; | 174   return STANDARD_STORE; | 
| 175 } | 175 } | 
| 176 | 176 | 
| 177 | 177 | 
| 178 void TypeFeedbackOracle::CallReceiverTypes(TypeFeedbackId id, | 178 void TypeFeedbackOracle::CallReceiverTypes(TypeFeedbackId id, | 
| 179                                            Handle<String> name, | 179                                            Handle<String> name, | 
| 180                                            int arity, | 180                                            int arity, | 
| 181                                            SmallMapList* types) { | 181                                            SmallMapList* types) { | 
| 182   // Note: Currently we do not take string extra ic data into account |  | 
| 183   // here. |  | 
| 184   Code::Flags flags = Code::ComputeMonomorphicFlags( | 182   Code::Flags flags = Code::ComputeMonomorphicFlags( | 
| 185       Code::CALL_IC, kNoExtraICState, OWN_MAP, Code::NORMAL, arity); | 183       Code::CALL_IC, kNoExtraICState, OWN_MAP, Code::NORMAL, arity); | 
| 186   CollectReceiverTypes(id, name, flags, types); | 184   CollectReceiverTypes(id, name, flags, types); | 
| 187 } | 185 } | 
| 188 | 186 | 
| 189 | 187 | 
| 190 CheckType TypeFeedbackOracle::GetCallCheckType(TypeFeedbackId id) { | 188 CheckType TypeFeedbackOracle::GetCallCheckType(TypeFeedbackId id) { | 
| 191   Handle<Object> value = GetInfo(id); | 189   Handle<Object> value = GetInfo(id); | 
| 192   if (!value->IsSmi()) return RECEIVER_MAP_CHECK; | 190   if (!value->IsSmi()) return RECEIVER_MAP_CHECK; | 
| 193   CheckType check = static_cast<CheckType>(Smi::cast(*value)->value()); | 191   CheckType check = static_cast<CheckType>(Smi::cast(*value)->value()); | 
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 568 #ifdef DEBUG | 566 #ifdef DEBUG | 
| 569   Object* result = NULL; | 567   Object* result = NULL; | 
| 570   // Dictionary has been allocated with sufficient size for all elements. | 568   // Dictionary has been allocated with sufficient size for all elements. | 
| 571   ASSERT(maybe_result->ToObject(&result)); | 569   ASSERT(maybe_result->ToObject(&result)); | 
| 572   ASSERT(*dictionary_ == result); | 570   ASSERT(*dictionary_ == result); | 
| 573 #endif | 571 #endif | 
| 574 } | 572 } | 
| 575 | 573 | 
| 576 | 574 | 
| 577 } }  // namespace v8::internal | 575 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|