| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 enum Location { | 50 enum Location { |
| 51 // Before and during variable allocation, a variable whose location is | 51 // Before and during variable allocation, a variable whose location is |
| 52 // not yet determined. After allocation, a variable looked up as a | 52 // not yet determined. After allocation, a variable looked up as a |
| 53 // property on the global object (and possibly absent). name() is the | 53 // property on the global object (and possibly absent). name() is the |
| 54 // variable name, index() is invalid. | 54 // variable name, index() is invalid. |
| 55 UNALLOCATED, | 55 UNALLOCATED, |
| 56 | 56 |
| 57 // A slot in the parameter section on the stack. index() is the | 57 // A slot in the parameter section on the stack. index() is the |
| 58 // parameter index, counting left-to-right. The reciever is index -1; | 58 // parameter index, counting left-to-right. The receiver is index -1; |
| 59 // the first parameter is index 0. | 59 // the first parameter is index 0. |
| 60 PARAMETER, | 60 PARAMETER, |
| 61 | 61 |
| 62 // A slot in the local section on the stack. index() is the variable | 62 // A slot in the local section on the stack. index() is the variable |
| 63 // index in the stack frame, starting at 0. | 63 // index in the stack frame, starting at 0. |
| 64 LOCAL, | 64 LOCAL, |
| 65 | 65 |
| 66 // An indexed slot in a heap context. index() is the variable index in | 66 // An indexed slot in a heap context. index() is the variable index in |
| 67 // the context object on the heap, starting at 0. scope() is the | 67 // the context object on the heap, starting at 0. scope() is the |
| 68 // corresponding scope. | 68 // corresponding scope. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 InitializationFlag initialization_flag_; | 188 InitializationFlag initialization_flag_; |
| 189 | 189 |
| 190 // Module type info. | 190 // Module type info. |
| 191 Interface* interface_; | 191 Interface* interface_; |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 | 194 |
| 195 } } // namespace v8::internal | 195 } } // namespace v8::internal |
| 196 | 196 |
| 197 #endif // V8_VARIABLES_H_ | 197 #endif // V8_VARIABLES_H_ |
| OLD | NEW |