| 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/frames.h" | 5 #include "src/frames.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 entry->safepoint_entry.Reset(); | 1451 entry->safepoint_entry.Reset(); |
| 1452 entry->inner_pointer = inner_pointer; | 1452 entry->inner_pointer = inner_pointer; |
| 1453 } | 1453 } |
| 1454 return entry; | 1454 return entry; |
| 1455 } | 1455 } |
| 1456 | 1456 |
| 1457 | 1457 |
| 1458 // ------------------------------------------------------------------------- | 1458 // ------------------------------------------------------------------------- |
| 1459 | 1459 |
| 1460 | 1460 |
| 1461 int NumRegs(RegList reglist) { return base::bits::CountPopulation32(reglist); } | 1461 int NumRegs(RegList reglist) { return base::bits::CountPopulation(reglist); } |
| 1462 | 1462 |
| 1463 | 1463 |
| 1464 struct JSCallerSavedCodeData { | 1464 struct JSCallerSavedCodeData { |
| 1465 int reg_code[kNumJSCallerSaved]; | 1465 int reg_code[kNumJSCallerSaved]; |
| 1466 }; | 1466 }; |
| 1467 | 1467 |
| 1468 JSCallerSavedCodeData caller_saved_code_data; | 1468 JSCallerSavedCodeData caller_saved_code_data; |
| 1469 | 1469 |
| 1470 void SetUpJSCallerSavedCodeData() { | 1470 void SetUpJSCallerSavedCodeData() { |
| 1471 int i = 0; | 1471 int i = 0; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 ZoneList<StackFrame*> list(10, zone); | 1514 ZoneList<StackFrame*> list(10, zone); |
| 1515 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1515 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
| 1516 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1516 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
| 1517 list.Add(frame, zone); | 1517 list.Add(frame, zone); |
| 1518 } | 1518 } |
| 1519 return list.ToVector(); | 1519 return list.ToVector(); |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 | 1522 |
| 1523 } } // namespace v8::internal | 1523 } } // namespace v8::internal |
| OLD | NEW |