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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 List<Variable::Mode, Allocator > context_modes_; | 100 List<Variable::Mode, Allocator > context_modes_; |
101 }; | 101 }; |
102 | 102 |
103 | 103 |
104 // This object provides quick access to scope info details for runtime | 104 // This object provides quick access to scope info details for runtime |
105 // routines w/o the need to explicitly create a ScopeInfo object. | 105 // routines w/o the need to explicitly create a ScopeInfo object. |
106 class SerializedScopeInfo : public FixedArray { | 106 class SerializedScopeInfo : public FixedArray { |
107 public : | 107 public : |
108 | 108 |
109 static SerializedScopeInfo* cast(Object* object) { | 109 static SerializedScopeInfo* cast(Object* object) { |
110 ASSERT(object->IsFixedArray()); | 110 ASSERT(object->IsSerializedScopeInfo()); |
111 return reinterpret_cast<SerializedScopeInfo*>(object); | 111 return reinterpret_cast<SerializedScopeInfo*>(object); |
112 } | 112 } |
113 | 113 |
114 // Does this scope call eval? | 114 // Does this scope call eval? |
115 bool CallsEval(); | 115 bool CallsEval(); |
116 | 116 |
117 // Is this scope a strict mode scope? | 117 // Is this scope a strict mode scope? |
118 bool IsStrictMode(); | 118 bool IsStrictMode(); |
119 | 119 |
120 // Return the number of stack slots for code. | 120 // Return the number of stack slots for code. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 uint32_t values_[kLength]; | 240 uint32_t values_[kLength]; |
241 | 241 |
242 friend class Isolate; | 242 friend class Isolate; |
243 DISALLOW_COPY_AND_ASSIGN(ContextSlotCache); | 243 DISALLOW_COPY_AND_ASSIGN(ContextSlotCache); |
244 }; | 244 }; |
245 | 245 |
246 | 246 |
247 } } // namespace v8::internal | 247 } } // namespace v8::internal |
248 | 248 |
249 #endif // V8_SCOPEINFO_H_ | 249 #endif // V8_SCOPEINFO_H_ |
OLD | NEW |