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

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

Issue 148593004: A64: Synchronize with r18084. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 Label* miss, 838 Label* miss,
839 bool miss_on_bound_function = false); 839 bool miss_on_bound_function = false);
840 840
841 // Compare object type for heap object. heap_object contains a non-Smi 841 // Compare object type for heap object. heap_object contains a non-Smi
842 // whose object type should be compared with the given type. This both 842 // whose object type should be compared with the given type. This both
843 // sets the flags and leaves the object type in the type_reg register. 843 // sets the flags and leaves the object type in the type_reg register.
844 // It leaves the map in the map register (unless the type_reg and map register 844 // It leaves the map in the map register (unless the type_reg and map register
845 // are the same register). It leaves the heap object in the heap_object 845 // are the same register). It leaves the heap object in the heap_object
846 // register unless the heap_object register is the same register as one of the 846 // register unless the heap_object register is the same register as one of the
847 // other registers. 847 // other registers.
848 // Type_reg can be no_reg. In that case ip is used.
848 void CompareObjectType(Register heap_object, 849 void CompareObjectType(Register heap_object,
849 Register map, 850 Register map,
850 Register type_reg, 851 Register type_reg,
851 InstanceType type); 852 InstanceType type);
852 853
854 // Compare object type for heap object. Branch to false_label if type
855 // is lower than min_type or greater than max_type.
856 // Load map into the register map.
857 void CheckObjectTypeRange(Register heap_object,
858 Register map,
859 InstanceType min_type,
860 InstanceType max_type,
861 Label* false_label);
862
853 // Compare instance type in a map. map contains a valid map object whose 863 // Compare instance type in a map. map contains a valid map object whose
854 // object type should be compared with the given type. This both 864 // object type should be compared with the given type. This both
855 // sets the flags and leaves the object type in the type_reg register. 865 // sets the flags and leaves the object type in the type_reg register.
856 void CompareInstanceType(Register map, 866 void CompareInstanceType(Register map,
857 Register type_reg, 867 Register type_reg,
858 InstanceType type); 868 InstanceType type);
859 869
860 870
861 // Check if a map for a JSObject indicates that the object has fast elements. 871 // Check if a map for a JSObject indicates that the object has fast elements.
862 // Jump to the specified label if it does not. 872 // Jump to the specified label if it does not.
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 // Call a runtime routine. 1057 // Call a runtime routine.
1048 void CallRuntime(const Runtime::Function* f, 1058 void CallRuntime(const Runtime::Function* f,
1049 int num_arguments, 1059 int num_arguments,
1050 SaveFPRegsMode save_doubles = kDontSaveFPRegs); 1060 SaveFPRegsMode save_doubles = kDontSaveFPRegs);
1051 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { 1061 void CallRuntimeSaveDoubles(Runtime::FunctionId id) {
1052 const Runtime::Function* function = Runtime::FunctionForId(id); 1062 const Runtime::Function* function = Runtime::FunctionForId(id);
1053 CallRuntime(function, function->nargs, kSaveFPRegs); 1063 CallRuntime(function, function->nargs, kSaveFPRegs);
1054 } 1064 }
1055 1065
1056 // Convenience function: Same as above, but takes the fid instead. 1066 // Convenience function: Same as above, but takes the fid instead.
1057 void CallRuntime(Runtime::FunctionId id, int num_arguments) { 1067 void CallRuntime(Runtime::FunctionId id,
1058 CallRuntime(Runtime::FunctionForId(id), num_arguments); 1068 int num_arguments,
1069 SaveFPRegsMode save_doubles = kDontSaveFPRegs) {
1070 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles);
1059 } 1071 }
1060 1072
1061 // Convenience function: call an external reference. 1073 // Convenience function: call an external reference.
1062 void CallExternalReference(const ExternalReference& ext, 1074 void CallExternalReference(const ExternalReference& ext,
1063 int num_arguments); 1075 int num_arguments);
1064 1076
1065 // Tail call of a runtime routine (jump). 1077 // Tail call of a runtime routine (jump).
1066 // Like JumpToExternalReference, but also takes care of passing the number 1078 // Like JumpToExternalReference, but also takes care of passing the number
1067 // of parameters. 1079 // of parameters.
1068 void TailCallExternalReference(const ExternalReference& ext, 1080 void TailCallExternalReference(const ExternalReference& ext,
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1539 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1528 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1540 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1529 #else 1541 #else
1530 #define ACCESS_MASM(masm) masm-> 1542 #define ACCESS_MASM(masm) masm->
1531 #endif 1543 #endif
1532 1544
1533 1545
1534 } } // namespace v8::internal 1546 } } // namespace v8::internal
1535 1547
1536 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1548 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698