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

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

Issue 9032005: MIPS: Avoid embedding new space objects into code objects in the lithium gap resolver. (Closed)
Patch Set: Rebased on r10334. Created 8 years, 11 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
« no previous file with comments | « src/mips/lithium-gap-resolver-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 // Store an object to the root table. 258 // Store an object to the root table.
259 void StoreRoot(Register source, 259 void StoreRoot(Register source,
260 Heap::RootListIndex index); 260 Heap::RootListIndex index);
261 void StoreRoot(Register source, 261 void StoreRoot(Register source,
262 Heap::RootListIndex index, 262 Heap::RootListIndex index,
263 Condition cond, Register src1, const Operand& src2); 263 Condition cond, Register src1, const Operand& src2);
264 264
265 void LoadHeapObject(Register dst, Handle<HeapObject> object); 265 void LoadHeapObject(Register dst, Handle<HeapObject> object);
266 266
267 void LoadObject(Register result, Handle<Object> object) {
268 if (object->IsHeapObject()) {
269 LoadHeapObject(result, Handle<HeapObject>::cast(object));
270 } else {
271 li(result, object);
272 }
273 }
274
267 // --------------------------------------------------------------------------- 275 // ---------------------------------------------------------------------------
268 // GC Support 276 // GC Support
269 277
270 void IncrementalMarkingRecordWriteHelper(Register object, 278 void IncrementalMarkingRecordWriteHelper(Register object,
271 Register value, 279 Register value,
272 Register address); 280 Register address);
273 281
274 enum RememberedSetFinalAction { 282 enum RememberedSetFinalAction {
275 kReturnAtEnd, 283 kReturnAtEnd,
276 kFallThroughAtEnd 284 kFallThroughAtEnd
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1448 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1441 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1449 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1442 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1450 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1443 #else 1451 #else
1444 #define ACCESS_MASM(masm) masm-> 1452 #define ACCESS_MASM(masm) masm->
1445 #endif 1453 #endif
1446 1454
1447 } } // namespace v8::internal 1455 } } // namespace v8::internal
1448 1456
1449 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1457 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-gap-resolver-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698