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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 1680783002: [intrinsics] Kill the %_IsMinusZero intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/crankshaft/hydrogen-instructions.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast/ast-numbering.h" 10 #include "src/ast/ast-numbering.h"
(...skipping 12214 matching lines...) Expand 10 before | Expand all | Expand 10 after
12225 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12225 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12226 HValue* value = Pop(); 12226 HValue* value = Pop();
12227 HHasInstanceTypeAndBranch* result = 12227 HHasInstanceTypeAndBranch* result =
12228 New<HHasInstanceTypeAndBranch>(value, 12228 New<HHasInstanceTypeAndBranch>(value,
12229 FIRST_JS_RECEIVER_TYPE, 12229 FIRST_JS_RECEIVER_TYPE,
12230 LAST_JS_RECEIVER_TYPE); 12230 LAST_JS_RECEIVER_TYPE);
12231 return ast_context()->ReturnControl(result, call->id()); 12231 return ast_context()->ReturnControl(result, call->id());
12232 } 12232 }
12233 12233
12234 12234
12235 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) {
12236 DCHECK(call->arguments()->length() == 1);
12237 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12238 HValue* value = Pop();
12239 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value);
12240 return ast_context()->ReturnControl(result, call->id());
12241 }
12242
12243
12244 void HOptimizedGraphBuilder::GenerateHasCachedArrayIndex(CallRuntime* call) { 12235 void HOptimizedGraphBuilder::GenerateHasCachedArrayIndex(CallRuntime* call) {
12245 DCHECK(call->arguments()->length() == 1); 12236 DCHECK(call->arguments()->length() == 1);
12246 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12237 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12247 HValue* value = Pop(); 12238 HValue* value = Pop();
12248 HHasCachedArrayIndexAndBranch* result = 12239 HHasCachedArrayIndexAndBranch* result =
12249 New<HHasCachedArrayIndexAndBranch>(value); 12240 New<HHasCachedArrayIndexAndBranch>(value);
12250 return ast_context()->ReturnControl(result, call->id()); 12241 return ast_context()->ReturnControl(result, call->id());
12251 } 12242 }
12252 12243
12253 12244
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
13657 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13648 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13658 } 13649 }
13659 13650
13660 #ifdef DEBUG 13651 #ifdef DEBUG
13661 graph_->Verify(false); // No full verify. 13652 graph_->Verify(false); // No full verify.
13662 #endif 13653 #endif
13663 } 13654 }
13664 13655
13665 } // namespace internal 13656 } // namespace internal
13666 } // namespace v8 13657 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/crankshaft/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698