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

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

Issue 7036016: Reland 7917: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes to make re-land work 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
« 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 27 matching lines...) Expand all
38 enum AllocationFlags { 38 enum AllocationFlags {
39 // No special flags. 39 // No special flags.
40 NO_ALLOCATION_FLAGS = 0, 40 NO_ALLOCATION_FLAGS = 0,
41 // Return the pointer to the allocated already tagged as a heap object. 41 // Return the pointer to the allocated already tagged as a heap object.
42 TAG_OBJECT = 1 << 0, 42 TAG_OBJECT = 1 << 0,
43 // The content of the result register already contains the allocation top in 43 // The content of the result register already contains the allocation top in
44 // new space. 44 // new space.
45 RESULT_CONTAINS_TOP = 1 << 1 45 RESULT_CONTAINS_TOP = 1 << 1
46 }; 46 };
47 47
48
48 // Default scratch register used by MacroAssembler (and other code that needs 49 // Default scratch register used by MacroAssembler (and other code that needs
49 // a spare register). The register isn't callee save, and not used by the 50 // a spare register). The register isn't callee save, and not used by the
50 // function calling convention. 51 // function calling convention.
51 static const Register kScratchRegister = { 10 }; // r10. 52 static const Register kScratchRegister = { 10 }; // r10.
52 static const Register kSmiConstantRegister = { 12 }; // r12 (callee save). 53 static const Register kSmiConstantRegister = { 12 }; // r12 (callee save).
53 static const Register kRootRegister = { 13 }; // r13 (callee save). 54 static const Register kRootRegister = { 13 }; // r13 (callee save).
54 // Value of smi in kSmiConstantRegister. 55 // Value of smi in kSmiConstantRegister.
55 static const int kSmiConstantRegisterValue = 1; 56 static const int kSmiConstantRegisterValue = 1;
56 // Actual value of root register is offset from the root array's start 57 // Actual value of root register is offset from the root array's start
57 // to take advantage of negitive 8-bit displacement values. 58 // to take advantage of negitive 8-bit displacement values.
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 void CmpInstanceType(Register map, InstanceType type); 746 void CmpInstanceType(Register map, InstanceType type);
746 747
747 // Check if the map of an object is equal to a specified map and 748 // Check if the map of an object is equal to a specified map and
748 // branch to label if not. Skip the smi check if not required 749 // branch to label if not. Skip the smi check if not required
749 // (object is known to be a heap object) 750 // (object is known to be a heap object)
750 void CheckMap(Register obj, 751 void CheckMap(Register obj,
751 Handle<Map> map, 752 Handle<Map> map,
752 Label* fail, 753 Label* fail,
753 SmiCheckType smi_check_type); 754 SmiCheckType smi_check_type);
754 755
756 // Check if the map of an object is equal to a specified map and branch to a
757 // specified target if equal. Skip the smi check if not required (object is
758 // known to be a heap object)
759 void DispatchMap(Register obj,
760 Handle<Map> map,
761 Handle<Code> success,
762 SmiCheckType smi_check_type);
763
755 // Check if the object in register heap_object is a string. Afterwards the 764 // Check if the object in register heap_object is a string. Afterwards the
756 // register map contains the object map and the register instance_type 765 // register map contains the object map and the register instance_type
757 // contains the instance_type. The registers map and instance_type can be the 766 // contains the instance_type. The registers map and instance_type can be the
758 // same in which case it contains the instance type afterwards. Either of the 767 // same in which case it contains the instance type afterwards. Either of the
759 // registers map and instance_type can be the same as heap_object. 768 // registers map and instance_type can be the same as heap_object.
760 Condition IsObjectStringType(Register heap_object, 769 Condition IsObjectStringType(Register heap_object,
761 Register map, 770 Register map,
762 Register instance_type); 771 Register instance_type);
763 772
764 // FCmp compares and pops the two values on top of the FPU stack. 773 // FCmp compares and pops the two values on top of the FPU stack.
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 masm->popfd(); \ 1270 masm->popfd(); \
1262 } \ 1271 } \
1263 masm-> 1272 masm->
1264 #else 1273 #else
1265 #define ACCESS_MASM(masm) masm-> 1274 #define ACCESS_MASM(masm) masm->
1266 #endif 1275 #endif
1267 1276
1268 } } // namespace v8::internal 1277 } } // namespace v8::internal
1269 1278
1270 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1279 #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