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

Side by Side Diff: src/hydrogen.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/code-stubs.h ('k') | src/hydrogen.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 2305 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 bool TryCallPolymorphicAsMonomorphic(Call* expr, 2316 bool TryCallPolymorphicAsMonomorphic(Call* expr,
2317 HValue* receiver, 2317 HValue* receiver,
2318 SmallMapList* types, 2318 SmallMapList* types,
2319 Handle<String> name); 2319 Handle<String> name);
2320 void HandleLiteralCompareTypeof(CompareOperation* expr, 2320 void HandleLiteralCompareTypeof(CompareOperation* expr,
2321 Expression* sub_expr, 2321 Expression* sub_expr,
2322 Handle<String> check); 2322 Handle<String> check);
2323 void HandleLiteralCompareNil(CompareOperation* expr, 2323 void HandleLiteralCompareNil(CompareOperation* expr,
2324 Expression* sub_expr, 2324 Expression* sub_expr,
2325 NilValue nil); 2325 NilValue nil);
2326 HControlInstruction* BuildCompareInstruction(Token::Value op,
2327 HValue* left,
2328 HValue* right,
2329 Handle<Type> left_type,
2330 Handle<Type> right_type,
2331 Handle<Type> combined_type,
2332 int left_position,
2333 int right_position,
2334 BailoutId bailout_id);
2326 2335
2327 HInstruction* BuildStringCharCodeAt(HValue* string, 2336 HInstruction* BuildStringCharCodeAt(HValue* string,
2328 HValue* index); 2337 HValue* index);
2329 HValue* BuildBinaryOperation(BinaryOperation* expr, 2338 HValue* BuildBinaryOperation(BinaryOperation* expr,
2330 HValue* left, 2339 HValue* left,
2331 HValue* right); 2340 HValue* right);
2332 HInstruction* BuildIncrement(bool returns_original_input, 2341 HInstruction* BuildIncrement(bool returns_original_input,
2333 CountOperation* expr); 2342 CountOperation* expr);
2334 HInstruction* BuildLoadKeyedGeneric(HValue* object, 2343 HInstruction* BuildLoadKeyedGeneric(HValue* object,
2335 HValue* key); 2344 HValue* key);
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 } 2639 }
2631 2640
2632 private: 2641 private:
2633 HGraphBuilder* builder_; 2642 HGraphBuilder* builder_;
2634 }; 2643 };
2635 2644
2636 2645
2637 } } // namespace v8::internal 2646 } } // namespace v8::internal
2638 2647
2639 #endif // V8_HYDROGEN_H_ 2648 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698