| 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 return CompilePolymorphicIC(&types, &handlers, name, stub_type, PROPERTY); | 1023 return CompilePolymorphicIC(&types, &handlers, name, stub_type, PROPERTY); |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 | 1026 |
| 1027 Handle<Code> LoadStubCompiler::CompileLoadViaGetter( | 1027 Handle<Code> LoadStubCompiler::CompileLoadViaGetter( |
| 1028 Handle<HeapType> type, | 1028 Handle<HeapType> type, |
| 1029 Handle<JSObject> holder, | 1029 Handle<JSObject> holder, |
| 1030 Handle<Name> name, | 1030 Handle<Name> name, |
| 1031 Handle<JSFunction> getter) { | 1031 Handle<JSFunction> getter) { |
| 1032 HandlerFrontend(type, receiver(), holder, name); | 1032 HandlerFrontend(type, receiver(), holder, name); |
| 1033 GenerateLoadViaGetter(masm(), receiver(), getter); | 1033 GenerateLoadViaGetter(masm(), type, receiver(), getter); |
| 1034 | 1034 |
| 1035 // Return the generated code. | 1035 // Return the generated code. |
| 1036 return GetCode(kind(), Code::FAST, name); | 1036 return GetCode(kind(), Code::FAST, name); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 | 1039 |
| 1040 Handle<Code> StoreStubCompiler::CompileStoreTransition( | 1040 Handle<Code> StoreStubCompiler::CompileStoreTransition( |
| 1041 Handle<JSObject> object, | 1041 Handle<JSObject> object, |
| 1042 LookupResult* lookup, | 1042 LookupResult* lookup, |
| 1043 Handle<Map> transition, | 1043 Handle<Map> transition, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 // Return the generated code. | 1116 // Return the generated code. |
| 1117 return GetCode(kind(), Code::FAST, name); | 1117 return GetCode(kind(), Code::FAST, name); |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 | 1120 |
| 1121 Handle<Code> StoreStubCompiler::CompileStoreViaSetter( | 1121 Handle<Code> StoreStubCompiler::CompileStoreViaSetter( |
| 1122 Handle<JSObject> object, | 1122 Handle<JSObject> object, |
| 1123 Handle<JSObject> holder, | 1123 Handle<JSObject> holder, |
| 1124 Handle<Name> name, | 1124 Handle<Name> name, |
| 1125 Handle<JSFunction> setter) { | 1125 Handle<JSFunction> setter) { |
| 1126 HandlerFrontend(IC::CurrentTypeOf(object, isolate()), | 1126 Handle<HeapType> type = IC::CurrentTypeOf(object, isolate()); |
| 1127 receiver(), holder, name); | 1127 HandlerFrontend(type, receiver(), holder, name); |
| 1128 GenerateStoreViaSetter(masm(), setter); | 1128 GenerateStoreViaSetter(masm(), type, setter); |
| 1129 | 1129 |
| 1130 return GetCode(kind(), Code::FAST, name); | 1130 return GetCode(kind(), Code::FAST, name); |
| 1131 } | 1131 } |
| 1132 | 1132 |
| 1133 | 1133 |
| 1134 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( | 1134 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( |
| 1135 Handle<Map> receiver_map) { | 1135 Handle<Map> receiver_map) { |
| 1136 ElementsKind elements_kind = receiver_map->elements_kind(); | 1136 ElementsKind elements_kind = receiver_map->elements_kind(); |
| 1137 if (receiver_map->has_fast_elements() || | 1137 if (receiver_map->has_fast_elements() || |
| 1138 receiver_map->has_external_array_elements() || | 1138 receiver_map->has_external_array_elements() || |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 Handle<FunctionTemplateInfo>( | 1446 Handle<FunctionTemplateInfo>( |
| 1447 FunctionTemplateInfo::cast(signature->receiver())); | 1447 FunctionTemplateInfo::cast(signature->receiver())); |
| 1448 } | 1448 } |
| 1449 } | 1449 } |
| 1450 | 1450 |
| 1451 is_simple_api_call_ = true; | 1451 is_simple_api_call_ = true; |
| 1452 } | 1452 } |
| 1453 | 1453 |
| 1454 | 1454 |
| 1455 } } // namespace v8::internal | 1455 } } // namespace v8::internal |
| OLD | NEW |