| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // Get type information for arithmetic operations and compares. | 255 // Get type information for arithmetic operations and compares. |
| 256 TypeInfo BinaryType(BinaryOperation* expr, Side side); | 256 TypeInfo BinaryType(BinaryOperation* expr, Side side); |
| 257 TypeInfo CompareType(CompareOperation* expr, Side side); | 257 TypeInfo CompareType(CompareOperation* expr, Side side); |
| 258 TypeInfo SwitchType(CaseClause* clause); | 258 TypeInfo SwitchType(CaseClause* clause); |
| 259 | 259 |
| 260 private: | 260 private: |
| 261 void Initialize(Handle<Code> code); | 261 void Initialize(Handle<Code> code); |
| 262 | 262 |
| 263 bool IsMonomorphic(int pos) { return GetElement(map_, pos)->IsMap(); } | 263 bool IsMonomorphic(int pos) { return GetElement(map_, pos)->IsMap(); } |
| 264 | 264 |
| 265 ZoneMapList* CollectReceiverTypes(int position, | 265 ZoneMapList* CollectReceiverTypes(AstId id, |
| 266 Handle<String> name, | 266 Handle<String> name, |
| 267 Code::Flags flags); | 267 Code::Flags flags); |
| 268 | 268 |
| 269 void PopulateMap(Handle<Code> code); | 269 void PopulateMap(Handle<Code> code); |
| 270 | 270 |
| 271 void CollectPositions(Code* code, | 271 void CollectIds(Code* code, |
| 272 List<int>* code_positions, | 272 List<int>* code_positions, |
| 273 List<int>* source_positions); | 273 List<AstId>* ast_ids); |
| 274 |
| 275 void SetInfo(AstId id, Handle<Object> info); |
| 274 | 276 |
| 275 Handle<JSObject> map_; | 277 Handle<JSObject> map_; |
| 276 | 278 |
| 277 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 279 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 278 }; | 280 }; |
| 279 | 281 |
| 280 } } // namespace v8::internal | 282 } } // namespace v8::internal |
| 281 | 283 |
| 282 #endif // V8_TYPE_INFO_H_ | 284 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |