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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 10263008: Implement clearing of CompareICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 years, 7 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/ic-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4170 matching lines...) Expand 10 before | Expand all | Expand 10 after
4181 if (r2.is(r3)) return true; 4181 if (r2.is(r3)) return true;
4182 if (r2.is(r4)) return true; 4182 if (r2.is(r4)) return true;
4183 if (r3.is(r4)) return true; 4183 if (r3.is(r4)) return true;
4184 return false; 4184 return false;
4185 } 4185 }
4186 4186
4187 4187
4188 CodePatcher::CodePatcher(byte* address, int size) 4188 CodePatcher::CodePatcher(byte* address, int size)
4189 : address_(address), 4189 : address_(address),
4190 size_(size), 4190 size_(size),
4191 masm_(Isolate::Current(), address, size + Assembler::kGap) { 4191 masm_(NULL, address, size + Assembler::kGap) {
4192 // Create a new macro assembler pointing to the address of the code to patch. 4192 // Create a new macro assembler pointing to the address of the code to patch.
4193 // The size is adjusted with kGap on order for the assembler to generate size 4193 // The size is adjusted with kGap on order for the assembler to generate size
4194 // bytes of instructions without failing with buffer size constraints. 4194 // bytes of instructions without failing with buffer size constraints.
4195 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 4195 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
4196 } 4196 }
4197 4197
4198 4198
4199 CodePatcher::~CodePatcher() { 4199 CodePatcher::~CodePatcher() {
4200 // Indicate that code has changed. 4200 // Indicate that code has changed.
4201 CPU::FlushICache(address_, size_); 4201 CPU::FlushICache(address_, size_);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
4436 bind(&check_prototype); 4436 bind(&check_prototype);
4437 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); 4437 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset));
4438 cmpq(rcx, null_value); 4438 cmpq(rcx, null_value);
4439 j(not_equal, &next); 4439 j(not_equal, &next);
4440 } 4440 }
4441 4441
4442 4442
4443 } } // namespace v8::internal 4443 } } // namespace v8::internal
4444 4444
4445 #endif // V8_TARGET_ARCH_X64 4445 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698