Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: src/type-info.h

Issue 6625054: Make the typefeedback oracle use a NumberDictionary instead of JSObject as it... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/type-info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 253 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
254 254
255 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 255 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
256 256
257 // Get type information for arithmetic operations and compares. 257 // Get type information for arithmetic operations and compares.
258 TypeInfo BinaryType(BinaryOperation* expr); 258 TypeInfo BinaryType(BinaryOperation* expr);
259 TypeInfo CompareType(CompareOperation* expr); 259 TypeInfo CompareType(CompareOperation* expr);
260 TypeInfo SwitchType(CaseClause* clause); 260 TypeInfo SwitchType(CaseClause* clause);
261 261
262 private: 262 private:
263 void Initialize(Handle<Code> code);
264
265 ZoneMapList* CollectReceiverTypes(int position, 263 ZoneMapList* CollectReceiverTypes(int position,
266 Handle<String> name, 264 Handle<String> name,
267 Code::Flags flags); 265 Code::Flags flags);
268 266
269 void PopulateMap(Handle<Code> code); 267 void PopulateMap(Handle<Code> code);
270 268
271 void CollectPositions(Code* code, 269 void CollectPositions(Code* code,
272 List<int>* code_positions, 270 List<int>* code_positions,
273 List<int>* source_positions); 271 List<int>* source_positions);
274 272
273 // Returns an element from the backing store. Returns undefined if
274 // there is no information.
275 Handle<Object> GetInfo(int pos);
276
275 Handle<Context> global_context_; 277 Handle<Context> global_context_;
276 Handle<JSObject> map_; 278 Handle<NumberDictionary> dictionary_;
277 279
278 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 280 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
279 }; 281 };
280 282
281 } } // namespace v8::internal 283 } } // namespace v8::internal
282 284
283 #endif // V8_TYPE_INFO_H_ 285 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698