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

Side by Side Diff: src/jump-target-heavy.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/stub-cache-ia32.cc ('k') | src/log.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 *arg1 = cgen()->frame()->Pop(); 133 *arg1 = cgen()->frame()->Pop();
134 *arg0 = cgen()->frame()->Pop(); 134 *arg0 = cgen()->frame()->Pop();
135 } 135 }
136 136
137 137
138 void JumpTarget::ComputeEntryFrame() { 138 void JumpTarget::ComputeEntryFrame() {
139 // Given: a collection of frames reaching by forward CFG edges and 139 // Given: a collection of frames reaching by forward CFG edges and
140 // the directionality of the block. Compute: an entry frame for the 140 // the directionality of the block. Compute: an entry frame for the
141 // block. 141 // block.
142 142
143 COUNTERS->compute_entry_frame()->Increment(); 143 Isolate::Current()->counters()->compute_entry_frame()->Increment();
144 #ifdef DEBUG 144 #ifdef DEBUG
145 if (Isolate::Current()->jump_target_compiling_deferred_code()) { 145 if (Isolate::Current()->jump_target_compiling_deferred_code()) {
146 ASSERT(reaching_frames_.length() > 1); 146 ASSERT(reaching_frames_.length() > 1);
147 VirtualFrame* frame = reaching_frames_[0]; 147 VirtualFrame* frame = reaching_frames_[0];
148 bool all_identical = true; 148 bool all_identical = true;
149 for (int i = 1; i < reaching_frames_.length(); i++) { 149 for (int i = 1; i < reaching_frames_.length(); i++) {
150 if (!frame->Equals(reaching_frames_[i])) { 150 if (!frame->Equals(reaching_frames_[i])) {
151 all_identical = false; 151 all_identical = false;
152 break; 152 break;
153 } 153 }
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 ASSERT(statement_position_ != RelocInfo::kNoPosition); 418 ASSERT(statement_position_ != RelocInfo::kNoPosition);
419 ASSERT(position_ != RelocInfo::kNoPosition); 419 ASSERT(position_ != RelocInfo::kNoPosition);
420 420
421 CodeGeneratorScope::Current(Isolate::Current())->AddDeferred(this); 421 CodeGeneratorScope::Current(Isolate::Current())->AddDeferred(this);
422 #ifdef DEBUG 422 #ifdef DEBUG
423 comment_ = ""; 423 comment_ = "";
424 #endif 424 #endif
425 } 425 }
426 426
427 } } // namespace v8::internal 427 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698