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

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

Issue 8960004: Avoid embedding new space objects into code objects in the lithium gap resolver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 12 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void LoadRoot(Register destination, 161 void LoadRoot(Register destination,
162 Heap::RootListIndex index, 162 Heap::RootListIndex index,
163 Condition cond = al); 163 Condition cond = al);
164 // Store an object to the root table. 164 // Store an object to the root table.
165 void StoreRoot(Register source, 165 void StoreRoot(Register source,
166 Heap::RootListIndex index, 166 Heap::RootListIndex index,
167 Condition cond = al); 167 Condition cond = al);
168 168
169 void LoadHeapObject(Register dst, Handle<HeapObject> object); 169 void LoadHeapObject(Register dst, Handle<HeapObject> object);
170 170
171 void LoadObject(Register result, Handle<Object> object) {
172 if (object->IsHeapObject()) {
173 LoadHeapObject(result, Handle<HeapObject>::cast(object));
174 } else {
175 Move(result, object);
176 }
177 }
178
171 // --------------------------------------------------------------------------- 179 // ---------------------------------------------------------------------------
172 // GC Support 180 // GC Support
173 181
174 void IncrementalMarkingRecordWriteHelper(Register object, 182 void IncrementalMarkingRecordWriteHelper(Register object,
175 Register value, 183 Register value,
176 Register address); 184 Register address);
177 185
178 enum RememberedSetFinalAction { 186 enum RememberedSetFinalAction {
179 kReturnAtEnd, 187 kReturnAtEnd,
180 kFallThroughAtEnd 188 kFallThroughAtEnd
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1326 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1319 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1327 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1320 #else 1328 #else
1321 #define ACCESS_MASM(masm) masm-> 1329 #define ACCESS_MASM(masm) masm->
1322 #endif 1330 #endif
1323 1331
1324 1332
1325 } } // namespace v8::internal 1333 } } // namespace v8::internal
1326 1334
1327 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1335 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698