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

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

Issue 39337: Reduced the code sequence for testing for object type.... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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/ic-ia32.cc ('k') | src/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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // the unresolved list if the name does not resolve. 132 // the unresolved list if the name does not resolve.
133 void InvokeBuiltin(Builtins::JavaScript id, InvokeFlag flag); 133 void InvokeBuiltin(Builtins::JavaScript id, InvokeFlag flag);
134 134
135 // Store the code object for the given builtin in the target register. 135 // Store the code object for the given builtin in the target register.
136 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 136 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
137 137
138 // Expression support 138 // Expression support
139 void Set(Register dst, const Immediate& x); 139 void Set(Register dst, const Immediate& x);
140 void Set(const Operand& dst, const Immediate& x); 140 void Set(const Operand& dst, const Immediate& x);
141 141
142 // Compare object type for heap object.
143 // Incoming register is heap_object and outgoing register is map.
144 void CmpObjectType(Register heap_object, InstanceType type, Register map);
145
146 // Compare instance type for map.
147 void CmpInstanceType(Register map, InstanceType type);
148
142 // FCmp is similar to integer cmp, but requires unsigned 149 // FCmp is similar to integer cmp, but requires unsigned
143 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). 150 // jcc instructions (je, ja, jae, jb, jbe, je, and jz).
144 void FCmp(); 151 void FCmp();
145 152
146 // --------------------------------------------------------------------------- 153 // ---------------------------------------------------------------------------
147 // Exception handling 154 // Exception handling
148 155
149 // Push a new try handler and link into try handler chain. 156 // Push a new try handler and link into try handler chain.
150 // The return address must be pushed before calling this helper. 157 // The return address must be pushed before calling this helper.
151 // On exit, eax contains TOS (next_sp). 158 // On exit, eax contains TOS (next_sp).
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 static inline Operand FieldOperand(Register object, 339 static inline Operand FieldOperand(Register object,
333 Register index, 340 Register index,
334 ScaleFactor scale, 341 ScaleFactor scale,
335 int offset) { 342 int offset) {
336 return Operand(object, index, scale, offset - kHeapObjectTag); 343 return Operand(object, index, scale, offset - kHeapObjectTag);
337 } 344 }
338 345
339 } } // namespace v8::internal 346 } } // namespace v8::internal
340 347
341 #endif // V8_MACRO_ASSEMBLER_IA32_H_ 348 #endif // V8_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ic-ia32.cc ('k') | src/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698