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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 UNREACHABLE(); | 334 UNREACHABLE(); |
335 } | 335 } |
336 return false; | 336 return false; |
337 } | 337 } |
338 | 338 |
339 | 339 |
340 // ---------------------------------------------------------------------------- | 340 // ---------------------------------------------------------------------------- |
341 // Inlining support | 341 // Inlining support |
342 | 342 |
343 bool Declaration::IsInlineable() const { | 343 bool Declaration::IsInlineable() const { |
344 UNREACHABLE(); | 344 return proxy()->var()->IsStackAllocated() && fun() == NULL; |
345 return false; | |
346 } | 345 } |
347 | 346 |
348 | 347 |
349 bool TargetCollector::IsInlineable() const { | 348 bool TargetCollector::IsInlineable() const { |
350 UNREACHABLE(); | 349 UNREACHABLE(); |
351 return false; | 350 return false; |
352 } | 351 } |
353 | 352 |
354 | 353 |
355 bool Slot::IsInlineable() const { | 354 bool Slot::IsInlineable() const { |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 int pos) | 1147 int pos) |
1149 : label_(label), | 1148 : label_(label), |
1150 statements_(statements), | 1149 statements_(statements), |
1151 position_(pos), | 1150 position_(pos), |
1152 compare_type_(NONE), | 1151 compare_type_(NONE), |
1153 compare_id_(AstNode::GetNextId()), | 1152 compare_id_(AstNode::GetNextId()), |
1154 entry_id_(AstNode::GetNextId()) { | 1153 entry_id_(AstNode::GetNextId()) { |
1155 } | 1154 } |
1156 | 1155 |
1157 } } // namespace v8::internal | 1156 } } // namespace v8::internal |
OLD | NEW |