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

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

Issue 10536130: MIPS: Add negative lookups to polymorphic loads in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 // "branch_to" if the result of the comparison is "cond". If multiple map 985 // "branch_to" if the result of the comparison is "cond". If multiple map
986 // compares are required, the compare sequences branches to early_success. 986 // compares are required, the compare sequences branches to early_success.
987 void CompareMapAndBranch(Register obj, 987 void CompareMapAndBranch(Register obj,
988 Register scratch, 988 Register scratch,
989 Handle<Map> map, 989 Handle<Map> map,
990 Label* early_success, 990 Label* early_success,
991 Condition cond, 991 Condition cond,
992 Label* branch_to, 992 Label* branch_to,
993 CompareMapMode mode = REQUIRE_EXACT_MAP); 993 CompareMapMode mode = REQUIRE_EXACT_MAP);
994 994
995 // As above, but the map of the object is already loaded into the register
996 // which is preserved by the code generated.
997 void CompareMapAndBranch(Register obj_map,
998 Handle<Map> map,
999 Label* early_success,
1000 Condition cond,
1001 Label* branch_to,
1002 CompareMapMode mode = REQUIRE_EXACT_MAP);
1003
995 // Check if the map of an object is equal to a specified map and branch to 1004 // Check if the map of an object is equal to a specified map and branch to
996 // label if not. Skip the smi check if not required (object is known to be a 1005 // label if not. Skip the smi check if not required (object is known to be a
997 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 1006 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
998 // against maps that are ElementsKind transition maps of the specificed map. 1007 // against maps that are ElementsKind transition maps of the specificed map.
999 void CheckMap(Register obj, 1008 void CheckMap(Register obj,
1000 Register scratch, 1009 Register scratch,
1001 Handle<Map> map, 1010 Handle<Map> map,
1002 Label* fail, 1011 Label* fail,
1003 SmiCheckType smi_check_type, 1012 SmiCheckType smi_check_type,
1004 CompareMapMode mode = REQUIRE_EXACT_MAP); 1013 CompareMapMode mode = REQUIRE_EXACT_MAP);
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1533 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1525 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1534 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1526 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1535 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1527 #else 1536 #else
1528 #define ACCESS_MASM(masm) masm-> 1537 #define ACCESS_MASM(masm) masm->
1529 #endif 1538 #endif
1530 1539
1531 } } // namespace v8::internal 1540 } } // namespace v8::internal
1532 1541
1533 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1542 #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