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

Side by Side Diff: src/stub-cache.cc

Issue 19492007: Generate KeyedLoadDictionaryElementStub with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Better formatting Created 7 years, 1 month 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/ia32/macro-assembler-ia32.cc ('k') | src/x64/code-stubs-x64.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 // 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 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement( 1473 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement(
1474 Handle<Map> receiver_map) { 1474 Handle<Map> receiver_map) {
1475 ElementsKind elements_kind = receiver_map->elements_kind(); 1475 ElementsKind elements_kind = receiver_map->elements_kind();
1476 if (receiver_map->has_fast_elements() || 1476 if (receiver_map->has_fast_elements() ||
1477 receiver_map->has_external_array_elements()) { 1477 receiver_map->has_external_array_elements()) {
1478 Handle<Code> stub = KeyedLoadFastElementStub( 1478 Handle<Code> stub = KeyedLoadFastElementStub(
1479 receiver_map->instance_type() == JS_ARRAY_TYPE, 1479 receiver_map->instance_type() == JS_ARRAY_TYPE,
1480 elements_kind).GetCode(isolate()); 1480 elements_kind).GetCode(isolate());
1481 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK); 1481 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK);
1482 } else { 1482 } else {
1483 Handle<Code> stub = 1483 Handle<Code> stub = FLAG_compiled_keyed_dictionary_loads
1484 KeyedLoadDictionaryElementStub().GetCode(isolate()); 1484 ? KeyedLoadDictionaryElementStub().GetCode(isolate())
1485 : KeyedLoadDictionaryElementPlatformStub().GetCode(isolate());
1485 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK); 1486 __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK);
1486 } 1487 }
1487 1488
1488 TailCallBuiltin(masm(), Builtins::kKeyedLoadIC_Miss); 1489 TailCallBuiltin(masm(), Builtins::kKeyedLoadIC_Miss);
1489 1490
1490 // Return the generated code. 1491 // Return the generated code.
1491 return GetICCode(kind(), Code::NORMAL, factory()->empty_string()); 1492 return GetICCode(kind(), Code::NORMAL, factory()->empty_string());
1492 } 1493 }
1493 1494
1494 1495
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 Handle<FunctionTemplateInfo>( 1824 Handle<FunctionTemplateInfo>(
1824 FunctionTemplateInfo::cast(signature->receiver())); 1825 FunctionTemplateInfo::cast(signature->receiver()));
1825 } 1826 }
1826 } 1827 }
1827 1828
1828 is_simple_api_call_ = true; 1829 is_simple_api_call_ = true;
1829 } 1830 }
1830 1831
1831 1832
1832 } } // namespace v8::internal 1833 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698