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

Side by Side Diff: src/ia32/deoptimizer-ia32.cc

Issue 7970008: Make newer GCCs happier: Fixed NULL vs. 0 confusion. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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/arm/deoptimizer-arm.cc ('k') | src/incremental-marking.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 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ASSERT(*(call_target_address - 3) == 0x73 && // jae 248 ASSERT(*(call_target_address - 3) == 0x73 && // jae
249 *(call_target_address - 2) == 0x07 && // offset 249 *(call_target_address - 2) == 0x07 && // offset
250 *(call_target_address - 1) == 0xe8); // call 250 *(call_target_address - 1) == 0xe8); // call
251 *(call_target_address - 3) = 0x90; // nop 251 *(call_target_address - 3) = 0x90; // nop
252 *(call_target_address - 2) = 0x90; // nop 252 *(call_target_address - 2) = 0x90; // nop
253 Assembler::set_target_address_at(call_target_address, 253 Assembler::set_target_address_at(call_target_address,
254 replacement_code->entry()); 254 replacement_code->entry());
255 255
256 RelocInfo rinfo(call_target_address, 256 RelocInfo rinfo(call_target_address,
257 RelocInfo::CODE_TARGET, 257 RelocInfo::CODE_TARGET,
258 NULL, 258 0,
259 unoptimized_code); 259 unoptimized_code);
260 unoptimized_code->GetHeap()->incremental_marking()->RecordWriteIntoCode( 260 unoptimized_code->GetHeap()->incremental_marking()->RecordWriteIntoCode(
261 unoptimized_code, &rinfo, replacement_code); 261 unoptimized_code, &rinfo, replacement_code);
262 } 262 }
263 263
264 264
265 void Deoptimizer::RevertStackCheckCodeAt(Address pc_after, 265 void Deoptimizer::RevertStackCheckCodeAt(Address pc_after,
266 Code* check_code, 266 Code* check_code,
267 Code* replacement_code) { 267 Code* replacement_code) {
268 Address call_target_address = pc_after - kIntSize; 268 Address call_target_address = pc_after - kIntSize;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 } 808 }
809 __ bind(&done); 809 __ bind(&done);
810 } 810 }
811 811
812 #undef __ 812 #undef __
813 813
814 814
815 } } // namespace v8::internal 815 } } // namespace v8::internal
816 816
817 #endif // V8_TARGET_ARCH_IA32 817 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698