| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
| 6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
| 7 | 7 |
| 8 #include "isolate.h" | 8 #include "isolate.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 // Create a catch context. | 196 // Create a catch context. |
| 197 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 197 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
| 198 Handle<Context> previous, | 198 Handle<Context> previous, |
| 199 Handle<String> name, | 199 Handle<String> name, |
| 200 Handle<Object> thrown_object); | 200 Handle<Object> thrown_object); |
| 201 | 201 |
| 202 // Create a 'with' context. | 202 // Create a 'with' context. |
| 203 Handle<Context> NewWithContext(Handle<JSFunction> function, | 203 Handle<Context> NewWithContext(Handle<JSFunction> function, |
| 204 Handle<Context> previous, | 204 Handle<Context> previous, |
| 205 Handle<JSObject> extension); | 205 Handle<JSReceiver> extension); |
| 206 | 206 |
| 207 // Create a block context. | 207 // Create a block context. |
| 208 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 208 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
| 209 Handle<Context> previous, | 209 Handle<Context> previous, |
| 210 Handle<ScopeInfo> scope_info); | 210 Handle<ScopeInfo> scope_info); |
| 211 | 211 |
| 212 // Allocate a new struct. The struct is pretenured (allocated directly in | 212 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 213 // the old generation). | 213 // the old generation). |
| 214 Handle<Struct> NewStruct(InstanceType type); | 214 Handle<Struct> NewStruct(InstanceType type); |
| 215 | 215 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 | 613 |
| 614 // Update the map cache in the native context with (keys, map) | 614 // Update the map cache in the native context with (keys, map) |
| 615 Handle<MapCache> AddToMapCache(Handle<Context> context, | 615 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 616 Handle<FixedArray> keys, | 616 Handle<FixedArray> keys, |
| 617 Handle<Map> map); | 617 Handle<Map> map); |
| 618 }; | 618 }; |
| 619 | 619 |
| 620 } } // namespace v8::internal | 620 } } // namespace v8::internal |
| 621 | 621 |
| 622 #endif // V8_FACTORY_H_ | 622 #endif // V8_FACTORY_H_ |
| OLD | NEW |