| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 } | 543 } |
| 544 | 544 |
| 545 | 545 |
| 546 bool Conditional::IsInlineable() const { | 546 bool Conditional::IsInlineable() const { |
| 547 return condition()->IsInlineable() && then_expression()->IsInlineable() && | 547 return condition()->IsInlineable() && then_expression()->IsInlineable() && |
| 548 else_expression()->IsInlineable(); | 548 else_expression()->IsInlineable(); |
| 549 } | 549 } |
| 550 | 550 |
| 551 | 551 |
| 552 bool VariableProxy::IsInlineable() const { | 552 bool VariableProxy::IsInlineable() const { |
| 553 return var()->IsUnallocated() || var()->IsStackAllocated(); | 553 return var()->IsUnallocated() || |
| 554 var()->IsStackAllocated() || |
| 555 var()->IsContextSlot(); |
| 554 } | 556 } |
| 555 | 557 |
| 556 | 558 |
| 557 bool Assignment::IsInlineable() const { | 559 bool Assignment::IsInlineable() const { |
| 558 return target()->IsInlineable() && value()->IsInlineable(); | 560 return target()->IsInlineable() && value()->IsInlineable(); |
| 559 } | 561 } |
| 560 | 562 |
| 561 | 563 |
| 562 bool Property::IsInlineable() const { | 564 bool Property::IsInlineable() const { |
| 563 return obj()->IsInlineable() && key()->IsInlineable(); | 565 return obj()->IsInlineable() && key()->IsInlineable(); |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 int pos) | 1187 int pos) |
| 1186 : label_(label), | 1188 : label_(label), |
| 1187 statements_(statements), | 1189 statements_(statements), |
| 1188 position_(pos), | 1190 position_(pos), |
| 1189 compare_type_(NONE), | 1191 compare_type_(NONE), |
| 1190 compare_id_(AstNode::GetNextId(isolate)), | 1192 compare_id_(AstNode::GetNextId(isolate)), |
| 1191 entry_id_(AstNode::GetNextId(isolate)) { | 1193 entry_id_(AstNode::GetNextId(isolate)) { |
| 1192 } | 1194 } |
| 1193 | 1195 |
| 1194 } } // namespace v8::internal | 1196 } } // namespace v8::internal |
| OLD | NEW |