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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
522 } | 522 } |
523 | 523 |
524 | 524 |
525 bool Conditional::IsInlineable() const { | 525 bool Conditional::IsInlineable() const { |
526 return condition()->IsInlineable() && then_expression()->IsInlineable() && | 526 return condition()->IsInlineable() && then_expression()->IsInlineable() && |
527 else_expression()->IsInlineable(); | 527 else_expression()->IsInlineable(); |
528 } | 528 } |
529 | 529 |
530 | 530 |
531 bool VariableProxy::IsInlineable() const { | 531 bool VariableProxy::IsInlineable() const { |
532 return var()->IsUnallocated() || var()->IsStackAllocated(); | 532 return !var()->IsLookupSlot(); |
Kevin Millikin (Chromium)
2011/09/15 09:45:01
I'd prefer to keep this a whitelist, listing the t
| |
533 } | 533 } |
534 | 534 |
535 | 535 |
536 bool Assignment::IsInlineable() const { | 536 bool Assignment::IsInlineable() const { |
537 return target()->IsInlineable() && value()->IsInlineable(); | 537 return target()->IsInlineable() && value()->IsInlineable(); |
538 } | 538 } |
539 | 539 |
540 | 540 |
541 bool Property::IsInlineable() const { | 541 bool Property::IsInlineable() const { |
542 return obj()->IsInlineable() && key()->IsInlineable(); | 542 return obj()->IsInlineable() && key()->IsInlineable(); |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1169 int pos) | 1169 int pos) |
1170 : label_(label), | 1170 : label_(label), |
1171 statements_(statements), | 1171 statements_(statements), |
1172 position_(pos), | 1172 position_(pos), |
1173 compare_type_(NONE), | 1173 compare_type_(NONE), |
1174 compare_id_(AstNode::GetNextId(isolate)), | 1174 compare_id_(AstNode::GetNextId(isolate)), |
1175 entry_id_(AstNode::GetNextId(isolate)) { | 1175 entry_id_(AstNode::GetNextId(isolate)) { |
1176 } | 1176 } |
1177 | 1177 |
1178 } } // namespace v8::internal | 1178 } } // namespace v8::internal |
OLD | NEW |