| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2181 } | 2181 } |
| 2182 | 2182 |
| 2183 | 2183 |
| 2184 void FullCodeGenerator::VisitProperty(Property* expr) { | 2184 void FullCodeGenerator::VisitProperty(Property* expr) { |
| 2185 Comment cmnt(masm_, "[ Property"); | 2185 Comment cmnt(masm_, "[ Property"); |
| 2186 Expression* key = expr->key(); | 2186 Expression* key = expr->key(); |
| 2187 | 2187 |
| 2188 if (key->IsPropertyName()) { | 2188 if (key->IsPropertyName()) { |
| 2189 VisitForAccumulatorValue(expr->obj()); | 2189 VisitForAccumulatorValue(expr->obj()); |
| 2190 EmitNamedPropertyLoad(expr); | 2190 EmitNamedPropertyLoad(expr); |
| 2191 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
| 2191 context()->Plug(rax); | 2192 context()->Plug(rax); |
| 2192 } else { | 2193 } else { |
| 2193 VisitForStackValue(expr->obj()); | 2194 VisitForStackValue(expr->obj()); |
| 2194 VisitForAccumulatorValue(expr->key()); | 2195 VisitForAccumulatorValue(expr->key()); |
| 2195 __ pop(rdx); | 2196 __ pop(rdx); |
| 2196 EmitKeyedPropertyLoad(expr); | 2197 EmitKeyedPropertyLoad(expr); |
| 2197 context()->Plug(rax); | 2198 context()->Plug(rax); |
| 2198 } | 2199 } |
| 2199 } | 2200 } |
| 2200 | 2201 |
| (...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4543 *context_length = 0; | 4544 *context_length = 0; |
| 4544 return previous_; | 4545 return previous_; |
| 4545 } | 4546 } |
| 4546 | 4547 |
| 4547 | 4548 |
| 4548 #undef __ | 4549 #undef __ |
| 4549 | 4550 |
| 4550 } } // namespace v8::internal | 4551 } } // namespace v8::internal |
| 4551 | 4552 |
| 4552 #endif // V8_TARGET_ARCH_X64 | 4553 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |