| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |