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

Side by Side Diff: src/hydrogen.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/code-stubs-hydrogen.cc ('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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 bool MatchRotateRight(HValue* left, 1344 bool MatchRotateRight(HValue* left,
1345 HValue* right, 1345 HValue* right,
1346 HValue** operand, 1346 HValue** operand,
1347 HValue** shift_amount); 1347 HValue** shift_amount);
1348 1348
1349 HValue* BuildBinaryOperation(Token::Value op, 1349 HValue* BuildBinaryOperation(Token::Value op,
1350 HValue* left, 1350 HValue* left,
1351 HValue* right, 1351 HValue* right,
1352 Handle<Type> left_type, 1352 Handle<Type> left_type,
1353 Handle<Type> right_type, 1353 Handle<Type> right_type,
1354 Handle<Type> result_type, 1354 Handle<Type> result_type);
1355 Maybe<int> fixed_right_arg);
1356 1355
1357 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1356 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1358 1357
1359 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); 1358 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin);
1360 1359
1361 HValue* EnforceNumberType(HValue* number, Handle<Type> expected); 1360 HValue* EnforceNumberType(HValue* number, Handle<Type> expected);
1362 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); 1361 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected);
1363 1362
1364 void FinishExitWithHardDeoptimization(const char* reason, 1363 void FinishExitWithHardDeoptimization(const char* reason,
1365 HBasicBlock* continuation); 1364 HBasicBlock* continuation);
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 } 2629 }
2631 2630
2632 private: 2631 private:
2633 HGraphBuilder* builder_; 2632 HGraphBuilder* builder_;
2634 }; 2633 };
2635 2634
2636 2635
2637 } } // namespace v8::internal 2636 } } // namespace v8::internal
2638 2637
2639 #endif // V8_HYDROGEN_H_ 2638 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698