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

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

Issue 9015020: Make sure transitioned arrays efficiently call builtin Array functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tweaks Created 8 years, 11 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
OLDNEW
1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 // Check to see if maybe_number can be stored as a double in 882 // Check to see if maybe_number can be stored as a double in
883 // FastDoubleElements. If it can, store it at the index specified by index in 883 // FastDoubleElements. If it can, store it at the index specified by index in
884 // the FastDoubleElements array elements, otherwise jump to fail. Note that 884 // the FastDoubleElements array elements, otherwise jump to fail. Note that
885 // index must not be smi-tagged. 885 // index must not be smi-tagged.
886 void StoreNumberToDoubleElements(Register maybe_number, 886 void StoreNumberToDoubleElements(Register maybe_number,
887 Register elements, 887 Register elements,
888 Register index, 888 Register index,
889 XMMRegister xmm_scratch, 889 XMMRegister xmm_scratch,
890 Label* fail); 890 Label* fail);
891 891
892 // Check if the map of an object is equal to a specified map and 892 // Check if the map of an object is equal to a specified map and branch to
893 // branch to label if not. Skip the smi check if not required 893 // label if not. Skip the smi check if not required (object is known to be a
894 // (object is known to be a heap object) 894 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
895 // against maps that are ElementsKind transition maps of the specificed map.
895 void CheckMap(Register obj, 896 void CheckMap(Register obj,
896 Handle<Map> map, 897 Handle<Map> map,
897 Label* fail, 898 Label* fail,
898 SmiCheckType smi_check_type); 899 SmiCheckType smi_check_type,
900 MapCheckMode mode = REQUIRE_EXACT_MAP);
899 901
900 // Check if the map of an object is equal to a specified map and branch to a 902 // Check if the map of an object is equal to a specified map and branch to a
901 // specified target if equal. Skip the smi check if not required (object is 903 // specified target if equal. Skip the smi check if not required (object is
902 // known to be a heap object) 904 // known to be a heap object)
903 void DispatchMap(Register obj, 905 void DispatchMap(Register obj,
904 Handle<Map> map, 906 Handle<Map> map,
905 Handle<Code> success, 907 Handle<Code> success,
906 SmiCheckType smi_check_type); 908 SmiCheckType smi_check_type);
907 909
908 // Check if the object in register heap_object is a string. Afterwards the 910 // Check if the object in register heap_object is a string. Afterwards the
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 masm->popfd(); \ 1438 masm->popfd(); \
1437 } \ 1439 } \
1438 masm-> 1440 masm->
1439 #else 1441 #else
1440 #define ACCESS_MASM(masm) masm-> 1442 #define ACCESS_MASM(masm) masm->
1441 #endif 1443 #endif
1442 1444
1443 } } // namespace v8::internal 1445 } } // namespace v8::internal
1444 1446
1445 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1447 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698