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

Side by Side Diff: src/jump-target-heavy.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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 Jump(); // May emit merge code here. 407 Jump(); // May emit merge code here.
408 fall_through.Bind(); 408 fall_through.Bind();
409 } else { 409 } else {
410 DoBranch(cc, hint); 410 DoBranch(cc, hint);
411 } 411 }
412 } 412 }
413 413
414 414
415 DeferredCode::DeferredCode() 415 DeferredCode::DeferredCode()
416 : masm_(CodeGeneratorScope::Current()->masm()), 416 : masm_(CodeGeneratorScope::Current()->masm()),
417 statement_position_(masm_->current_statement_position()), 417 statement_position_(masm_->positions_recorder()->
418 position_(masm_->current_position()), 418 current_statement_position()),
419 position_(masm_->positions_recorder()->current_position()),
419 frame_state_(CodeGeneratorScope::Current()->frame()) { 420 frame_state_(CodeGeneratorScope::Current()->frame()) {
420 ASSERT(statement_position_ != RelocInfo::kNoPosition); 421 ASSERT(statement_position_ != RelocInfo::kNoPosition);
421 ASSERT(position_ != RelocInfo::kNoPosition); 422 ASSERT(position_ != RelocInfo::kNoPosition);
422 423
423 CodeGeneratorScope::Current()->AddDeferred(this); 424 CodeGeneratorScope::Current()->AddDeferred(this);
424 #ifdef DEBUG 425 #ifdef DEBUG
425 comment_ = ""; 426 comment_ = "";
426 #endif 427 #endif
427 } 428 }
428 429
429 } } // namespace v8::internal 430 } } // namespace v8::internal
OLDNEW
« src/assembler.h ('K') | « src/ia32/full-codegen-ia32.cc ('k') | src/jump-target-light.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698