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

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

Issue 6723014: Avoid TLS access for counters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix lint Created 9 years, 9 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/codegen-ia32.cc ('k') | src/ia32/ic-ia32.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 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after
4220 __ nop(); // Signals no inlined code. 4220 __ nop(); // Signals no inlined code.
4221 break; 4221 break;
4222 default: 4222 default:
4223 // Do nothing. 4223 // Do nothing.
4224 break; 4224 break;
4225 } 4225 }
4226 } 4226 }
4227 4227
4228 4228
4229 void FullCodeGenerator::EmitCallIC(Handle<Code> ic, JumpPatchSite* patch_site) { 4229 void FullCodeGenerator::EmitCallIC(Handle<Code> ic, JumpPatchSite* patch_site) {
4230 Counters* counters = masm()->isolate()->counters();
4230 switch (ic->kind()) { 4231 switch (ic->kind()) {
4231 case Code::LOAD_IC: 4232 case Code::LOAD_IC:
4232 __ IncrementCounter(COUNTERS->named_load_full(), 1); 4233 __ IncrementCounter(counters->named_load_full(), 1);
4233 break; 4234 break;
4234 case Code::KEYED_LOAD_IC: 4235 case Code::KEYED_LOAD_IC:
4235 __ IncrementCounter(COUNTERS->keyed_load_full(), 1); 4236 __ IncrementCounter(counters->keyed_load_full(), 1);
4236 break; 4237 break;
4237 case Code::STORE_IC: 4238 case Code::STORE_IC:
4238 __ IncrementCounter(COUNTERS->named_store_full(), 1); 4239 __ IncrementCounter(counters->named_store_full(), 1);
4239 break; 4240 break;
4240 case Code::KEYED_STORE_IC: 4241 case Code::KEYED_STORE_IC:
4241 __ IncrementCounter(COUNTERS->keyed_store_full(), 1); 4242 __ IncrementCounter(counters->keyed_store_full(), 1);
4242 default: 4243 default:
4243 break; 4244 break;
4244 } 4245 }
4245 4246
4246 __ call(ic, RelocInfo::CODE_TARGET); 4247 __ call(ic, RelocInfo::CODE_TARGET);
4247 if (patch_site != NULL && patch_site->is_bound()) { 4248 if (patch_site != NULL && patch_site->is_bound()) {
4248 patch_site->EmitPatchInfo(); 4249 patch_site->EmitPatchInfo();
4249 } else { 4250 } else {
4250 __ nop(); // Signals no inlined code. 4251 __ nop(); // Signals no inlined code.
4251 } 4252 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4292 // And return. 4293 // And return.
4293 __ ret(0); 4294 __ ret(0);
4294 } 4295 }
4295 4296
4296 4297
4297 #undef __ 4298 #undef __
4298 4299
4299 } } // namespace v8::internal 4300 } } // namespace v8::internal
4300 4301
4301 #endif // V8_TARGET_ARCH_IA32 4302 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698