| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 int estimate); | 363 int estimate); |
| 364 | 364 |
| 365 | 365 |
| 366 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 366 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
| 367 Handle<JSFunction> constructor, | 367 Handle<JSFunction> constructor, |
| 368 Handle<JSGlobalProxy> global); | 368 Handle<JSGlobalProxy> global); |
| 369 | 369 |
| 370 Handle<Object> SetPrototype(Handle<JSFunction> function, | 370 Handle<Object> SetPrototype(Handle<JSFunction> function, |
| 371 Handle<Object> prototype); | 371 Handle<Object> prototype); |
| 372 | 372 |
| 373 Handle<Object> PreventExtensions(Handle<JSObject> object); |
| 373 | 374 |
| 374 // Does lazy compilation of the given function. Returns true on success and | 375 // Does lazy compilation of the given function. Returns true on success and |
| 375 // false if the compilation resulted in a stack overflow. | 376 // false if the compilation resulted in a stack overflow. |
| 376 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; | 377 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; |
| 377 | 378 |
| 378 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, | 379 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, |
| 379 ClearExceptionFlag flag); | 380 ClearExceptionFlag flag); |
| 380 | 381 |
| 381 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, | 382 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |
| 382 ClearExceptionFlag flag); | 383 ClearExceptionFlag flag); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 private: | 418 private: |
| 418 bool has_been_transformed_; // Tells whether the object has been transformed. | 419 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 419 int unused_property_fields_; // Captures the unused number of field. | 420 int unused_property_fields_; // Captures the unused number of field. |
| 420 Handle<JSObject> object_; // The object being optimized. | 421 Handle<JSObject> object_; // The object being optimized. |
| 421 }; | 422 }; |
| 422 | 423 |
| 423 | 424 |
| 424 } } // namespace v8::internal | 425 } } // namespace v8::internal |
| 425 | 426 |
| 426 #endif // V8_HANDLES_H_ | 427 #endif // V8_HANDLES_H_ |
| OLD | NEW |