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

Side by Side Diff: src/x64/macro-assembler-x64.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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 // Compare object type for heap object. 453 // Compare object type for heap object.
454 // Always use unsigned comparisons: above and below, not less and greater. 454 // Always use unsigned comparisons: above and below, not less and greater.
455 // Incoming register is heap_object and outgoing register is map. 455 // Incoming register is heap_object and outgoing register is map.
456 // They may be the same register, and may be kScratchRegister. 456 // They may be the same register, and may be kScratchRegister.
457 void CmpObjectType(Register heap_object, InstanceType type, Register map); 457 void CmpObjectType(Register heap_object, InstanceType type, Register map);
458 458
459 // Compare instance type for map. 459 // Compare instance type for map.
460 // Always use unsigned comparisons: above and below, not less and greater. 460 // Always use unsigned comparisons: above and below, not less and greater.
461 void CmpInstanceType(Register map, InstanceType type); 461 void CmpInstanceType(Register map, InstanceType type);
462 462
463 // Check if the map of an object is equal to a specified map and
464 // branch to label if not. Skip the smi check if not required
465 // (object is known to be a heap object)
466 void CheckMap(Register obj,
467 Handle<Map> map,
468 Label* fail,
469 bool is_heap_object);
470
463 // Check if the object in register heap_object is a string. Afterwards the 471 // Check if the object in register heap_object is a string. Afterwards the
464 // register map contains the object map and the register instance_type 472 // register map contains the object map and the register instance_type
465 // contains the instance_type. The registers map and instance_type can be the 473 // contains the instance_type. The registers map and instance_type can be the
466 // same in which case it contains the instance type afterwards. Either of the 474 // same in which case it contains the instance type afterwards. Either of the
467 // registers map and instance_type can be the same as heap_object. 475 // registers map and instance_type can be the same as heap_object.
468 Condition IsObjectStringType(Register heap_object, 476 Condition IsObjectStringType(Register heap_object,
469 Register map, 477 Register map,
470 Register instance_type); 478 Register instance_type);
471 479
472 // FCmp is similar to integer cmp, but requires unsigned 480 // FCmp is similar to integer cmp, but requires unsigned
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // Verify restrictions about code generated in stubs. 713 // Verify restrictions about code generated in stubs.
706 void set_generating_stub(bool value) { generating_stub_ = value; } 714 void set_generating_stub(bool value) { generating_stub_ = value; }
707 bool generating_stub() { return generating_stub_; } 715 bool generating_stub() { return generating_stub_; }
708 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 716 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
709 bool allow_stub_calls() { return allow_stub_calls_; } 717 bool allow_stub_calls() { return allow_stub_calls_; }
710 718
711 private: 719 private:
712 List<Unresolved> unresolved_; 720 List<Unresolved> unresolved_;
713 bool generating_stub_; 721 bool generating_stub_;
714 bool allow_stub_calls_; 722 bool allow_stub_calls_;
715 Handle<Object> code_object_; // This handle will be patched with the code 723 // This handle will be patched with the code object on installation.
716 // object on installation. 724 Handle<Object> code_object_;
717 725
718 // Helper functions for generating invokes. 726 // Helper functions for generating invokes.
719 void InvokePrologue(const ParameterCount& expected, 727 void InvokePrologue(const ParameterCount& expected,
720 const ParameterCount& actual, 728 const ParameterCount& actual,
721 Handle<Code> code_constant, 729 Handle<Code> code_constant,
722 Register code_register, 730 Register code_register,
723 Label* done, 731 Label* done,
724 InvokeFlag flag); 732 InvokeFlag flag);
725 733
726 // Prepares for a call or jump to a builtin by doing two things: 734 // Prepares for a call or jump to a builtin by doing two things:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 } \ 812 } \
805 masm-> 813 masm->
806 #else 814 #else
807 #define ACCESS_MASM(masm) masm-> 815 #define ACCESS_MASM(masm) masm->
808 #endif 816 #endif
809 817
810 818
811 } } // namespace v8::internal 819 } } // namespace v8::internal
812 820
813 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 821 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698