Commit 681ab6e3 authored by ager@chromium.org's avatar ager@chromium.org

Reintroduce recording of source position that was lost on ia32 for

some reason.
Review URL: http://codereview.chromium.org/147147

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2275 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d7e86fc3
...@@ -6095,6 +6095,13 @@ void Reference::GetValue(TypeofState typeof_state) { ...@@ -6095,6 +6095,13 @@ void Reference::GetValue(TypeofState typeof_state) {
ASSERT(cgen_->HasValidEntryRegisters()); ASSERT(cgen_->HasValidEntryRegisters());
ASSERT(!is_illegal()); ASSERT(!is_illegal());
MacroAssembler* masm = cgen_->masm(); MacroAssembler* masm = cgen_->masm();
// Record the source position for the property load.
Property* property = expression_->AsProperty();
if (property != NULL) {
cgen_->CodeForSourcePosition(property->position());
}
switch (type_) { switch (type_) {
case SLOT: { case SLOT: {
Comment cmnt(masm, "[ Load from Slot"); Comment cmnt(masm, "[ Load from Slot");
...@@ -6186,6 +6193,7 @@ void Reference::GetValue(TypeofState typeof_state) { ...@@ -6186,6 +6193,7 @@ void Reference::GetValue(TypeofState typeof_state) {
Variable* var = expression_->AsVariableProxy()->AsVariable(); Variable* var = expression_->AsVariableProxy()->AsVariable();
bool is_global = var != NULL; bool is_global = var != NULL;
ASSERT(!is_global || var->is_global()); ASSERT(!is_global || var->is_global());
// Inline array load code if inside of a loop. We do not know // Inline array load code if inside of a loop. We do not know
// the receiver map yet, so we initially generate the code with // the receiver map yet, so we initially generate the code with
// a check against an invalid map. In the inline cache code, we // a check against an invalid map. In the inline cache code, we
......
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
*%(basename)s:31: TypeError: Cannot read property 'x' of undefined *%(basename)s:31: TypeError: Cannot read property 'x' of undefined
undefined.x undefined.x
^ ^
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment