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

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

Issue 103933002: Use constant types to represent the fixed right arg of a MOD. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/ic.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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 305 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
306 // of various cycles in our headers. Death to tons of implementations in 306 // of various cycles in our headers. Death to tons of implementations in
307 // headers!! :-P 307 // headers!! :-P
308 byte ToBooleanTypes(TypeFeedbackId id); 308 byte ToBooleanTypes(TypeFeedbackId id);
309 309
310 // Get type information for arithmetic operations and compares. 310 // Get type information for arithmetic operations and compares.
311 void BinaryType(TypeFeedbackId id, 311 void BinaryType(TypeFeedbackId id,
312 Handle<Type>* left, 312 Handle<Type>* left,
313 Handle<Type>* right, 313 Handle<Type>* right,
314 Handle<Type>* result, 314 Handle<Type>* result,
315 Maybe<int>* fixed_right_arg,
316 Token::Value operation); 315 Token::Value operation);
317 316
318 void CompareType(TypeFeedbackId id, 317 void CompareType(TypeFeedbackId id,
319 Handle<Type>* left, 318 Handle<Type>* left,
320 Handle<Type>* right, 319 Handle<Type>* right,
321 Handle<Type>* combined); 320 Handle<Type>* combined);
322 321
323 Handle<Type> CountType(TypeFeedbackId id); 322 Handle<Type> CountType(TypeFeedbackId id);
324 323
325 Handle<Type> ClauseType(TypeFeedbackId id); 324 Handle<Type> ClauseType(TypeFeedbackId id);
(...skipping 30 matching lines...) Expand all
356 Isolate* isolate_; 355 Isolate* isolate_;
357 Zone* zone_; 356 Zone* zone_;
358 Handle<UnseededNumberDictionary> dictionary_; 357 Handle<UnseededNumberDictionary> dictionary_;
359 358
360 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 359 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
361 }; 360 };
362 361
363 } } // namespace v8::internal 362 } } // namespace v8::internal
364 363
365 #endif // V8_TYPE_INFO_H_ 364 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698