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

Side by Side Diff: src/x64/codegen-x64.cc

Issue 4469002: Improve positions recording for calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years, 1 month 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2938 matching lines...) Expand 10 before | Expand all | Expand 10 after
2949 } 2949 }
2950 2950
2951 2951
2952 void CodeGenerator::VisitReturnStatement(ReturnStatement* node) { 2952 void CodeGenerator::VisitReturnStatement(ReturnStatement* node) {
2953 ASSERT(!in_spilled_code()); 2953 ASSERT(!in_spilled_code());
2954 Comment cmnt(masm_, "[ ReturnStatement"); 2954 Comment cmnt(masm_, "[ ReturnStatement");
2955 2955
2956 CodeForStatementPosition(node); 2956 CodeForStatementPosition(node);
2957 Load(node->expression()); 2957 Load(node->expression());
2958 Result return_value = frame_->Pop(); 2958 Result return_value = frame_->Pop();
2959 masm()->WriteRecordedPositions(); 2959 masm()->positions_recorder()->WriteRecordedPositions();
2960 if (function_return_is_shadowed_) { 2960 if (function_return_is_shadowed_) {
2961 function_return_.Jump(&return_value); 2961 function_return_.Jump(&return_value);
2962 } else { 2962 } else {
2963 frame_->PrepareForReturn(); 2963 frame_->PrepareForReturn();
2964 if (function_return_.is_bound()) { 2964 if (function_return_.is_bound()) {
2965 // If the function return label is already bound we reuse the 2965 // If the function return label is already bound we reuse the
2966 // code by jumping to the return site. 2966 // code by jumping to the return site.
2967 function_return_.Jump(&return_value); 2967 function_return_.Jump(&return_value);
2968 } else { 2968 } else {
2969 function_return_.Bind(&return_value); 2969 function_return_.Bind(&return_value);
(...skipping 5886 matching lines...) Expand 10 before | Expand all | Expand 10 after
8856 #undef __ 8856 #undef __
8857 8857
8858 void RecordWriteStub::Generate(MacroAssembler* masm) { 8858 void RecordWriteStub::Generate(MacroAssembler* masm) {
8859 masm->RecordWriteHelper(object_, addr_, scratch_); 8859 masm->RecordWriteHelper(object_, addr_, scratch_);
8860 masm->ret(0); 8860 masm->ret(0);
8861 } 8861 }
8862 8862
8863 } } // namespace v8::internal 8863 } } // namespace v8::internal
8864 8864
8865 #endif // V8_TARGET_ARCH_X64 8865 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/assembler.h ('K') | « src/x64/assembler-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698