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

Side by Side Diff: src/frames.cc

Issue 502803002: Rename CountSetBits32 to CountPopulation32 for consistency. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/data-flow.cc ('k') | test/base-unittests/bits-unittest.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 SetFp(address() + StackHandlerConstants::kFPOffset, fp); 1572 SetFp(address() + StackHandlerConstants::kFPOffset, fp);
1573 1573
1574 *isolate->handler_address() = address(); 1574 *isolate->handler_address() = address();
1575 1575
1576 return prev_handler_offset->value(); 1576 return prev_handler_offset->value();
1577 } 1577 }
1578 1578
1579 1579
1580 // ------------------------------------------------------------------------- 1580 // -------------------------------------------------------------------------
1581 1581
1582 int NumRegs(RegList reglist) { 1582 int NumRegs(RegList reglist) { return base::bits::CountPopulation32(reglist); }
1583 return base::bits::CountSetBits32(reglist);
1584 }
1585 1583
1586 1584
1587 struct JSCallerSavedCodeData { 1585 struct JSCallerSavedCodeData {
1588 int reg_code[kNumJSCallerSaved]; 1586 int reg_code[kNumJSCallerSaved];
1589 }; 1587 };
1590 1588
1591 JSCallerSavedCodeData caller_saved_code_data; 1589 JSCallerSavedCodeData caller_saved_code_data;
1592 1590
1593 void SetUpJSCallerSavedCodeData() { 1591 void SetUpJSCallerSavedCodeData() {
1594 int i = 0; 1592 int i = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 ZoneList<StackFrame*> list(10, zone); 1635 ZoneList<StackFrame*> list(10, zone);
1638 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1636 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1639 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1637 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1640 list.Add(frame, zone); 1638 list.Add(frame, zone);
1641 } 1639 }
1642 return list.ToVector(); 1640 return list.ToVector();
1643 } 1641 }
1644 1642
1645 1643
1646 } } // namespace v8::internal 1644 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/data-flow.cc ('k') | test/base-unittests/bits-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698