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

Side by Side Diff: src/ic.cc

Issue 103903002: Fix performance regression in Kraken audio-oscillator. (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 | « no previous file | no next file » | 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 2607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2618 2618
2619 left_kind_ = UpdateKind(left, left_kind_); 2619 left_kind_ = UpdateKind(left, left_kind_);
2620 right_kind_ = UpdateKind(right, right_kind_); 2620 right_kind_ = UpdateKind(right, right_kind_);
2621 2621
2622 int32_t fixed_right_arg_value = 0; 2622 int32_t fixed_right_arg_value = 0;
2623 bool has_fixed_right_arg = 2623 bool has_fixed_right_arg =
2624 op_ == Token::MOD && 2624 op_ == Token::MOD &&
2625 right->ToInt32(&fixed_right_arg_value) && 2625 right->ToInt32(&fixed_right_arg_value) &&
2626 fixed_right_arg_value > 0 && 2626 fixed_right_arg_value > 0 &&
2627 IsPowerOf2(fixed_right_arg_value) && 2627 IsPowerOf2(fixed_right_arg_value) &&
2628 FixedRightArgValueField::is_valid(fixed_right_arg_value) && 2628 FixedRightArgValueField::is_valid(WhichPowerOf2(fixed_right_arg_value)) &&
2629 (left_kind_ == SMI || left_kind_ == INT32) && 2629 (left_kind_ == SMI || left_kind_ == INT32) &&
2630 (result_kind_ == NONE || !fixed_right_arg_.has_value); 2630 (result_kind_ == NONE || !fixed_right_arg_.has_value);
2631 fixed_right_arg_ = Maybe<int32_t>(has_fixed_right_arg, 2631 fixed_right_arg_ = Maybe<int32_t>(has_fixed_right_arg,
2632 fixed_right_arg_value); 2632 fixed_right_arg_value);
2633 2633
2634 result_kind_ = UpdateKind(result, result_kind_); 2634 result_kind_ = UpdateKind(result, result_kind_);
2635 2635
2636 if (!Token::IsTruncatingBinaryOp(op_)) { 2636 if (!Token::IsTruncatingBinaryOp(op_)) {
2637 Kind input_kind = Max(left_kind_, right_kind_); 2637 Kind input_kind = Max(left_kind_, right_kind_);
2638 if (result_kind_ < input_kind && input_kind <= NUMBER) { 2638 if (result_kind_ < input_kind && input_kind <= NUMBER) {
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
3143 #undef ADDR 3143 #undef ADDR
3144 }; 3144 };
3145 3145
3146 3146
3147 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3147 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3148 return IC_utilities[id]; 3148 return IC_utilities[id];
3149 } 3149 }
3150 3150
3151 3151
3152 } } // namespace v8::internal 3152 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698