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

Side by Side Diff: src/frames.cc

Issue 5597007: Fix Win64 compilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix linter Created 10 years 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/deoptimizer.cc ('k') | src/hydrogen.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 void JavaScriptFrame::GetFunctions(List<JSFunction*>* functions) { 649 void JavaScriptFrame::GetFunctions(List<JSFunction*>* functions) {
650 ASSERT(functions->length() == 0); 650 ASSERT(functions->length() == 0);
651 functions->Add(JSFunction::cast(function())); 651 functions->Add(JSFunction::cast(function()));
652 } 652 }
653 653
654 654
655 void JavaScriptFrame::Summarize(List<FrameSummary>* functions) { 655 void JavaScriptFrame::Summarize(List<FrameSummary>* functions) {
656 ASSERT(functions->length() == 0); 656 ASSERT(functions->length() == 0);
657 Code* code_pointer = code(); 657 Code* code_pointer = code();
658 int offset = pc() - code_pointer->address(); 658 int offset = static_cast<int>(pc() - code_pointer->address());
659 FrameSummary summary(receiver(), 659 FrameSummary summary(receiver(),
660 JSFunction::cast(function()), 660 JSFunction::cast(function()),
661 code_pointer, 661 code_pointer,
662 offset, 662 offset,
663 IsConstructor()); 663 IsConstructor());
664 functions->Add(summary); 664 functions->Add(summary);
665 } 665 }
666 666
667 667
668 void FrameSummary::Print() { 668 void FrameSummary::Print() {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 // The code object may have been replaced by lazy deoptimization. Fall 772 // The code object may have been replaced by lazy deoptimization. Fall
773 // back to a slow search in this case to find the original optimized 773 // back to a slow search in this case to find the original optimized
774 // code object. 774 // code object.
775 if (!code->contains(pc())) { 775 if (!code->contains(pc())) {
776 code = PcToCodeCache::GcSafeFindCodeForPc(pc()); 776 code = PcToCodeCache::GcSafeFindCodeForPc(pc());
777 } 777 }
778 ASSERT(code != NULL); 778 ASSERT(code != NULL);
779 ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION); 779 ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION);
780 780
781 SafepointTable table(code); 781 SafepointTable table(code);
782 unsigned pc_offset = pc() - code->instruction_start(); 782 unsigned pc_offset = static_cast<unsigned>(pc() - code->instruction_start());
783 for (unsigned i = 0; i < table.length(); i++) { 783 for (unsigned i = 0; i < table.length(); i++) {
784 if (table.GetPcOffset(i) == pc_offset) { 784 if (table.GetPcOffset(i) == pc_offset) {
785 *deopt_index = table.GetDeoptimizationIndex(i); 785 *deopt_index = table.GetDeoptimizationIndex(i);
786 break; 786 break;
787 } 787 }
788 } 788 }
789 ASSERT(*deopt_index != AstNode::kNoNumber); 789 ASSERT(*deopt_index != AstNode::kNoNumber);
790 790
791 return DeoptimizationInputData::cast(code->deoptimization_data()); 791 return DeoptimizationInputData::cast(code->deoptimization_data());
792 } 792 }
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 ZoneList<StackFrame*> list(10); 1216 ZoneList<StackFrame*> list(10);
1217 for (StackFrameIterator it; !it.done(); it.Advance()) { 1217 for (StackFrameIterator it; !it.done(); it.Advance()) {
1218 StackFrame* frame = AllocateFrameCopy(it.frame()); 1218 StackFrame* frame = AllocateFrameCopy(it.frame());
1219 list.Add(frame); 1219 list.Add(frame);
1220 } 1220 }
1221 return list.ToVector(); 1221 return list.ToVector();
1222 } 1222 }
1223 1223
1224 1224
1225 } } // namespace v8::internal 1225 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698