| 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 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1463 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( | 1463 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( |
| 1464 Handle<Map> receiver_map) { | 1464 Handle<Map> receiver_map) { |
| 1465 ElementsKind elements_kind = receiver_map->elements_kind(); | 1465 ElementsKind elements_kind = receiver_map->elements_kind(); |
| 1466 if (receiver_map->has_fast_elements() || | 1466 if (receiver_map->has_fast_elements() || |
| 1467 receiver_map->has_external_array_elements()) { | 1467 receiver_map->has_external_array_elements()) { |
| 1468 Handle<Code> stub = KeyedLoadFastElementStub( | 1468 Handle<Code> stub = KeyedLoadFastElementStub( |
| 1469 receiver_map->instance_type() == JS_ARRAY_TYPE, | 1469 receiver_map->instance_type() == JS_ARRAY_TYPE, |
| 1470 elements_kind).GetCode(isolate()); | 1470 elements_kind).GetCode(isolate()); |
| 1471 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK); | 1471 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK); |
| 1472 } else { | 1472 } else { |
| 1473 Handle<Code> stub = | 1473 Handle<Code> stub = FLAG_compiled_keyed_dictionary_loads |
| 1474 KeyedLoadDictionaryElementStub().GetCode(isolate()); | 1474 ? KeyedLoadDictionaryElementStub().GetCode(isolate()) |
| 1475 : KeyedLoadDictionaryElementPlatformStub().GetCode(isolate()); |
| 1475 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK); | 1476 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK); |
| 1476 } | 1477 } |
| 1477 | 1478 |
| 1478 TailCallBuiltin(masm(), Builtins::kKeyedLoadIC_Miss); | 1479 TailCallBuiltin(masm(), Builtins::kKeyedLoadIC_Miss); |
| 1479 | 1480 |
| 1480 // Return the generated code. | 1481 // Return the generated code. |
| 1481 return GetICCode(kind(), Code::NORMAL, factory()->empty_string()); | 1482 return GetICCode(kind(), Code::NORMAL, factory()->empty_string()); |
| 1482 } | 1483 } |
| 1483 | 1484 |
| 1484 | 1485 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 Handle<FunctionTemplateInfo>( | 1818 Handle<FunctionTemplateInfo>( |
| 1818 FunctionTemplateInfo::cast(signature->receiver())); | 1819 FunctionTemplateInfo::cast(signature->receiver())); |
| 1819 } | 1820 } |
| 1820 } | 1821 } |
| 1821 | 1822 |
| 1822 is_simple_api_call_ = true; | 1823 is_simple_api_call_ = true; |
| 1823 } | 1824 } |
| 1824 | 1825 |
| 1825 | 1826 |
| 1826 } } // namespace v8::internal | 1827 } } // namespace v8::internal |
| OLD | NEW |