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

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

Issue 15948003: MIPS: Always require exact maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 1007
1008 // Compare an object's map with the specified map and its transitioned 1008 // Compare an object's map with the specified map and its transitioned
1009 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Jumps to 1009 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Jumps to
1010 // "branch_to" if the result of the comparison is "cond". If multiple map 1010 // "branch_to" if the result of the comparison is "cond". If multiple map
1011 // compares are required, the compare sequences branches to early_success. 1011 // compares are required, the compare sequences branches to early_success.
1012 void CompareMapAndBranch(Register obj, 1012 void CompareMapAndBranch(Register obj,
1013 Register scratch, 1013 Register scratch,
1014 Handle<Map> map, 1014 Handle<Map> map,
1015 Label* early_success, 1015 Label* early_success,
1016 Condition cond, 1016 Condition cond,
1017 Label* branch_to, 1017 Label* branch_to);
1018 CompareMapMode mode = REQUIRE_EXACT_MAP);
1019 1018
1020 // As above, but the map of the object is already loaded into the register 1019 // As above, but the map of the object is already loaded into the register
1021 // which is preserved by the code generated. 1020 // which is preserved by the code generated.
1022 void CompareMapAndBranch(Register obj_map, 1021 void CompareMapAndBranch(Register obj_map,
1023 Handle<Map> map, 1022 Handle<Map> map,
1024 Label* early_success, 1023 Label* early_success,
1025 Condition cond, 1024 Condition cond,
1026 Label* branch_to, 1025 Label* branch_to);
1027 CompareMapMode mode = REQUIRE_EXACT_MAP);
1028 1026
1029 // Check if the map of an object is equal to a specified map and branch to 1027 // Check if the map of an object is equal to a specified map and branch to
1030 // label if not. Skip the smi check if not required (object is known to be a 1028 // label if not. Skip the smi check if not required (object is known to be a
1031 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 1029 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
1032 // against maps that are ElementsKind transition maps of the specificed map. 1030 // against maps that are ElementsKind transition maps of the specificed map.
1033 void CheckMap(Register obj, 1031 void CheckMap(Register obj,
1034 Register scratch, 1032 Register scratch,
1035 Handle<Map> map, 1033 Handle<Map> map,
1036 Label* fail, 1034 Label* fail,
1037 SmiCheckType smi_check_type, 1035 SmiCheckType smi_check_type);
1038 CompareMapMode mode = REQUIRE_EXACT_MAP);
1039 1036
1040 1037
1041 void CheckMap(Register obj, 1038 void CheckMap(Register obj,
1042 Register scratch, 1039 Register scratch,
1043 Heap::RootListIndex index, 1040 Heap::RootListIndex index,
1044 Label* fail, 1041 Label* fail,
1045 SmiCheckType smi_check_type); 1042 SmiCheckType smi_check_type);
1046 1043
1047 // Check if the map of an object is equal to a specified map and branch to a 1044 // Check if the map of an object is equal to a specified map and branch to a
1048 // specified target if equal. Skip the smi check if not required (object is 1045 // specified target if equal. Skip the smi check if not required (object is
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1582 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1586 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1583 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1587 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1584 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1588 #else 1585 #else
1589 #define ACCESS_MASM(masm) masm-> 1586 #define ACCESS_MASM(masm) masm->
1590 #endif 1587 #endif
1591 1588
1592 } } // namespace v8::internal 1589 } } // namespace v8::internal
1593 1590
1594 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1591 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698