| 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 5411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5422 | 5422 |
| 5423 // SharedFunctionInfo describes the JSFunction information that can be | 5423 // SharedFunctionInfo describes the JSFunction information that can be |
| 5424 // shared by multiple instances of the function. | 5424 // shared by multiple instances of the function. |
| 5425 class SharedFunctionInfo: public HeapObject { | 5425 class SharedFunctionInfo: public HeapObject { |
| 5426 public: | 5426 public: |
| 5427 // [name]: Function name. | 5427 // [name]: Function name. |
| 5428 DECL_ACCESSORS(name, Object) | 5428 DECL_ACCESSORS(name, Object) |
| 5429 | 5429 |
| 5430 // [code]: Function code. | 5430 // [code]: Function code. |
| 5431 DECL_ACCESSORS(code, Code) | 5431 DECL_ACCESSORS(code, Code) |
| 5432 inline void ReplaceCode(Code* code); |
| 5432 | 5433 |
| 5433 // [optimized_code_map]: Map from native context to optimized code | 5434 // [optimized_code_map]: Map from native context to optimized code |
| 5434 // and a shared literals array or Smi 0 if none. | 5435 // and a shared literals array or Smi 0 if none. |
| 5435 DECL_ACCESSORS(optimized_code_map, Object) | 5436 DECL_ACCESSORS(optimized_code_map, Object) |
| 5436 | 5437 |
| 5437 // Returns index i of the entry with the specified context. At position | 5438 // Returns index i of the entry with the specified context. At position |
| 5438 // i - 1 is the context, position i the code, and i + 1 the literals array. | 5439 // i - 1 is the context, position i the code, and i + 1 the literals array. |
| 5439 // Returns -1 when no matching entry is found. | 5440 // Returns -1 when no matching entry is found. |
| 5440 int SearchOptimizedCodeMap(Context* native_context); | 5441 int SearchOptimizedCodeMap(Context* native_context); |
| 5441 | 5442 |
| (...skipping 3644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9086 } else { | 9087 } else { |
| 9087 value &= ~(1 << bit_position); | 9088 value &= ~(1 << bit_position); |
| 9088 } | 9089 } |
| 9089 return value; | 9090 return value; |
| 9090 } | 9091 } |
| 9091 }; | 9092 }; |
| 9092 | 9093 |
| 9093 } } // namespace v8::internal | 9094 } } // namespace v8::internal |
| 9094 | 9095 |
| 9095 #endif // V8_OBJECTS_H_ | 9096 #endif // V8_OBJECTS_H_ |
| OLD | NEW |