Chromium Code Reviews| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 294 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; | 294 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; |
| 295 | 295 |
| 296 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, | 296 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |
| 297 ClearExceptionFlag flag, | 297 ClearExceptionFlag flag, |
| 298 int loop_nesting); | 298 int loop_nesting); |
| 299 | 299 |
| 300 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); | 300 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); |
| 301 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); | 301 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); |
| 302 | 302 |
| 303 // These deal with lazily loaded properties. | 303 // These deal with lazily loaded properties. |
| 304 void SetupLazy(Handle<JSFunction> fun, | 304 void SetupLazy(Handle<JSObject> fun, |
|
Mads Ager (chromium)
2009/04/23 19:09:25
fun -> object?
| |
| 305 int index, | 305 int index, |
| 306 Handle<Context> compile_context, | 306 Handle<Context> compile_context, |
| 307 Handle<Context> function_context); | 307 Handle<Context> function_context); |
| 308 void LoadLazy(Handle<JSFunction> fun, bool* pending_exception); | 308 void LoadLazy(Handle<JSObject> fun, bool* pending_exception); |
|
Mads Ager (chromium)
2009/04/23 19:09:25
fun -> object?
| |
| 309 | 309 |
| 310 class NoHandleAllocation BASE_EMBEDDED { | 310 class NoHandleAllocation BASE_EMBEDDED { |
| 311 public: | 311 public: |
| 312 #ifndef DEBUG | 312 #ifndef DEBUG |
| 313 NoHandleAllocation() {} | 313 NoHandleAllocation() {} |
| 314 ~NoHandleAllocation() {} | 314 ~NoHandleAllocation() {} |
| 315 #else | 315 #else |
| 316 inline NoHandleAllocation(); | 316 inline NoHandleAllocation(); |
| 317 inline ~NoHandleAllocation(); | 317 inline ~NoHandleAllocation(); |
| 318 private: | 318 private: |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 334 private: | 334 private: |
| 335 bool has_been_transformed_; // Tells whether the object has been transformed. | 335 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 336 int unused_property_fields_; // Captures the unused number of field. | 336 int unused_property_fields_; // Captures the unused number of field. |
| 337 Handle<JSObject> object_; // The object being optimized. | 337 Handle<JSObject> object_; // The object being optimized. |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 | 340 |
| 341 } } // namespace v8::internal | 341 } } // namespace v8::internal |
| 342 | 342 |
| 343 #endif // V8_HANDLES_H_ | 343 #endif // V8_HANDLES_H_ |
| OLD | NEW |