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

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

Issue 11412120: MIPS: Support all fast elements kinds in the major array operations. Currently missing support for … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 void CheckFastSmiElements(Register map, 965 void CheckFastSmiElements(Register map,
966 Register scratch, 966 Register scratch,
967 Label* fail); 967 Label* fail);
968 968
969 // Check to see if maybe_number can be stored as a double in 969 // Check to see if maybe_number can be stored as a double in
970 // FastDoubleElements. If it can, store it at the index specified by key in 970 // FastDoubleElements. If it can, store it at the index specified by key in
971 // the FastDoubleElements array elements. Otherwise jump to fail, in which 971 // the FastDoubleElements array elements. Otherwise jump to fail, in which
972 // case scratch2, scratch3 and scratch4 are unmodified. 972 // case scratch2, scratch3 and scratch4 are unmodified.
973 void StoreNumberToDoubleElements(Register value_reg, 973 void StoreNumberToDoubleElements(Register value_reg,
974 Register key_reg, 974 Register key_reg,
975 Register receiver_reg,
976 // All regs below here overwritten. 975 // All regs below here overwritten.
977 Register elements_reg, 976 Register elements_reg,
978 Register scratch1, 977 Register scratch1,
979 Register scratch2, 978 Register scratch2,
980 Register scratch3, 979 Register scratch3,
981 Register scratch4, 980 Register scratch4,
982 Label* fail); 981 Label* fail,
982 int elements_offset = 0);
983 983
984 // Compare an object's map with the specified map and its transitioned 984 // Compare an object's map with the specified map and its transitioned
985 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Jumps to 985 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Jumps to
986 // "branch_to" if the result of the comparison is "cond". If multiple map 986 // "branch_to" if the result of the comparison is "cond". If multiple map
987 // compares are required, the compare sequences branches to early_success. 987 // compares are required, the compare sequences branches to early_success.
988 void CompareMapAndBranch(Register obj, 988 void CompareMapAndBranch(Register obj,
989 Register scratch, 989 Register scratch,
990 Handle<Map> map, 990 Handle<Map> map,
991 Label* early_success, 991 Label* early_success,
992 Condition cond, 992 Condition cond,
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1547 #else 1547 #else
1548 #define ACCESS_MASM(masm) masm-> 1548 #define ACCESS_MASM(masm) masm->
1549 #endif 1549 #endif
1550 1550
1551 } } // namespace v8::internal 1551 } } // namespace v8::internal
1552 1552
1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698