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

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

Issue 5736008: Provide baseline for experimental GC implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 10 years 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class PostCallGenerator; 54 class PostCallGenerator;
55 55
56 // MacroAssembler implements a collection of frequently used macros. 56 // MacroAssembler implements a collection of frequently used macros.
57 class MacroAssembler: public Assembler { 57 class MacroAssembler: public Assembler {
58 public: 58 public:
59 MacroAssembler(void* buffer, int size); 59 MacroAssembler(void* buffer, int size);
60 60
61 // --------------------------------------------------------------------------- 61 // ---------------------------------------------------------------------------
62 // GC Support 62 // GC Support
63 63
64 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER
64 // For page containing |object| mark region covering |addr| dirty. 65 // For page containing |object| mark region covering |addr| dirty.
65 // RecordWriteHelper only works if the object is not in new 66 // RecordWriteHelper only works if the object is not in new
66 // space. 67 // space.
67 void RecordWriteHelper(Register object, 68 void RecordWriteHelper(Register object,
68 Register addr, 69 Register addr,
69 Register scratch); 70 Register scratch);
70 71
71 // Check if object is in new space. 72 // Check if object is in new space.
72 // scratch can be object itself, but it will be clobbered. 73 // scratch can be object itself, but it will be clobbered.
73 void InNewSpace(Register object, 74 void InNewSpace(Register object,
(...skipping 14 matching lines...) Expand all
88 Register scratch); 89 Register scratch);
89 90
90 // For page containing |object| mark region covering |address| 91 // For page containing |object| mark region covering |address|
91 // dirty. |object| is the object being stored into, |value| is the 92 // dirty. |object| is the object being stored into, |value| is the
92 // object being stored. All registers are clobbered by the 93 // object being stored. All registers are clobbered by the
93 // operation. RecordWrite filters out smis so it does not update the 94 // operation. RecordWrite filters out smis so it does not update the
94 // write barrier if the value is a smi. 95 // write barrier if the value is a smi.
95 void RecordWrite(Register object, 96 void RecordWrite(Register object,
96 Register address, 97 Register address,
97 Register value); 98 Register value);
99 #endif
98 100
99 #ifdef ENABLE_DEBUGGER_SUPPORT 101 #ifdef ENABLE_DEBUGGER_SUPPORT
100 // --------------------------------------------------------------------------- 102 // ---------------------------------------------------------------------------
101 // Debugger Support 103 // Debugger Support
102 104
103 void DebugBreak(); 105 void DebugBreak();
104 #endif 106 #endif
105 107
106 // --------------------------------------------------------------------------- 108 // ---------------------------------------------------------------------------
107 // Activation frames 109 // Activation frames
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } \ 741 } \
740 masm-> 742 masm->
741 #else 743 #else
742 #define ACCESS_MASM(masm) masm-> 744 #define ACCESS_MASM(masm) masm->
743 #endif 745 #endif
744 746
745 747
746 } } // namespace v8::internal 748 } } // namespace v8::internal
747 749
748 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 750 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698