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

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

Issue 271102: Record statement positions for the debugger in the fast code generator. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 months 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/fast-codegen.h ('k') | src/ia32/codegen-ia32.h » ('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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 break; 59 break;
60 case Slot::LOCAL: 60 case Slot::LOCAL:
61 offset += JavaScriptFrameConstants::kLocal0Offset; 61 offset += JavaScriptFrameConstants::kLocal0Offset;
62 break; 62 break;
63 default: 63 default:
64 UNREACHABLE(); 64 UNREACHABLE();
65 } 65 }
66 return offset; 66 return offset;
67 } 67 }
68 68
69 void FastCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) {
70 if (FLAG_debug_info) {
71 CodeGenerator::RecordPositions(masm_, fun->start_position());
72 }
73 }
74
75
76 void FastCodeGenerator::SetReturnPosition(FunctionLiteral* fun) {
77 if (FLAG_debug_info) {
78 CodeGenerator::RecordPositions(masm_, fun->end_position());
79 }
80 }
81
82
83 void FastCodeGenerator::SetStatementPosition(Statement* stmt) {
84 if (FLAG_debug_info) {
85 CodeGenerator::RecordPositions(masm_, stmt->statement_pos());
86 }
87 }
88
89
90 void FastCodeGenerator::SetSourcePosition(int pos) {
91 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) {
92 masm_->RecordPosition(pos);
93 }
94 }
95
69 96
70 void FastCodeGenerator::VisitDeclaration(Declaration* decl) { 97 void FastCodeGenerator::VisitDeclaration(Declaration* decl) {
71 UNREACHABLE(); 98 UNREACHABLE();
72 } 99 }
73 100
74 101
75 void FastCodeGenerator::VisitBlock(Block* stmt) { 102 void FastCodeGenerator::VisitBlock(Block* stmt) {
76 UNREACHABLE(); 103 UNREACHABLE();
77 } 104 }
78 105
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 UNREACHABLE(); 262 UNREACHABLE();
236 } 263 }
237 264
238 265
239 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { 266 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) {
240 UNREACHABLE(); 267 UNREACHABLE();
241 } 268 }
242 269
243 270
244 } } // namespace v8::internal 271 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/fast-codegen.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698