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 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2268 } | 2268 } |
2269 | 2269 |
2270 | 2270 |
2271 void FullCodeGenerator::VisitProperty(Property* expr) { | 2271 void FullCodeGenerator::VisitProperty(Property* expr) { |
2272 Comment cmnt(masm_, "[ Property"); | 2272 Comment cmnt(masm_, "[ Property"); |
2273 Expression* key = expr->key(); | 2273 Expression* key = expr->key(); |
2274 | 2274 |
2275 if (key->IsPropertyName()) { | 2275 if (key->IsPropertyName()) { |
2276 VisitForAccumulatorValue(expr->obj()); | 2276 VisitForAccumulatorValue(expr->obj()); |
2277 EmitNamedPropertyLoad(expr); | 2277 EmitNamedPropertyLoad(expr); |
| 2278 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
2278 context()->Plug(r0); | 2279 context()->Plug(r0); |
2279 } else { | 2280 } else { |
2280 VisitForStackValue(expr->obj()); | 2281 VisitForStackValue(expr->obj()); |
2281 VisitForAccumulatorValue(expr->key()); | 2282 VisitForAccumulatorValue(expr->key()); |
2282 __ pop(r1); | 2283 __ pop(r1); |
2283 EmitKeyedPropertyLoad(expr); | 2284 EmitKeyedPropertyLoad(expr); |
2284 context()->Plug(r0); | 2285 context()->Plug(r0); |
2285 } | 2286 } |
2286 } | 2287 } |
2287 | 2288 |
(...skipping 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4577 *context_length = 0; | 4578 *context_length = 0; |
4578 return previous_; | 4579 return previous_; |
4579 } | 4580 } |
4580 | 4581 |
4581 | 4582 |
4582 #undef __ | 4583 #undef __ |
4583 | 4584 |
4584 } } // namespace v8::internal | 4585 } } // namespace v8::internal |
4585 | 4586 |
4586 #endif // V8_TARGET_ARCH_ARM | 4587 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |