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

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

Issue 7039004: Add enumeration to specify if smi check needed (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: move to common header Created 9 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/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 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 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ 28 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
29 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 29 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_
30 30
31 #include "assembler.h" 31 #include "assembler.h"
32 #include "v8globals.h"
32 33
33 namespace v8 { 34 namespace v8 {
34 namespace internal { 35 namespace internal {
35 36
36 // Flags used for the AllocateInNewSpace functions. 37 // Flags used for the AllocateInNewSpace functions.
37 enum AllocationFlags { 38 enum AllocationFlags {
38 // No special flags. 39 // No special flags.
39 NO_ALLOCATION_FLAGS = 0, 40 NO_ALLOCATION_FLAGS = 0,
40 // Return the pointer to the allocated already tagged as a heap object. 41 // Return the pointer to the allocated already tagged as a heap object.
41 TAG_OBJECT = 1 << 0, 42 TAG_OBJECT = 1 << 0,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 205
205 // Compare instance type for map. 206 // Compare instance type for map.
206 void CmpInstanceType(Register map, InstanceType type); 207 void CmpInstanceType(Register map, InstanceType type);
207 208
208 // Check if the map of an object is equal to a specified map and 209 // Check if the map of an object is equal to a specified map and
209 // branch to label if not. Skip the smi check if not required 210 // branch to label if not. Skip the smi check if not required
210 // (object is known to be a heap object) 211 // (object is known to be a heap object)
211 void CheckMap(Register obj, 212 void CheckMap(Register obj,
212 Handle<Map> map, 213 Handle<Map> map,
213 Label* fail, 214 Label* fail,
214 bool is_heap_object); 215 SmiCheckType smi_check_type);
215 216
216 // Check if the object in register heap_object is a string. Afterwards the 217 // Check if the object in register heap_object is a string. Afterwards the
217 // register map contains the object map and the register instance_type 218 // register map contains the object map and the register instance_type
218 // contains the instance_type. The registers map and instance_type can be the 219 // contains the instance_type. The registers map and instance_type can be the
219 // same in which case it contains the instance type afterwards. Either of the 220 // same in which case it contains the instance type afterwards. Either of the
220 // registers map and instance_type can be the same as heap_object. 221 // registers map and instance_type can be the same as heap_object.
221 Condition IsObjectStringType(Register heap_object, 222 Condition IsObjectStringType(Register heap_object,
222 Register map, 223 Register map,
223 Register instance_type); 224 Register instance_type);
224 225
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 } \ 746 } \
746 masm-> 747 masm->
747 #else 748 #else
748 #define ACCESS_MASM(masm) masm-> 749 #define ACCESS_MASM(masm) masm->
749 #endif 750 #endif
750 751
751 752
752 } } // namespace v8::internal 753 } } // namespace v8::internal
753 754
754 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 755 #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