OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 raw_frame = it.frame(); | 81 raw_frame = it.frame(); |
82 } | 82 } |
83 } | 83 } |
84 if (raw_frame->is_java_script()) { | 84 if (raw_frame->is_java_script()) { |
85 JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame); | 85 JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame); |
86 Code* js_code = frame->unchecked_code(); | 86 Code* js_code = frame->unchecked_code(); |
87 // Find the function on the stack and both the active code for the | 87 // Find the function on the stack and both the active code for the |
88 // function and the original code. | 88 // function and the original code. |
89 JSFunction* function = JSFunction::cast(frame->function()); | 89 JSFunction* function = JSFunction::cast(frame->function()); |
90 function->PrintName(); | 90 function->PrintName(); |
91 int code_offset = address() - js_code->instruction_start(); | 91 int code_offset = |
| 92 static_cast<int>(address() - js_code->instruction_start()); |
92 PrintF("+%d", code_offset); | 93 PrintF("+%d", code_offset); |
93 } else { | 94 } else { |
94 PrintF("<unknown>"); | 95 PrintF("<unknown>"); |
95 } | 96 } |
96 PrintF(" (%c->%c)%s", | 97 PrintF(" (%c->%c)%s", |
97 TransitionMarkFromState(old_state), | 98 TransitionMarkFromState(old_state), |
98 TransitionMarkFromState(new_state), | 99 TransitionMarkFromState(new_state), |
99 extra_info); | 100 extra_info); |
100 name->Print(); | 101 name->Print(); |
101 PrintF("]\n"); | 102 PrintF("]\n"); |
(...skipping 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2531 #undef ADDR | 2532 #undef ADDR |
2532 }; | 2533 }; |
2533 | 2534 |
2534 | 2535 |
2535 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2536 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2536 return IC_utilities[id]; | 2537 return IC_utilities[id]; |
2537 } | 2538 } |
2538 | 2539 |
2539 | 2540 |
2540 } } // namespace v8::internal | 2541 } } // namespace v8::internal |
OLD | NEW |