Fix missing recording of source position for property access in fast compiler.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Oct 2009 10:14:32 +0000 (10:14 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Oct 2009 10:14:32 +0000 (10:14 +0000)
Review URL: http://codereview.chromium.org/341002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3157 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/fast-codegen-arm.cc
src/ia32/fast-codegen-ia32.cc
src/x64/fast-codegen-x64.cc

index fc5deb6068803356ce2ae4e0e0f29a015d068a44..c6916fba73849edfa0e6f63a84a9f2c908c6cc1c 100644 (file)
@@ -497,6 +497,9 @@ void FastCodeGenerator::VisitProperty(Property* expr) {
   Expression* key = expr->key();
   uint32_t dummy;
 
+  // Record the source position for the property load.
+  SetSourcePosition(expr->position());
+
   // Evaluate receiver.
   Visit(expr->obj());
 
index cd3d02ff89ccca675a2939ebc17a7a6209bcc0ac..2ccff43cbb6467de6651bc1b581a6de01c2088f0 100644 (file)
@@ -494,6 +494,9 @@ void FastCodeGenerator::VisitProperty(Property* expr) {
   Expression* key = expr->key();
   uint32_t dummy;
 
+  // Record the source position for the property load.
+  SetSourcePosition(expr->position());
+
   // Evaluate receiver.
   Visit(expr->obj());
 
index 98e72e2584931c7c7bc59ae30a63877d238ac4ec..1fae6cb3b7461137ff83d7fc189d6b052c8f32da 100644 (file)
@@ -507,6 +507,9 @@ void FastCodeGenerator::VisitProperty(Property* expr) {
   Expression* key = expr->key();
   uint32_t dummy;
 
+  // Record the source position for the property load.
+  SetSourcePosition(expr->position());
+
   // Evaluate receiver.
   Visit(expr->obj());