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

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

Issue 2586001: Add test_b(Operand, immediate) to ia32 assembler, and use it where possible. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/ia32/ic-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 // Check if the object in register heap_object is a string. Afterwards the 182 // Check if the object in register heap_object is a string. Afterwards the
183 // register map contains the object map and the register instance_type 183 // register map contains the object map and the register instance_type
184 // contains the instance_type. The registers map and instance_type can be the 184 // contains the instance_type. The registers map and instance_type can be the
185 // same in which case it contains the instance type afterwards. Either of the 185 // same in which case it contains the instance type afterwards. Either of the
186 // registers map and instance_type can be the same as heap_object. 186 // registers map and instance_type can be the same as heap_object.
187 Condition IsObjectStringType(Register heap_object, 187 Condition IsObjectStringType(Register heap_object,
188 Register map, 188 Register map,
189 Register instance_type); 189 Register instance_type);
190 190
191 // Check if a heap object's type is in the JSObject range, not including
192 // JSFunction. The object's map will be loaded in the map register.
193 // Any or all of the three registers may be the same.
194 // The contents of the scratch register will always be overwritten.
195 void IsObjectJSObjectType(Register heap_object,
196 Register map,
197 Register scratch,
198 Label* fail);
199
200 // The contents of the scratch register will be overwritten.
201 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail);
202
191 // FCmp is similar to integer cmp, but requires unsigned 203 // FCmp is similar to integer cmp, but requires unsigned
192 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). 204 // jcc instructions (je, ja, jae, jb, jbe, je, and jz).
193 void FCmp(); 205 void FCmp();
194 206
195 // Smi tagging support. 207 // Smi tagging support.
196 void SmiTag(Register reg) { 208 void SmiTag(Register reg) {
197 ASSERT(kSmiTag == 0); 209 ASSERT(kSmiTag == 0);
198 ASSERT(kSmiTagSize == 1); 210 ASSERT(kSmiTagSize == 1);
199 add(reg, Operand(reg)); 211 add(reg, Operand(reg));
200 } 212 }
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 } \ 608 } \
597 masm-> 609 masm->
598 #else 610 #else
599 #define ACCESS_MASM(masm) masm-> 611 #define ACCESS_MASM(masm) masm->
600 #endif 612 #endif
601 613
602 614
603 } } // namespace v8::internal 615 } } // namespace v8::internal
604 616
605 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 617 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698