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

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

Issue 655002: Merge revisions 3777-3813 from bleding_edge to partial snapshots ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 10 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/full-codegen-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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void Set(Register dst, const Immediate& x); 134 void Set(Register dst, const Immediate& x);
135 void Set(const Operand& dst, const Immediate& x); 135 void Set(const Operand& dst, const Immediate& x);
136 136
137 // Compare object type for heap object. 137 // Compare object type for heap object.
138 // Incoming register is heap_object and outgoing register is map. 138 // Incoming register is heap_object and outgoing register is map.
139 void CmpObjectType(Register heap_object, InstanceType type, Register map); 139 void CmpObjectType(Register heap_object, InstanceType type, Register map);
140 140
141 // Compare instance type for map. 141 // Compare instance type for map.
142 void CmpInstanceType(Register map, InstanceType type); 142 void CmpInstanceType(Register map, InstanceType type);
143 143
144 // Check if the map of an object is equal to a specified map and
145 // branch to label if not. Skip the smi check if not required
146 // (object is known to be a heap object)
147 void CheckMap(Register obj,
148 Handle<Map> map,
149 Label* fail,
150 bool is_heap_object);
151
144 // Check if the object in register heap_object is a string. Afterwards the 152 // Check if the object in register heap_object is a string. Afterwards the
145 // register map contains the object map and the register instance_type 153 // register map contains the object map and the register instance_type
146 // contains the instance_type. The registers map and instance_type can be the 154 // contains the instance_type. The registers map and instance_type can be the
147 // same in which case it contains the instance type afterwards. Either of the 155 // same in which case it contains the instance type afterwards. Either of the
148 // registers map and instance_type can be the same as heap_object. 156 // registers map and instance_type can be the same as heap_object.
149 Condition IsObjectStringType(Register heap_object, 157 Condition IsObjectStringType(Register heap_object,
150 Register map, 158 Register map,
151 Register instance_type); 159 Register instance_type);
152 160
153 // FCmp is similar to integer cmp, but requires unsigned 161 // FCmp is similar to integer cmp, but requires unsigned
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 void JumpIfNotBothSequentialAsciiStrings(Register object1, 431 void JumpIfNotBothSequentialAsciiStrings(Register object1,
424 Register object2, 432 Register object2,
425 Register scratch1, 433 Register scratch1,
426 Register scratch2, 434 Register scratch2,
427 Label *on_not_flat_ascii_strings); 435 Label *on_not_flat_ascii_strings);
428 436
429 private: 437 private:
430 List<Unresolved> unresolved_; 438 List<Unresolved> unresolved_;
431 bool generating_stub_; 439 bool generating_stub_;
432 bool allow_stub_calls_; 440 bool allow_stub_calls_;
433 Handle<Object> code_object_; // This handle will be patched with the 441 // This handle will be patched with the code object on installation.
434 // code object on installation. 442 Handle<Object> code_object_;
435 443
436 // Helper functions for generating invokes. 444 // Helper functions for generating invokes.
437 void InvokePrologue(const ParameterCount& expected, 445 void InvokePrologue(const ParameterCount& expected,
438 const ParameterCount& actual, 446 const ParameterCount& actual,
439 Handle<Code> code_constant, 447 Handle<Code> code_constant,
440 const Operand& code_operand, 448 const Operand& code_operand,
441 Label* done, 449 Label* done,
442 InvokeFlag flag); 450 InvokeFlag flag);
443 451
444 // Prepares for a call or jump to a builtin by doing two things: 452 // Prepares for a call or jump to a builtin by doing two things:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 } \ 540 } \
533 masm-> 541 masm->
534 #else 542 #else
535 #define ACCESS_MASM(masm) masm-> 543 #define ACCESS_MASM(masm) masm->
536 #endif 544 #endif
537 545
538 546
539 } } // namespace v8::internal 547 } } // namespace v8::internal
540 548
541 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 549 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698