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

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

Issue 7901016: Basic support for tracking smi-only arrays on ia32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ready to land Created 9 years, 3 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 2011 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 // Compare instance type for map. 306 // Compare instance type for map.
307 void CmpInstanceType(Register map, InstanceType type); 307 void CmpInstanceType(Register map, InstanceType type);
308 308
309 // Check if a map for a JSObject indicates that the object has fast elements. 309 // Check if a map for a JSObject indicates that the object has fast elements.
310 // Jump to the specified label if it does not. 310 // Jump to the specified label if it does not.
311 void CheckFastElements(Register map, 311 void CheckFastElements(Register map,
312 Label* fail, 312 Label* fail,
313 Label::Distance distance = Label::kFar); 313 Label::Distance distance = Label::kFar);
314 314
315 // Check if a map for a JSObject indicates that the object can have both smi
316 // and HeapObject elements. Jump to the specified label if it does not.
317 void CheckFastObjectElements(Register map,
318 Label* fail,
319 Label::Distance distance = Label::kFar);
320
321 // Check if a map for a JSObject indicates that the object has fast smi only
322 // elements. Jump to the specified label if it does not.
323 void CheckFastSmiOnlyElements(Register map,
324 Label* fail,
325 Label::Distance distance = Label::kFar);
326
315 // Check if the map of an object is equal to a specified map and branch to 327 // Check if the map of an object is equal to a specified map and branch to
316 // label if not. Skip the smi check if not required (object is known to be a 328 // label if not. Skip the smi check if not required (object is known to be a
317 // heap object) 329 // heap object)
318 void CheckMap(Register obj, 330 void CheckMap(Register obj,
319 Handle<Map> map, 331 Handle<Map> map,
320 Label* fail, 332 Label* fail,
321 SmiCheckType smi_check_type); 333 SmiCheckType smi_check_type);
322 334
323 // Check if the map of an object is equal to a specified map and branch to a 335 // Check if the map of an object is equal to a specified map and branch to a
324 // specified target if equal. Skip the smi check if not required (object is 336 // specified target if equal. Skip the smi check if not required (object is
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 } \ 934 } \
923 masm-> 935 masm->
924 #else 936 #else
925 #define ACCESS_MASM(masm) masm-> 937 #define ACCESS_MASM(masm) masm->
926 #endif 938 #endif
927 939
928 940
929 } } // namespace v8::internal 941 } } // namespace v8::internal
930 942
931 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 943 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698