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

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

Issue 21042003: Patch to enhance the source code line information for profiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 4 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 266 }
267 if (!emit_instructions) continue; 267 if (!emit_instructions) continue;
268 268
269 if (FLAG_code_comments && instr->HasInterestingComment(this)) { 269 if (FLAG_code_comments && instr->HasInterestingComment(this)) {
270 Comment(";;; <@%d,#%d> %s", 270 Comment(";;; <@%d,#%d> %s",
271 current_instruction_, 271 current_instruction_,
272 instr->hydrogen_value()->id(), 272 instr->hydrogen_value()->id(),
273 instr->Mnemonic()); 273 instr->Mnemonic());
274 } 274 }
275 275
276 int pos = instr->position();
277 if (pos >= 0) RecordPosition(pos);
278
276 instr->CompileToNative(this); 279 instr->CompileToNative(this);
277 } 280 }
278 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); 281 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size());
279 return !is_aborted(); 282 return !is_aborted();
280 } 283 }
281 284
282 285
283 bool LCodeGen::GenerateJumpTable() { 286 bool LCodeGen::GenerateJumpTable() {
284 Label needs_frame; 287 Label needs_frame;
285 if (jump_table_.length() > 0) { 288 if (jump_table_.length() > 0) {
(...skipping 5251 matching lines...) Expand 10 before | Expand all | Expand 10 after
5537 FixedArray::kHeaderSize - kPointerSize)); 5540 FixedArray::kHeaderSize - kPointerSize));
5538 __ bind(&done); 5541 __ bind(&done);
5539 } 5542 }
5540 5543
5541 5544
5542 #undef __ 5545 #undef __
5543 5546
5544 } } // namespace v8::internal 5547 } } // namespace v8::internal
5545 5548
5546 #endif // V8_TARGET_ARCH_X64 5549 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698