| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  101   } |  101   } | 
|  102   return NULL; |  102   return NULL; | 
|  103 } |  103 } | 
|  104  |  104  | 
|  105  |  105  | 
|  106 // ---------------------------------------------------------------------------- |  106 // ---------------------------------------------------------------------------- | 
|  107 // Implementation of Scope |  107 // Implementation of Scope | 
|  108  |  108  | 
|  109  |  109  | 
|  110 // Dummy constructor |  110 // Dummy constructor | 
|  111 Scope::Scope() |  111 Scope::Scope(Type type) | 
|  112   : inner_scopes_(0), |  112   : outer_scope_(NULL), | 
 |  113     inner_scopes_(0), | 
 |  114     type_(type), | 
 |  115     scope_name_(Factory::empty_symbol()), | 
|  113     variables_(false), |  116     variables_(false), | 
|  114     temps_(0), |  117     temps_(0), | 
|  115     params_(0), |  118     params_(0), | 
|  116     dynamics_(NULL), |  119     dynamics_(NULL), | 
|  117     unresolved_(0), |  120     unresolved_(0), | 
|  118     decls_(0) { |  121     decls_(0), | 
 |  122     receiver_(NULL), | 
 |  123     function_(NULL), | 
 |  124     arguments_(NULL), | 
 |  125     arguments_shadow_(NULL), | 
 |  126     illegal_redecl_(NULL), | 
 |  127     scope_inside_with_(false), | 
 |  128     scope_contains_with_(false), | 
 |  129     scope_calls_eval_(false), | 
 |  130     outer_scope_calls_eval_(false), | 
 |  131     inner_scope_calls_eval_(false), | 
 |  132     outer_scope_is_eval_scope_(false), | 
 |  133     force_eager_compilation_(false), | 
 |  134     num_stack_slots_(0), | 
 |  135     num_heap_slots_(0) { | 
|  119 } |  136 } | 
|  120  |  137  | 
|  121  |  138  | 
|  122 Scope::Scope(Scope* outer_scope, Type type) |  139 Scope::Scope(Scope* outer_scope, Type type) | 
|  123   : outer_scope_(outer_scope), |  140   : outer_scope_(outer_scope), | 
|  124     inner_scopes_(4), |  141     inner_scopes_(4), | 
|  125     type_(type), |  142     type_(type), | 
|  126     scope_name_(Factory::empty_symbol()), |  143     scope_name_(Factory::empty_symbol()), | 
|  127     temps_(4), |  144     temps_(4), | 
|  128     params_(4), |  145     params_(4), | 
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  936   if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && |  953   if (num_heap_slots_ == Context::MIN_CONTEXT_SLOTS && | 
|  937       !must_have_local_context) { |  954       !must_have_local_context) { | 
|  938     num_heap_slots_ = 0; |  955     num_heap_slots_ = 0; | 
|  939   } |  956   } | 
|  940  |  957  | 
|  941   // Allocation done. |  958   // Allocation done. | 
|  942   ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); |  959   ASSERT(num_heap_slots_ == 0 || num_heap_slots_ >= Context::MIN_CONTEXT_SLOTS); | 
|  943 } |  960 } | 
|  944  |  961  | 
|  945 } }  // namespace v8::internal |  962 } }  // namespace v8::internal | 
| OLD | NEW |