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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 void StoreReceiverTypes(Assignment* expr, | 249 void StoreReceiverTypes(Assignment* expr, |
250 Handle<String> name, | 250 Handle<String> name, |
251 SmallMapList* types); | 251 SmallMapList* types); |
252 void CallReceiverTypes(Call* expr, | 252 void CallReceiverTypes(Call* expr, |
253 Handle<String> name, | 253 Handle<String> name, |
254 CallKind call_kind, | 254 CallKind call_kind, |
255 SmallMapList* types); | 255 SmallMapList* types); |
256 void CollectKeyedReceiverTypes(unsigned ast_id, | 256 void CollectKeyedReceiverTypes(unsigned ast_id, |
257 SmallMapList* types); | 257 SmallMapList* types); |
258 | 258 |
| 259 static bool InSameContext(Map* map, Context* global_context); |
| 260 static bool InSameContext(JSFunction* function, Context* global_context); |
| 261 |
259 CheckType GetCallCheckType(Call* expr); | 262 CheckType GetCallCheckType(Call* expr); |
260 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); | 263 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); |
261 | 264 |
262 Handle<JSFunction> GetCallTarget(Call* expr); | 265 Handle<JSFunction> GetCallTarget(Call* expr); |
263 | 266 |
264 bool LoadIsBuiltin(Property* expr, Builtins::Name id); | 267 bool LoadIsBuiltin(Property* expr, Builtins::Name id); |
265 | 268 |
266 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 269 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
267 // of various cylces in our headers. Death to tons of implementations in | 270 // of various cylces in our headers. Death to tons of implementations in |
268 // headers!! :-P | 271 // headers!! :-P |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 Handle<Context> global_context_; | 303 Handle<Context> global_context_; |
301 Isolate* isolate_; | 304 Isolate* isolate_; |
302 Handle<NumberDictionary> dictionary_; | 305 Handle<NumberDictionary> dictionary_; |
303 | 306 |
304 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 307 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
305 }; | 308 }; |
306 | 309 |
307 } } // namespace v8::internal | 310 } } // namespace v8::internal |
308 | 311 |
309 #endif // V8_TYPE_INFO_H_ | 312 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |