From bb9d85e78e396b4c8dc448a2ec7273bc73b38e29 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Wed, 25 Jun 2014 12:06:03 +0000 Subject: [PATCH] Fix --trace-ic position information for LoadICs and StoreICs in optimized code R=yangguo@chromium.org Review URL: https://codereview.chromium.org/352663002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22008 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 339e0d3a8a..d4ea58084f 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -6512,6 +6512,7 @@ void HOptimizedGraphBuilder::VisitAssignment(Assignment* expr) { ASSERT(!HasStackOverflow()); ASSERT(current_block() != NULL); ASSERT(current_block()->HasPredecessor()); + if (!FLAG_hydrogen_track_positions) SetSourcePosition(expr->position()); VariableProxy* proxy = expr->target()->AsVariableProxy(); Property* prop = expr->target()->AsProperty(); ASSERT(proxy == NULL || prop == NULL); @@ -7213,6 +7214,8 @@ void HOptimizedGraphBuilder::VisitProperty(Property* expr) { ASSERT(current_block() != NULL); ASSERT(current_block()->HasPredecessor()); + if (!FLAG_hydrogen_track_positions) SetSourcePosition(expr->position()); + if (TryArgumentsAccess(expr)) return; CHECK_ALIVE(VisitForValue(expr->obj()));