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

Side by Side Diff: src/full-codegen.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 } 556 }
557 557
558 558
559 void FullCodeGenerator::SetStatementPosition(int pos) { 559 void FullCodeGenerator::SetStatementPosition(int pos) {
560 if (FLAG_debug_info) { 560 if (FLAG_debug_info) {
561 CodeGenerator::RecordPositions(masm_, pos); 561 CodeGenerator::RecordPositions(masm_, pos);
562 } 562 }
563 } 563 }
564 564
565 565
566 void FullCodeGenerator::SetSourcePosition(int pos) { 566 void FullCodeGenerator::SetSourcePosition(
567 int pos, PositionRecordingType recording_type) {
567 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { 568 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) {
568 masm_->RecordPosition(pos); 569 masm_->positions_recorder()->RecordPosition(pos, recording_type);
569 } 570 }
570 } 571 }
571 572
572 573
573 // Lookup table for code generators for special runtime calls which are 574 // Lookup table for code generators for special runtime calls which are
574 // generated inline. 575 // generated inline.
575 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ 576 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \
576 &FullCodeGenerator::Emit##Name, 577 &FullCodeGenerator::Emit##Name,
577 578
578 const FullCodeGenerator::InlineFunctionGenerator 579 const FullCodeGenerator::InlineFunctionGenerator
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 __ Drop(stack_depth); 1223 __ Drop(stack_depth);
1223 __ PopTryHandler(); 1224 __ PopTryHandler();
1224 return 0; 1225 return 0;
1225 } 1226 }
1226 1227
1227 1228
1228 #undef __ 1229 #undef __
1229 1230
1230 1231
1231 } } // namespace v8::internal 1232 } } // namespace v8::internal
OLDNEW
« src/assembler.h ('K') | « src/full-codegen.h ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698