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

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

Issue 573003: ia32: Fuse map and type checks in call ICs for API functions. (Closed)
Patch Set: Rewrote a comment. Created 10 years, 10 months 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
« no previous file with comments | « no previous file | src/builtins.h » ('j') | src/ia32/stub-cache-ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 #undef __ 728 #undef __
729 #define __ ACCESS_MASM(masm()) 729 #define __ ACCESS_MASM(masm())
730 730
731 731
732 Register StubCompiler::CheckPrototypes(JSObject* object, 732 Register StubCompiler::CheckPrototypes(JSObject* object,
733 Register object_reg, 733 Register object_reg,
734 JSObject* holder, 734 JSObject* holder,
735 Register holder_reg, 735 Register holder_reg,
736 Register scratch, 736 Register scratch,
737 String* name, 737 String* name,
738 int save_at_depth,
738 Label* miss) { 739 Label* miss) {
740 // TODO(<bug>): support object saving.
741 ASSERT(save_at_depth == kInvalidProtoDepth);
742
739 // Check that the maps haven't changed. 743 // Check that the maps haven't changed.
740 Register result = 744 Register result =
741 masm()->CheckMaps(object, object_reg, holder, holder_reg, scratch, miss); 745 masm()->CheckMaps(object, object_reg, holder, holder_reg, scratch, miss);
742 746
743 // If we've skipped any global objects, it's not enough to verify 747 // If we've skipped any global objects, it's not enough to verify
744 // that their maps haven't changed. 748 // that their maps haven't changed.
745 while (object != holder) { 749 while (object != holder) {
746 if (object->IsGlobalObject()) { 750 if (object->IsGlobalObject()) {
747 GlobalObject* global = GlobalObject::cast(object); 751 GlobalObject* global = GlobalObject::cast(object);
748 Object* probe = global->EnsurePropertyCell(name); 752 Object* probe = global->EnsurePropertyCell(name);
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1878 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1875 1879
1876 // Return the generated code. 1880 // Return the generated code.
1877 return GetCode(); 1881 return GetCode();
1878 } 1882 }
1879 1883
1880 1884
1881 #undef __ 1885 #undef __
1882 1886
1883 } } // namespace v8::internal 1887 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | src/ia32/stub-cache-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698