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

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

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: merge with latest 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
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void Set(Register dst, const Immediate& x); 194 void Set(Register dst, const Immediate& x);
195 void Set(const Operand& dst, const Immediate& x); 195 void Set(const Operand& dst, const Immediate& x);
196 196
197 // Compare object type for heap object. 197 // Compare object type for heap object.
198 // Incoming register is heap_object and outgoing register is map. 198 // Incoming register is heap_object and outgoing register is map.
199 void CmpObjectType(Register heap_object, InstanceType type, Register map); 199 void CmpObjectType(Register heap_object, InstanceType type, Register map);
200 200
201 // Compare instance type for map. 201 // Compare instance type for map.
202 void CmpInstanceType(Register map, InstanceType type); 202 void CmpInstanceType(Register map, InstanceType type);
203 203
204 // Check if the map of an object is equal to a specified map and 204 // Check if the map of an object is equal to a specified map and branch to
205 // branch to label if not. Skip the smi check if not required 205 // label if not. Skip the smi check if not required (object is known to be a
206 // (object is known to be a heap object) 206 // heap object)
207 void CheckMap(Register obj, 207 void CheckMap(Register obj,
208 Handle<Map> map, 208 Handle<Map> map,
209 Label* fail, 209 Label* fail,
210 bool is_heap_object); 210 bool is_heap_object);
211 211
212 // Check if the map of an object is equal to a specified map and branch to a
213 // specified target if equal. Skip the smi check if not required (object is
214 // known to be a heap object)
215 void DispatchMap(Register obj,
216 Handle<Map> map,
217 Handle<Code> success,
218 bool is_heap_object);
219
212 // Check if the object in register heap_object is a string. Afterwards the 220 // Check if the object in register heap_object is a string. Afterwards the
213 // register map contains the object map and the register instance_type 221 // register map contains the object map and the register instance_type
214 // contains the instance_type. The registers map and instance_type can be the 222 // contains the instance_type. The registers map and instance_type can be the
215 // same in which case it contains the instance type afterwards. Either of the 223 // same in which case it contains the instance type afterwards. Either of the
216 // registers map and instance_type can be the same as heap_object. 224 // registers map and instance_type can be the same as heap_object.
217 Condition IsObjectStringType(Register heap_object, 225 Condition IsObjectStringType(Register heap_object,
218 Register map, 226 Register map,
219 Register instance_type); 227 Register instance_type);
220 228
221 // Check if a heap object's type is in the JSObject range, not including 229 // Check if a heap object's type is in the JSObject range, not including
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } \ 789 } \
782 masm-> 790 masm->
783 #else 791 #else
784 #define ACCESS_MASM(masm) masm-> 792 #define ACCESS_MASM(masm) masm->
785 #endif 793 #endif
786 794
787 795
788 } } // namespace v8::internal 796 } } // namespace v8::internal
789 797
790 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 798 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698