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

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

Issue 577273002: [arm64] cleanup heap numbers detection (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 // Abort execution if argument is not a name, enabled via --debug-code. 939 // Abort execution if argument is not a name, enabled via --debug-code.
940 void AssertName(Register object); 940 void AssertName(Register object);
941 941
942 // Abort execution if argument is not undefined or an AllocationSite, enabled 942 // Abort execution if argument is not undefined or an AllocationSite, enabled
943 // via --debug-code. 943 // via --debug-code.
944 void AssertUndefinedOrAllocationSite(Register object, Register scratch); 944 void AssertUndefinedOrAllocationSite(Register object, Register scratch);
945 945
946 // Abort execution if argument is not a string, enabled via --debug-code. 946 // Abort execution if argument is not a string, enabled via --debug-code.
947 void AssertString(Register object); 947 void AssertString(Register object);
948 948
949 void JumpForHeapNumber(Register object, 949 void JumpIfHeapNumber(Register object, Label* on_heap_number,
950 Register heap_number_map, 950 SmiCheckType smi_check_type = DONT_DO_SMI_CHECK);
951 Label* on_heap_number, 951 void JumpIfNotHeapNumber(Register object, Label* on_not_heap_number,
952 Label* on_not_heap_number = NULL); 952 SmiCheckType smi_check_type = DONT_DO_SMI_CHECK);
953 void JumpIfHeapNumber(Register object,
954 Label* on_heap_number,
955 Register heap_number_map = NoReg);
956 void JumpIfNotHeapNumber(Register object,
957 Label* on_not_heap_number,
958 Register heap_number_map = NoReg);
959 953
960 // Sets the vs flag if the input is -0.0. 954 // Sets the vs flag if the input is -0.0.
961 void TestForMinusZero(DoubleRegister input); 955 void TestForMinusZero(DoubleRegister input);
962 956
963 // Jump to label if the input double register contains -0.0. 957 // Jump to label if the input double register contains -0.0.
964 void JumpIfMinusZero(DoubleRegister input, Label* on_negative_zero); 958 void JumpIfMinusZero(DoubleRegister input, Label* on_negative_zero);
965 959
966 // Jump to label if the input integer register contains the double precision 960 // Jump to label if the input integer register contains the double precision
967 // floating point representation of -0.0. 961 // floating point representation of -0.0.
968 void JumpIfMinusZero(Register input, Label* on_negative_zero); 962 void JumpIfMinusZero(Register input, Label* on_negative_zero);
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 1435
1442 // Compare instance type in a map. map contains a valid map object whose 1436 // Compare instance type in a map. map contains a valid map object whose
1443 // object type should be compared with the given type. This both 1437 // object type should be compared with the given type. This both
1444 // sets the flags and leaves the object type in the type_reg register. 1438 // sets the flags and leaves the object type in the type_reg register.
1445 void CompareInstanceType(Register map, 1439 void CompareInstanceType(Register map,
1446 Register type_reg, 1440 Register type_reg,
1447 InstanceType type); 1441 InstanceType type);
1448 1442
1449 // Compare an object's map with the specified map. Condition flags are set 1443 // Compare an object's map with the specified map. Condition flags are set
1450 // with result of map compare. 1444 // with result of map compare.
1451 void CompareMap(Register obj, 1445 void CompareObjectMap(Register obj, Heap::RootListIndex index);
1452 Register scratch, 1446
1453 Handle<Map> map); 1447 // Compare an object's map with the specified map. Condition flags are set
1448 // with result of map compare.
1449 void CompareObjectMap(Register obj, Register scratch, Handle<Map> map);
1454 1450
1455 // As above, but the map of the object is already loaded into the register 1451 // As above, but the map of the object is already loaded into the register
1456 // which is preserved by the code generated. 1452 // which is preserved by the code generated.
1457 void CompareMap(Register obj_map, 1453 void CompareMap(Register obj_map,
1458 Handle<Map> map); 1454 Handle<Map> map);
1459 1455
1460 // Check if the map of an object is equal to a specified map and branch to 1456 // Check if the map of an object is equal to a specified map and branch to
1461 // label if not. Skip the smi check if not required (object is known to be a 1457 // label if not. Skip the smi check if not required (object is known to be a
1462 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 1458 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
1463 // against maps that are ElementsKind transition maps of the specified map. 1459 // against maps that are ElementsKind transition maps of the specified map.
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2332 #error "Unsupported option" 2328 #error "Unsupported option"
2333 #define CODE_COVERAGE_STRINGIFY(x) #x 2329 #define CODE_COVERAGE_STRINGIFY(x) #x
2334 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2330 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2335 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2331 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2336 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2332 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2337 #else 2333 #else
2338 #define ACCESS_MASM(masm) masm-> 2334 #define ACCESS_MASM(masm) masm->
2339 #endif 2335 #endif
2340 2336
2341 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ 2337 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698