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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: merge with latest Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 void CmpInstanceType(Register map, InstanceType type); 740 void CmpInstanceType(Register map, InstanceType type);
741 741
742 // Check if the map of an object is equal to a specified map and 742 // Check if the map of an object is equal to a specified map and
743 // branch to label if not. Skip the smi check if not required 743 // branch to label if not. Skip the smi check if not required
744 // (object is known to be a heap object) 744 // (object is known to be a heap object)
745 void CheckMap(Register obj, 745 void CheckMap(Register obj,
746 Handle<Map> map, 746 Handle<Map> map,
747 Label* fail, 747 Label* fail,
748 bool is_heap_object); 748 bool is_heap_object);
749 749
750 // Check if the map of an object is equal to a specified map and branch to a
751 // specified target if equal. Skip the smi check if not required (object is
752 // known to be a heap object)
753 void DispatchMap(Register obj,
754 Handle<Map> map,
755 Handle<Code> success,
756 bool is_heap_object);
757
750 // Check if the object in register heap_object is a string. Afterwards the 758 // Check if the object in register heap_object is a string. Afterwards the
751 // register map contains the object map and the register instance_type 759 // register map contains the object map and the register instance_type
752 // contains the instance_type. The registers map and instance_type can be the 760 // contains the instance_type. The registers map and instance_type can be the
753 // same in which case it contains the instance type afterwards. Either of the 761 // same in which case it contains the instance type afterwards. Either of the
754 // registers map and instance_type can be the same as heap_object. 762 // registers map and instance_type can be the same as heap_object.
755 Condition IsObjectStringType(Register heap_object, 763 Condition IsObjectStringType(Register heap_object,
756 Register map, 764 Register map,
757 Register instance_type); 765 Register instance_type);
758 766
759 // FCmp compares and pops the two values on top of the FPU stack. 767 // FCmp compares and pops the two values on top of the FPU stack.
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 Jump(adaptor, RelocInfo::CODE_TARGET); 2000 Jump(adaptor, RelocInfo::CODE_TARGET);
1993 } 2001 }
1994 bind(&invoke); 2002 bind(&invoke);
1995 } 2003 }
1996 } 2004 }
1997 2005
1998 2006
1999 } } // namespace v8::internal 2007 } } // namespace v8::internal
2000 2008
2001 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 2009 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« src/ic.cc ('K') | « src/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698