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

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

Issue 1542963002: [runtime] Introduce dedicated JSBoundFunction to represent bound functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@FunctionConstructor
Patch Set: [arm64] Poke does not preserve flags with --debug-code. Created 4 years, 11 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/compiler/js-intrinsic-lowering.cc ('k') | src/factory.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 12164 matching lines...) Expand 10 before | Expand all | Expand 10 after
12175 FIRST_JS_RECEIVER_TYPE, 12175 FIRST_JS_RECEIVER_TYPE,
12176 LAST_JS_RECEIVER_TYPE); 12176 LAST_JS_RECEIVER_TYPE);
12177 return ast_context()->ReturnControl(result, call->id()); 12177 return ast_context()->ReturnControl(result, call->id());
12178 } 12178 }
12179 12179
12180 12180
12181 void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) { 12181 void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) {
12182 DCHECK(call->arguments()->length() == 1); 12182 DCHECK(call->arguments()->length() == 1);
12183 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12183 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12184 HValue* value = Pop(); 12184 HValue* value = Pop();
12185 HHasInstanceTypeAndBranch* result = 12185 HHasInstanceTypeAndBranch* result = New<HHasInstanceTypeAndBranch>(
12186 New<HHasInstanceTypeAndBranch>(value, JS_FUNCTION_TYPE); 12186 value, FIRST_FUNCTION_TYPE, LAST_FUNCTION_TYPE);
12187 return ast_context()->ReturnControl(result, call->id()); 12187 return ast_context()->ReturnControl(result, call->id());
12188 } 12188 }
12189 12189
12190 12190
12191 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) { 12191 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) {
12192 DCHECK(call->arguments()->length() == 1); 12192 DCHECK(call->arguments()->length() == 1);
12193 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12193 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12194 HValue* value = Pop(); 12194 HValue* value = Pop();
12195 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value); 12195 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value);
12196 return ast_context()->ReturnControl(result, call->id()); 12196 return ast_context()->ReturnControl(result, call->id());
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
13620 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13620 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13621 } 13621 }
13622 13622
13623 #ifdef DEBUG 13623 #ifdef DEBUG
13624 graph_->Verify(false); // No full verify. 13624 graph_->Verify(false); // No full verify.
13625 #endif 13625 #endif
13626 } 13626 }
13627 13627
13628 } // namespace internal 13628 } // namespace internal
13629 } // namespace v8 13629 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698