| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 // Note: Currently we do not take string extra ic data into account | 184 // Note: Currently we do not take string extra ic data into account |
| 185 // here. | 185 // here. |
| 186 Code::ExtraICState extra_ic_state = | 186 Code::ExtraICState extra_ic_state = |
| 187 CallIC::Contextual::encode(call_kind == CALL_AS_FUNCTION); | 187 CallIC::Contextual::encode(call_kind == CALL_AS_FUNCTION); |
| 188 | 188 |
| 189 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, | 189 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, |
| 190 NORMAL, | 190 NORMAL, |
| 191 extra_ic_state, | 191 extra_ic_state, |
| 192 OWN_MAP, | 192 OWN_MAP, |
| 193 NOT_IN_LOOP, | |
| 194 arity); | 193 arity); |
| 195 CollectReceiverTypes(expr->id(), name, flags, types); | 194 CollectReceiverTypes(expr->id(), name, flags, types); |
| 196 } | 195 } |
| 197 | 196 |
| 198 | 197 |
| 199 CheckType TypeFeedbackOracle::GetCallCheckType(Call* expr) { | 198 CheckType TypeFeedbackOracle::GetCallCheckType(Call* expr) { |
| 200 Handle<Object> value = GetInfo(expr->id()); | 199 Handle<Object> value = GetInfo(expr->id()); |
| 201 if (!value->IsSmi()) return RECEIVER_MAP_CHECK; | 200 if (!value->IsSmi()) return RECEIVER_MAP_CHECK; |
| 202 CheckType check = static_cast<CheckType>(Smi::cast(*value)->value()); | 201 CheckType check = static_cast<CheckType>(Smi::cast(*value)->value()); |
| 203 ASSERT(check != RECEIVER_MAP_CHECK); | 202 ASSERT(check != RECEIVER_MAP_CHECK); |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 USE(maybe_result); | 541 USE(maybe_result); |
| 543 #ifdef DEBUG | 542 #ifdef DEBUG |
| 544 Object* result = NULL; | 543 Object* result = NULL; |
| 545 // Dictionary has been allocated with sufficient size for all elements. | 544 // Dictionary has been allocated with sufficient size for all elements. |
| 546 ASSERT(maybe_result->ToObject(&result)); | 545 ASSERT(maybe_result->ToObject(&result)); |
| 547 ASSERT(*dictionary_ == result); | 546 ASSERT(*dictionary_ == result); |
| 548 #endif | 547 #endif |
| 549 } | 548 } |
| 550 | 549 |
| 551 } } // namespace v8::internal | 550 } } // namespace v8::internal |
| OLD | NEW |