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

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

Issue 25494007: Reland "Hydrogenisation of binops" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 2 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/spaces.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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 294 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
295 // of various cycles in our headers. Death to tons of implementations in 295 // of various cycles in our headers. Death to tons of implementations in
296 // headers!! :-P 296 // headers!! :-P
297 byte ToBooleanTypes(TypeFeedbackId id); 297 byte ToBooleanTypes(TypeFeedbackId id);
298 298
299 // Get type information for arithmetic operations and compares. 299 // Get type information for arithmetic operations and compares.
300 void BinaryType(TypeFeedbackId id, 300 void BinaryType(TypeFeedbackId id,
301 Handle<Type>* left, 301 Handle<Type>* left,
302 Handle<Type>* right, 302 Handle<Type>* right,
303 Handle<Type>* result, 303 Handle<Type>* result,
304 Maybe<int>* fixed_right_arg); 304 Maybe<int>* fixed_right_arg,
305 Token::Value operation);
305 306
306 void CompareType(TypeFeedbackId id, 307 void CompareType(TypeFeedbackId id,
307 Handle<Type>* left, 308 Handle<Type>* left,
308 Handle<Type>* right, 309 Handle<Type>* right,
309 Handle<Type>* combined); 310 Handle<Type>* combined);
310 311
311 Handle<Type> ClauseType(TypeFeedbackId id); 312 Handle<Type> ClauseType(TypeFeedbackId id);
312 313
313 TypeInfo IncrementType(CountOperation* expr); 314 Handle<Type> IncrementType(CountOperation* expr);
314 315
315 Zone* zone() const { return zone_; } 316 Zone* zone() const { return zone_; }
316 Isolate* isolate() const { return isolate_; } 317 Isolate* isolate() const { return isolate_; }
317 318
318 private: 319 private:
319 void CollectReceiverTypes(TypeFeedbackId ast_id, 320 void CollectReceiverTypes(TypeFeedbackId ast_id,
320 Handle<String> name, 321 Handle<String> name,
321 Code::Flags flags, 322 Code::Flags flags,
322 SmallMapList* types); 323 SmallMapList* types);
323 324
(...skipping 20 matching lines...) Expand all
344 Isolate* isolate_; 345 Isolate* isolate_;
345 Zone* zone_; 346 Zone* zone_;
346 Handle<UnseededNumberDictionary> dictionary_; 347 Handle<UnseededNumberDictionary> dictionary_;
347 348
348 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 349 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
349 }; 350 };
350 351
351 } } // namespace v8::internal 352 } } // namespace v8::internal
352 353
353 #endif // V8_TYPE_INFO_H_ 354 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698