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

Side by Side Diff: src/type-info.cc

Issue 7869009: Remove in-loop tracking for call ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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/stub-cache.cc ('k') | src/v8globals.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698