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

Side by Side Diff: src/ic/ic.cc

Issue 503663003: Clean up LookupIterator::Configuration naming (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/hydrogen.cc ('k') | src/isolate.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 if (state() == MONOMORPHIC) { 275 if (state() == MONOMORPHIC) {
276 int index = ic_holder_map->IndexInCodeCache(*name, *target()); 276 int index = ic_holder_map->IndexInCodeCache(*name, *target());
277 if (index >= 0) { 277 if (index >= 0) {
278 ic_holder_map->RemoveFromCodeCache(*name, *target(), index); 278 ic_holder_map->RemoveFromCodeCache(*name, *target(), index);
279 } 279 }
280 } 280 }
281 281
282 if (receiver->IsGlobalObject()) { 282 if (receiver->IsGlobalObject()) {
283 Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver); 283 Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver);
284 LookupIterator it(global, name, LookupIterator::CHECK_PROPERTY); 284 LookupIterator it(global, name, LookupIterator::OWN_PROPERTY);
285 if (!it.IsFound() || !it.HasProperty()) return false; 285 if (!it.IsFound() || !it.HasProperty()) return false;
286 Handle<PropertyCell> cell = it.GetPropertyCell(); 286 Handle<PropertyCell> cell = it.GetPropertyCell();
287 return cell->type()->IsConstant(); 287 return cell->type()->IsConstant();
288 } 288 }
289 289
290 return true; 290 return true;
291 } 291 }
292 292
293 293
294 bool IC::IsNameCompatibleWithPrototypeFailure(Handle<Object> name) { 294 bool IC::IsNameCompatibleWithPrototypeFailure(Handle<Object> name) {
(...skipping 2896 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 static const Address IC_utilities[] = { 3191 static const Address IC_utilities[] = {
3192 #define ADDR(name) FUNCTION_ADDR(name), 3192 #define ADDR(name) FUNCTION_ADDR(name),
3193 IC_UTIL_LIST(ADDR) NULL 3193 IC_UTIL_LIST(ADDR) NULL
3194 #undef ADDR 3194 #undef ADDR
3195 }; 3195 };
3196 3196
3197 3197
3198 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3198 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3199 } 3199 }
3200 } // namespace v8::internal 3200 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698