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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // Create a global (but otherwise uninitialized) context. | 145 // Create a global (but otherwise uninitialized) context. |
146 Handle<Context> NewGlobalContext(); | 146 Handle<Context> NewGlobalContext(); |
147 | 147 |
148 // Create a function context. | 148 // Create a function context. |
149 Handle<Context> NewFunctionContext(int length, | 149 Handle<Context> NewFunctionContext(int length, |
150 Handle<JSFunction> closure); | 150 Handle<JSFunction> closure); |
151 | 151 |
152 // Create a catch context. | 152 // Create a catch context. |
153 Handle<Context> NewCatchContext(Handle<Context> previous, | 153 Handle<Context> NewCatchContext(Handle<Context> previous, |
154 Handle<JSObject> extension); | 154 Handle<String> name, |
| 155 Handle<Object> thrown_object); |
155 | 156 |
156 // Create a 'with' context. | 157 // Create a 'with' context. |
157 Handle<Context> NewWithContext(Handle<Context> previous, | 158 Handle<Context> NewWithContext(Handle<Context> previous, |
158 Handle<JSObject> extension); | 159 Handle<JSObject> extension); |
159 | 160 |
160 // Return the Symbol matching the passed in string. | 161 // Return the Symbol matching the passed in string. |
161 Handle<String> SymbolFromString(Handle<String> value); | 162 Handle<String> SymbolFromString(Handle<String> value); |
162 | 163 |
163 // Allocate a new struct. The struct is pretenured (allocated directly in | 164 // Allocate a new struct. The struct is pretenured (allocated directly in |
164 // the old generation). | 165 // the old generation). |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 // Update the map cache in the global context with (keys, map) | 442 // Update the map cache in the global context with (keys, map) |
442 Handle<MapCache> AddToMapCache(Handle<Context> context, | 443 Handle<MapCache> AddToMapCache(Handle<Context> context, |
443 Handle<FixedArray> keys, | 444 Handle<FixedArray> keys, |
444 Handle<Map> map); | 445 Handle<Map> map); |
445 }; | 446 }; |
446 | 447 |
447 | 448 |
448 } } // namespace v8::internal | 449 } } // namespace v8::internal |
449 | 450 |
450 #endif // V8_FACTORY_H_ | 451 #endif // V8_FACTORY_H_ |
OLD | NEW |