| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5377 | 5377 |
| 5378 // SharedFunctionInfo describes the JSFunction information that can be | 5378 // SharedFunctionInfo describes the JSFunction information that can be |
| 5379 // shared by multiple instances of the function. | 5379 // shared by multiple instances of the function. |
| 5380 class SharedFunctionInfo: public HeapObject { | 5380 class SharedFunctionInfo: public HeapObject { |
| 5381 public: | 5381 public: |
| 5382 // [name]: Function name. | 5382 // [name]: Function name. |
| 5383 DECL_ACCESSORS(name, Object) | 5383 DECL_ACCESSORS(name, Object) |
| 5384 | 5384 |
| 5385 // [code]: Function code. | 5385 // [code]: Function code. |
| 5386 DECL_ACCESSORS(code, Code) | 5386 DECL_ACCESSORS(code, Code) |
| 5387 inline void ReplaceCode(Code* code); |
| 5387 | 5388 |
| 5388 // [optimized_code_map]: Map from native context to optimized code | 5389 // [optimized_code_map]: Map from native context to optimized code |
| 5389 // and a shared literals array or Smi 0 if none. | 5390 // and a shared literals array or Smi 0 if none. |
| 5390 DECL_ACCESSORS(optimized_code_map, Object) | 5391 DECL_ACCESSORS(optimized_code_map, Object) |
| 5391 | 5392 |
| 5392 // Returns index i of the entry with the specified context. At position | 5393 // Returns index i of the entry with the specified context. At position |
| 5393 // i - 1 is the context, position i the code, and i + 1 the literals array. | 5394 // i - 1 is the context, position i the code, and i + 1 the literals array. |
| 5394 // Returns -1 when no matching entry is found. | 5395 // Returns -1 when no matching entry is found. |
| 5395 int SearchOptimizedCodeMap(Context* native_context); | 5396 int SearchOptimizedCodeMap(Context* native_context); |
| 5396 | 5397 |
| (...skipping 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8817 } else { | 8818 } else { |
| 8818 value &= ~(1 << bit_position); | 8819 value &= ~(1 << bit_position); |
| 8819 } | 8820 } |
| 8820 return value; | 8821 return value; |
| 8821 } | 8822 } |
| 8822 }; | 8823 }; |
| 8823 | 8824 |
| 8824 } } // namespace v8::internal | 8825 } } // namespace v8::internal |
| 8825 | 8826 |
| 8826 #endif // V8_OBJECTS_H_ | 8827 #endif // V8_OBJECTS_H_ |
| OLD | NEW |