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

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

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