| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, | 314 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, |
| 315 ClearExceptionFlag flag); | 315 ClearExceptionFlag flag); |
| 316 | 316 |
| 317 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, | 317 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |
| 318 ClearExceptionFlag flag); | 318 ClearExceptionFlag flag); |
| 319 | 319 |
| 320 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); | 320 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); |
| 321 | 321 |
| 322 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); | 322 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); |
| 323 | 323 |
| 324 bool CompileOptimized(Handle<JSFunction> function, int osr_ast_id); |
| 325 |
| 324 class NoHandleAllocation BASE_EMBEDDED { | 326 class NoHandleAllocation BASE_EMBEDDED { |
| 325 public: | 327 public: |
| 326 #ifndef DEBUG | 328 #ifndef DEBUG |
| 327 NoHandleAllocation() {} | 329 NoHandleAllocation() {} |
| 328 ~NoHandleAllocation() {} | 330 ~NoHandleAllocation() {} |
| 329 #else | 331 #else |
| 330 inline NoHandleAllocation(); | 332 inline NoHandleAllocation(); |
| 331 inline ~NoHandleAllocation(); | 333 inline ~NoHandleAllocation(); |
| 332 private: | 334 private: |
| 333 int level_; | 335 int level_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 349 private: | 351 private: |
| 350 bool has_been_transformed_; // Tells whether the object has been transformed. | 352 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 351 int unused_property_fields_; // Captures the unused number of field. | 353 int unused_property_fields_; // Captures the unused number of field. |
| 352 Handle<JSObject> object_; // The object being optimized. | 354 Handle<JSObject> object_; // The object being optimized. |
| 353 }; | 355 }; |
| 354 | 356 |
| 355 | 357 |
| 356 } } // namespace v8::internal | 358 } } // namespace v8::internal |
| 357 | 359 |
| 358 #endif // V8_HANDLES_H_ | 360 #endif // V8_HANDLES_H_ |
| OLD | NEW |