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

Side by Side Diff: src/frames.cc

Issue 494633002: Fix implementation of bit count functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/data-flow.cc ('k') | src/heap/mark-compact.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 // 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/deoptimizer.h" 9 #include "src/deoptimizer.h"
9 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
10 #include "src/full-codegen.h" 11 #include "src/full-codegen.h"
11 #include "src/heap/mark-compact.h" 12 #include "src/heap/mark-compact.h"
12 #include "src/safepoint-table.h" 13 #include "src/safepoint-table.h"
13 #include "src/scopeinfo.h" 14 #include "src/scopeinfo.h"
14 #include "src/string-stream.h" 15 #include "src/string-stream.h"
15 #include "src/vm-state-inl.h" 16 #include "src/vm-state-inl.h"
16 17
17 namespace v8 { 18 namespace v8 {
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 1573
1573 *isolate->handler_address() = address(); 1574 *isolate->handler_address() = address();
1574 1575
1575 return prev_handler_offset->value(); 1576 return prev_handler_offset->value();
1576 } 1577 }
1577 1578
1578 1579
1579 // ------------------------------------------------------------------------- 1580 // -------------------------------------------------------------------------
1580 1581
1581 int NumRegs(RegList reglist) { 1582 int NumRegs(RegList reglist) {
1582 return CompilerIntrinsics::CountSetBits(reglist); 1583 return base::bits::CountSetBits32(reglist);
1583 } 1584 }
1584 1585
1585 1586
1586 struct JSCallerSavedCodeData { 1587 struct JSCallerSavedCodeData {
1587 int reg_code[kNumJSCallerSaved]; 1588 int reg_code[kNumJSCallerSaved];
1588 }; 1589 };
1589 1590
1590 JSCallerSavedCodeData caller_saved_code_data; 1591 JSCallerSavedCodeData caller_saved_code_data;
1591 1592
1592 void SetUpJSCallerSavedCodeData() { 1593 void SetUpJSCallerSavedCodeData() {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 ZoneList<StackFrame*> list(10, zone); 1637 ZoneList<StackFrame*> list(10, zone);
1637 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1638 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1638 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1639 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1639 list.Add(frame, zone); 1640 list.Add(frame, zone);
1640 } 1641 }
1641 return list.ToVector(); 1642 return list.ToVector();
1642 } 1643 }
1643 1644
1644 1645
1645 } } // namespace v8::internal 1646 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/data-flow.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698