| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |