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

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

Issue 1699133002: [intrinsics] Remove the %_IsDate intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BooleanConstructor
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/full-codegen/arm/full-codegen-arm.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 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 12462 matching lines...) Expand 10 before | Expand all | Expand 10 after
12473 { 12473 {
12474 // If the object is not a value return the object. 12474 // If the object is not a value return the object.
12475 Push(object); 12475 Push(object);
12476 Add<HSimulate>(call->id(), FIXED_SIMULATE); 12476 Add<HSimulate>(call->id(), FIXED_SIMULATE);
12477 } 12477 }
12478 if_objectisvalue.End(); 12478 if_objectisvalue.End();
12479 return ast_context()->ReturnValue(Pop()); 12479 return ast_context()->ReturnValue(Pop());
12480 } 12480 }
12481 12481
12482 12482
12483 void HOptimizedGraphBuilder::GenerateIsDate(CallRuntime* call) {
12484 DCHECK_EQ(1, call->arguments()->length());
12485 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12486 HValue* value = Pop();
12487 HHasInstanceTypeAndBranch* result =
12488 New<HHasInstanceTypeAndBranch>(value, JS_DATE_TYPE);
12489 return ast_context()->ReturnControl(result, call->id());
12490 }
12491
12492
12493 void HOptimizedGraphBuilder::GenerateOneByteSeqStringSetChar( 12483 void HOptimizedGraphBuilder::GenerateOneByteSeqStringSetChar(
12494 CallRuntime* call) { 12484 CallRuntime* call) {
12495 DCHECK(call->arguments()->length() == 3); 12485 DCHECK(call->arguments()->length() == 3);
12496 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12486 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12497 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 12487 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12498 CHECK_ALIVE(VisitForValue(call->arguments()->at(2))); 12488 CHECK_ALIVE(VisitForValue(call->arguments()->at(2)));
12499 HValue* string = Pop(); 12489 HValue* string = Pop();
12500 HValue* value = Pop(); 12490 HValue* value = Pop();
12501 HValue* index = Pop(); 12491 HValue* index = Pop();
12502 Add<HSeqStringSetChar>(String::ONE_BYTE_ENCODING, string, 12492 Add<HSeqStringSetChar>(String::ONE_BYTE_ENCODING, string,
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
13566 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13556 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13567 } 13557 }
13568 13558
13569 #ifdef DEBUG 13559 #ifdef DEBUG
13570 graph_->Verify(false); // No full verify. 13560 graph_->Verify(false); // No full verify.
13571 #endif 13561 #endif
13572 } 13562 }
13573 13563
13574 } // namespace internal 13564 } // namespace internal
13575 } // namespace v8 13565 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698