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

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

Issue 15735005: Collect type feedback for power-of-2 right operands in BinaryOps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years, 6 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 | « src/objects.cc ('k') | 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 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // TODO(1571) We can't use CompareNilICStub::Types as the return value because 298 // TODO(1571) We can't use CompareNilICStub::Types as the return value because
299 // of various cylces in our headers. Death to tons of implementations in 299 // of various cylces in our headers. Death to tons of implementations in
300 // headers!! :-P 300 // headers!! :-P
301 byte CompareNilTypes(CompareOperation* expr); 301 byte CompareNilTypes(CompareOperation* expr);
302 302
303 // Get type information for arithmetic operations and compares. 303 // Get type information for arithmetic operations and compares.
304 TypeInfo UnaryType(UnaryOperation* expr); 304 TypeInfo UnaryType(UnaryOperation* expr);
305 void BinaryType(BinaryOperation* expr, 305 void BinaryType(BinaryOperation* expr,
306 TypeInfo* left, 306 TypeInfo* left,
307 TypeInfo* right, 307 TypeInfo* right,
308 TypeInfo* result); 308 TypeInfo* result,
309 bool* has_fixed_right_arg,
310 int* fixed_right_arg_value);
309 void CompareType(CompareOperation* expr, 311 void CompareType(CompareOperation* expr,
310 TypeInfo* left_type, 312 TypeInfo* left_type,
311 TypeInfo* right_type, 313 TypeInfo* right_type,
312 TypeInfo* overall_type); 314 TypeInfo* overall_type);
313 Handle<Map> GetCompareMap(CompareOperation* expr); 315 Handle<Map> GetCompareMap(CompareOperation* expr);
314 TypeInfo SwitchType(CaseClause* clause); 316 TypeInfo SwitchType(CaseClause* clause);
315 TypeInfo IncrementType(CountOperation* expr); 317 TypeInfo IncrementType(CountOperation* expr);
316 318
317 Zone* zone() const { return zone_; } 319 Zone* zone() const { return zone_; }
318 Isolate* isolate() const { return isolate_; } 320 Isolate* isolate() const { return isolate_; }
(...skipping 27 matching lines...) Expand all
346 Isolate* isolate_; 348 Isolate* isolate_;
347 Zone* zone_; 349 Zone* zone_;
348 Handle<UnseededNumberDictionary> dictionary_; 350 Handle<UnseededNumberDictionary> dictionary_;
349 351
350 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 352 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
351 }; 353 };
352 354
353 } } // namespace v8::internal 355 } } // namespace v8::internal
354 356
355 #endif // V8_TYPE_INFO_H_ 357 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698