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

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

Issue 111573003: Hydrogen: Re-use regular comparisons infrastructure for switch statements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added comment 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/hydrogen.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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 Maybe<int>* fixed_right_arg, 315 Maybe<int>* fixed_right_arg,
316 Token::Value operation); 316 Token::Value operation);
317 317
318 void CompareType(TypeFeedbackId id, 318 void CompareType(TypeFeedbackId id,
319 Handle<Type>* left, 319 Handle<Type>* left,
320 Handle<Type>* right, 320 Handle<Type>* right,
321 Handle<Type>* combined); 321 Handle<Type>* combined);
322 322
323 Handle<Type> CountType(TypeFeedbackId id); 323 Handle<Type> CountType(TypeFeedbackId id);
324 324
325 Handle<Type> ClauseType(TypeFeedbackId id);
326
327 Zone* zone() const { return zone_; } 325 Zone* zone() const { return zone_; }
328 Isolate* isolate() const { return isolate_; } 326 Isolate* isolate() const { return isolate_; }
329 327
330 private: 328 private:
331 void CollectReceiverTypes(TypeFeedbackId id, 329 void CollectReceiverTypes(TypeFeedbackId id,
332 Handle<String> name, 330 Handle<String> name,
333 Code::Flags flags, 331 Code::Flags flags,
334 SmallMapList* types); 332 SmallMapList* types);
335 333
336 void SetInfo(TypeFeedbackId id, Object* target); 334 void SetInfo(TypeFeedbackId id, Object* target);
(...skipping 19 matching lines...) Expand all
356 Isolate* isolate_; 354 Isolate* isolate_;
357 Zone* zone_; 355 Zone* zone_;
358 Handle<UnseededNumberDictionary> dictionary_; 356 Handle<UnseededNumberDictionary> dictionary_;
359 357
360 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 358 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
361 }; 359 };
362 360
363 } } // namespace v8::internal 361 } } // namespace v8::internal
364 362
365 #endif // V8_TYPE_INFO_H_ 363 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698