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

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

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments (and rebased) 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
« no previous file with comments | « src/runtime.cc ('k') | src/x64/macro-assembler-x64.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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 Label::Distance distance = Label::kFar); 888 Label::Distance distance = Label::kFar);
889 889
890 // Check to see if maybe_number can be stored as a double in 890 // Check to see if maybe_number can be stored as a double in
891 // FastDoubleElements. If it can, store it at the index specified by index in 891 // FastDoubleElements. If it can, store it at the index specified by index in
892 // the FastDoubleElements array elements, otherwise jump to fail. Note that 892 // the FastDoubleElements array elements, otherwise jump to fail. Note that
893 // index must not be smi-tagged. 893 // index must not be smi-tagged.
894 void StoreNumberToDoubleElements(Register maybe_number, 894 void StoreNumberToDoubleElements(Register maybe_number,
895 Register elements, 895 Register elements,
896 Register index, 896 Register index,
897 XMMRegister xmm_scratch, 897 XMMRegister xmm_scratch,
898 Label* fail); 898 Label* fail,
899 int elements_offset = 0);
899 900
900 // Compare an object's map with the specified map and its transitioned 901 // Compare an object's map with the specified map and its transitioned
901 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with 902 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with
902 // result of map compare. If multiple map compares are required, the compare 903 // result of map compare. If multiple map compares are required, the compare
903 // sequences branches to early_success. 904 // sequences branches to early_success.
904 void CompareMap(Register obj, 905 void CompareMap(Register obj,
905 Handle<Map> map, 906 Handle<Map> map,
906 Label* early_success, 907 Label* early_success,
907 CompareMapMode mode = REQUIRE_EXACT_MAP); 908 CompareMapMode mode = REQUIRE_EXACT_MAP);
908 909
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 masm->popfd(); \ 1497 masm->popfd(); \
1497 } \ 1498 } \
1498 masm-> 1499 masm->
1499 #else 1500 #else
1500 #define ACCESS_MASM(masm) masm-> 1501 #define ACCESS_MASM(masm) masm->
1501 #endif 1502 #endif
1502 1503
1503 } } // namespace v8::internal 1504 } } // namespace v8::internal
1504 1505
1505 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1506 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698