| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 case Slot::LOCAL: | 93 case Slot::LOCAL: |
| 94 ASSERT(stack_slots_.length() == slot->index()); | 94 ASSERT(stack_slots_.length() == slot->index()); |
| 95 stack_slots_.Add(var->name()); | 95 stack_slots_.Add(var->name()); |
| 96 break; | 96 break; |
| 97 | 97 |
| 98 case Slot::CONTEXT: | 98 case Slot::CONTEXT: |
| 99 heap_locals.Add(var); | 99 heap_locals.Add(var); |
| 100 break; | 100 break; |
| 101 | 101 |
| 102 case Slot::LOOKUP: | 102 case Slot::LOOKUP: |
| 103 case Slot::GLOBAL: | 103 // This is currently not used. |
| 104 // these are currently not used | |
| 105 UNREACHABLE(); | 104 UNREACHABLE(); |
| 106 break; | 105 break; |
| 107 } | 106 } |
| 108 } | 107 } |
| 109 } | 108 } |
| 110 } | 109 } |
| 111 | 110 |
| 112 // Add heap locals. | 111 // Add heap locals. |
| 113 if (scope->num_heap_slots() > 0) { | 112 if (scope->num_heap_slots() > 0) { |
| 114 // Add user-defined slots. | 113 // Add user-defined slots. |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 } | 640 } |
| 642 #endif // DEBUG | 641 #endif // DEBUG |
| 643 | 642 |
| 644 | 643 |
| 645 // Make sure the classes get instantiated by the template system. | 644 // Make sure the classes get instantiated by the template system. |
| 646 template class ScopeInfo<FreeStoreAllocationPolicy>; | 645 template class ScopeInfo<FreeStoreAllocationPolicy>; |
| 647 template class ScopeInfo<PreallocatedStorage>; | 646 template class ScopeInfo<PreallocatedStorage>; |
| 648 template class ScopeInfo<ZoneListAllocationPolicy>; | 647 template class ScopeInfo<ZoneListAllocationPolicy>; |
| 649 | 648 |
| 650 } } // namespace v8::internal | 649 } } // namespace v8::internal |
| OLD | NEW |