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

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

Issue 6966041: Add complete ElementKind information directly to Map for objects with elements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: implement all platforms Created 9 years, 6 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 // Compare object type for heap object. 746 // Compare object type for heap object.
747 // Always use unsigned comparisons: above and below, not less and greater. 747 // Always use unsigned comparisons: above and below, not less and greater.
748 // Incoming register is heap_object and outgoing register is map. 748 // Incoming register is heap_object and outgoing register is map.
749 // They may be the same register, and may be kScratchRegister. 749 // They may be the same register, and may be kScratchRegister.
750 void CmpObjectType(Register heap_object, InstanceType type, Register map); 750 void CmpObjectType(Register heap_object, InstanceType type, Register map);
751 751
752 // Compare instance type for map. 752 // Compare instance type for map.
753 // Always use unsigned comparisons: above and below, not less and greater. 753 // Always use unsigned comparisons: above and below, not less and greater.
754 void CmpInstanceType(Register map, InstanceType type); 754 void CmpInstanceType(Register map, InstanceType type);
755 755
756 // Check if a map for a JSObject indicates that the object has fast elements.
757 // Jump to the specified label if it does not.
758 void CheckFastElements(Register map,
759 Label* fail,
760 Label::Distance distance = Label::kFar);
761
756 // Check if the map of an object is equal to a specified map and 762 // Check if the map of an object is equal to a specified map and
757 // branch to label if not. Skip the smi check if not required 763 // branch to label if not. Skip the smi check if not required
758 // (object is known to be a heap object) 764 // (object is known to be a heap object)
759 void CheckMap(Register obj, 765 void CheckMap(Register obj,
760 Handle<Map> map, 766 Handle<Map> map,
761 Label* fail, 767 Label* fail,
762 SmiCheckType smi_check_type); 768 SmiCheckType smi_check_type);
763 769
764 // Check if the map of an object is equal to a specified map and branch to a 770 // Check if the map of an object is equal to a specified map and branch to a
765 // specified target if equal. Skip the smi check if not required (object is 771 // specified target if equal. Skip the smi check if not required (object is
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 masm->popfd(); \ 1287 masm->popfd(); \
1282 } \ 1288 } \
1283 masm-> 1289 masm->
1284 #else 1290 #else
1285 #define ACCESS_MASM(masm) masm-> 1291 #define ACCESS_MASM(masm) masm->
1286 #endif 1292 #endif
1287 1293
1288 } } // namespace v8::internal 1294 } } // namespace v8::internal
1289 1295
1290 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1296 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« src/objects.h ('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