| 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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 Handle<String> name, | 1198 Handle<String> name, |
| 1199 Handle<Object> unused, | 1199 Handle<Object> unused, |
| 1200 InlineCacheHolderFlag cache_holder) { | 1200 InlineCacheHolderFlag cache_holder) { |
| 1201 if (object->IsString() && name->Equals(isolate()->heap()->length_string())) { | 1201 if (object->IsString() && name->Equals(isolate()->heap()->length_string())) { |
| 1202 int length_index = String::kLengthOffset / kPointerSize; | 1202 int length_index = String::kLengthOffset / kPointerSize; |
| 1203 return SimpleFieldLoad(length_index); | 1203 return SimpleFieldLoad(length_index); |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 Handle<Type> type = CurrentTypeOf(object, isolate()); | 1206 Handle<Type> type = CurrentTypeOf(object, isolate()); |
| 1207 Handle<JSObject> holder(lookup->holder()); | 1207 Handle<JSObject> holder(lookup->holder()); |
| 1208 LoadStubCompiler compiler(isolate(), cache_holder, kind()); | 1208 LoadStubCompiler compiler(isolate(), kNoExtraICState, cache_holder, kind()); |
| 1209 | 1209 |
| 1210 switch (lookup->type()) { | 1210 switch (lookup->type()) { |
| 1211 case FIELD: { | 1211 case FIELD: { |
| 1212 PropertyIndex field = lookup->GetFieldIndex(); | 1212 PropertyIndex field = lookup->GetFieldIndex(); |
| 1213 if (object.is_identical_to(holder)) { | 1213 if (object.is_identical_to(holder)) { |
| 1214 return SimpleFieldLoad(field.translate(holder), | 1214 return SimpleFieldLoad(field.translate(holder), |
| 1215 field.is_inobject(holder), | 1215 field.is_inobject(holder), |
| 1216 lookup->representation()); | 1216 lookup->representation()); |
| 1217 } | 1217 } |
| 1218 return compiler.CompileLoadField( | 1218 return compiler.CompileLoadField( |
| (...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2755 #undef ADDR | 2755 #undef ADDR |
| 2756 }; | 2756 }; |
| 2757 | 2757 |
| 2758 | 2758 |
| 2759 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2759 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2760 return IC_utilities[id]; | 2760 return IC_utilities[id]; |
| 2761 } | 2761 } |
| 2762 | 2762 |
| 2763 | 2763 |
| 2764 } } // namespace v8::internal | 2764 } } // namespace v8::internal |
| OLD | NEW |