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

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

Issue 1479293002: Rename %_IsSpecObject to %_IsJSReceiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 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
« 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 12119 matching lines...) Expand 10 before | Expand all | Expand 10 after
12130 // Support for types. 12130 // Support for types.
12131 void HOptimizedGraphBuilder::GenerateIsSmi(CallRuntime* call) { 12131 void HOptimizedGraphBuilder::GenerateIsSmi(CallRuntime* call) {
12132 DCHECK(call->arguments()->length() == 1); 12132 DCHECK(call->arguments()->length() == 1);
12133 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12133 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12134 HValue* value = Pop(); 12134 HValue* value = Pop();
12135 HIsSmiAndBranch* result = New<HIsSmiAndBranch>(value); 12135 HIsSmiAndBranch* result = New<HIsSmiAndBranch>(value);
12136 return ast_context()->ReturnControl(result, call->id()); 12136 return ast_context()->ReturnControl(result, call->id());
12137 } 12137 }
12138 12138
12139 12139
12140 void HOptimizedGraphBuilder::GenerateIsSpecObject(CallRuntime* call) { 12140 void HOptimizedGraphBuilder::GenerateIsJSReceiver(CallRuntime* call) {
12141 DCHECK(call->arguments()->length() == 1); 12141 DCHECK(call->arguments()->length() == 1);
12142 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12142 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12143 HValue* value = Pop(); 12143 HValue* value = Pop();
12144 HHasInstanceTypeAndBranch* result = 12144 HHasInstanceTypeAndBranch* result =
12145 New<HHasInstanceTypeAndBranch>(value, 12145 New<HHasInstanceTypeAndBranch>(value,
12146 FIRST_JS_RECEIVER_TYPE, 12146 FIRST_JS_RECEIVER_TYPE,
12147 LAST_JS_RECEIVER_TYPE); 12147 LAST_JS_RECEIVER_TYPE);
12148 return ast_context()->ReturnControl(result, call->id()); 12148 return ast_context()->ReturnControl(result, call->id());
12149 } 12149 }
12150 12150
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
13619 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13619 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13620 } 13620 }
13621 13621
13622 #ifdef DEBUG 13622 #ifdef DEBUG
13623 graph_->Verify(false); // No full verify. 13623 graph_->Verify(false); // No full verify.
13624 #endif 13624 #endif
13625 } 13625 }
13626 13626
13627 } // namespace internal 13627 } // namespace internal
13628 } // namespace v8 13628 } // 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