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

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

Issue 23756009: remove getcurrent from stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: reorder isolate parameter Created 7 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/ia32/code-stubs-ia32.cc ('k') | src/objects.h » ('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 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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 } else { 1158 } else {
1159 sequence++; // Skip the kCallOpcode byte 1159 sequence++; // Skip the kCallOpcode byte
1160 Address target_address = sequence + *reinterpret_cast<int*>(sequence) + 1160 Address target_address = sequence + *reinterpret_cast<int*>(sequence) +
1161 Assembler::kCallTargetAddressOffset; 1161 Assembler::kCallTargetAddressOffset;
1162 Code* stub = GetCodeFromTargetAddress(target_address); 1162 Code* stub = GetCodeFromTargetAddress(target_address);
1163 GetCodeAgeAndParity(stub, age, parity); 1163 GetCodeAgeAndParity(stub, age, parity);
1164 } 1164 }
1165 } 1165 }
1166 1166
1167 1167
1168 void Code::PatchPlatformCodeAge(byte* sequence, 1168 void Code::PatchPlatformCodeAge(Isolate* isolate,
1169 byte* sequence,
1169 Code::Age age, 1170 Code::Age age,
1170 MarkingParity parity) { 1171 MarkingParity parity) {
1171 uint32_t young_length; 1172 uint32_t young_length;
1172 byte* young_sequence = GetNoCodeAgeSequence(&young_length); 1173 byte* young_sequence = GetNoCodeAgeSequence(&young_length);
1173 if (age == kNoAge) { 1174 if (age == kNoAge) {
1174 CopyBytes(sequence, young_sequence, young_length); 1175 CopyBytes(sequence, young_sequence, young_length);
1175 CPU::FlushICache(sequence, young_length); 1176 CPU::FlushICache(sequence, young_length);
1176 } else { 1177 } else {
1177 Code* stub = GetCodeAgeStub(age, parity); 1178 Code* stub = GetCodeAgeStub(isolate, age, parity);
1178 CodePatcher patcher(sequence, young_length); 1179 CodePatcher patcher(sequence, young_length);
1179 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); 1180 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32);
1180 } 1181 }
1181 } 1182 }
1182 1183
1183 1184
1184 } } // namespace v8::internal 1185 } } // namespace v8::internal
1185 1186
1186 #endif // V8_TARGET_ARCH_IA32 1187 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698