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

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

Issue 10170030: Implement tracking and optimizations of packed arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 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-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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 void LoadTransitionedArrayMapConditional( 812 void LoadTransitionedArrayMapConditional(
813 ElementsKind expected_kind, 813 ElementsKind expected_kind,
814 ElementsKind transitioned_kind, 814 ElementsKind transitioned_kind,
815 Register map_in_out, 815 Register map_in_out,
816 Register scratch, 816 Register scratch,
817 Label* no_map_match); 817 Label* no_map_match);
818 818
819 // Load the initial map for new Arrays from a JSFunction. 819 // Load the initial map for new Arrays from a JSFunction.
820 void LoadInitialArrayMap(Register function_in, 820 void LoadInitialArrayMap(Register function_in,
821 Register scratch, 821 Register scratch,
822 Register map_out); 822 Register map_out,
823 bool can_have_holes);
823 824
824 void LoadGlobalFunction(int index, Register function); 825 void LoadGlobalFunction(int index, Register function);
825 826
826 // Load the initial map from the global function. The registers 827 // Load the initial map from the global function. The registers
827 // function and map can be the same, function is then overwritten. 828 // function and map can be the same, function is then overwritten.
828 void LoadGlobalFunctionInitialMap(Register function, 829 void LoadGlobalFunctionInitialMap(Register function,
829 Register map, 830 Register map,
830 Register scratch); 831 Register scratch);
831 832
832 void InitializeRootRegister() { 833 void InitializeRootRegister() {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 Label* fail); 955 Label* fail);
955 956
956 // Check if a map for a JSObject indicates that the object can have both smi 957 // Check if a map for a JSObject indicates that the object can have both smi
957 // and HeapObject elements. Jump to the specified label if it does not. 958 // and HeapObject elements. Jump to the specified label if it does not.
958 void CheckFastObjectElements(Register map, 959 void CheckFastObjectElements(Register map,
959 Register scratch, 960 Register scratch,
960 Label* fail); 961 Label* fail);
961 962
962 // Check if a map for a JSObject indicates that the object has fast smi only 963 // Check if a map for a JSObject indicates that the object has fast smi only
963 // elements. Jump to the specified label if it does not. 964 // elements. Jump to the specified label if it does not.
964 void CheckFastSmiOnlyElements(Register map, 965 void CheckFastSmiElements(Register map,
965 Register scratch, 966 Register scratch,
966 Label* fail); 967 Label* fail);
967 968
968 // 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
969 // 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
970 // the FastDoubleElements array elements. Otherwise jump to fail, in which 971 // the FastDoubleElements array elements. Otherwise jump to fail, in which
971 // case scratch2, scratch3 and scratch4 are unmodified. 972 // case scratch2, scratch3 and scratch4 are unmodified.
972 void StoreNumberToDoubleElements(Register value_reg, 973 void StoreNumberToDoubleElements(Register value_reg,
973 Register key_reg, 974 Register key_reg,
974 Register receiver_reg, 975 Register receiver_reg,
975 Register elements_reg, 976 Register elements_reg,
976 Register scratch1, 977 Register scratch1,
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1524 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1524 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1525 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1525 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1526 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1526 #else 1527 #else
1527 #define ACCESS_MASM(masm) masm-> 1528 #define ACCESS_MASM(masm) masm->
1528 #endif 1529 #endif
1529 1530
1530 } } // namespace v8::internal 1531 } } // namespace v8::internal
1531 1532
1532 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1533 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698