| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; |  356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; | 
|  357  |  357  | 
|  358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, |  358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, | 
|  359                     ClearExceptionFlag flag); |  359                     ClearExceptionFlag flag); | 
|  360  |  360  | 
|  361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |  361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, | 
|  362                        ClearExceptionFlag flag); |  362                        ClearExceptionFlag flag); | 
|  363  |  363  | 
|  364 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); |  364 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); | 
|  365  |  365  | 
|  366 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); |  | 
|  367  |  | 
|  368 bool CompileOptimized(Handle<JSFunction> function, |  366 bool CompileOptimized(Handle<JSFunction> function, | 
|  369                       int osr_ast_id, |  367                       int osr_ast_id, | 
|  370                       ClearExceptionFlag flag); |  368                       ClearExceptionFlag flag); | 
|  371  |  369  | 
|  372 class NoHandleAllocation BASE_EMBEDDED { |  370 class NoHandleAllocation BASE_EMBEDDED { | 
|  373  public: |  371  public: | 
|  374 #ifndef DEBUG |  372 #ifndef DEBUG | 
|  375   NoHandleAllocation() {} |  373   NoHandleAllocation() {} | 
|  376   ~NoHandleAllocation() {} |  374   ~NoHandleAllocation() {} | 
|  377 #else |  375 #else | 
|  378   inline NoHandleAllocation(); |  376   inline NoHandleAllocation(); | 
|  379   inline ~NoHandleAllocation(); |  377   inline ~NoHandleAllocation(); | 
|  380  private: |  378  private: | 
|  381   int level_; |  379   int level_; | 
|  382 #endif |  380 #endif | 
|  383 }; |  381 }; | 
|  384  |  382  | 
|  385 } }  // namespace v8::internal |  383 } }  // namespace v8::internal | 
|  386  |  384  | 
|  387 #endif  // V8_HANDLES_H_ |  385 #endif  // V8_HANDLES_H_ | 
| OLD | NEW |