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

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

Issue 2670073002: [stubs] Fix naming of CallIC and CallICTrampoline. (Closed)
Patch Set: Created 3 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/compiler/js-call-reducer.cc ('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 <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 7666 matching lines...) Expand 10 before | Expand all | Expand 10 after
7677 } else { 7677 } else {
7678 DCHECK_EQ(TailCallMode::kDisallow, tail_call_mode); 7678 DCHECK_EQ(TailCallMode::kDisallow, tail_call_mode);
7679 } 7679 }
7680 int arity = argument_count - 1; 7680 int arity = argument_count - 1;
7681 Handle<TypeFeedbackVector> vector(current_feedback_vector(), isolate()); 7681 Handle<TypeFeedbackVector> vector(current_feedback_vector(), isolate());
7682 HValue* arity_val = Add<HConstant>(arity); 7682 HValue* arity_val = Add<HConstant>(arity);
7683 HValue* index_val = Add<HConstant>(vector->GetIndex(slot)); 7683 HValue* index_val = Add<HConstant>(vector->GetIndex(slot));
7684 HValue* vector_val = Add<HConstant>(vector); 7684 HValue* vector_val = Add<HConstant>(vector);
7685 7685
7686 HValue* op_vals[] = {function, arity_val, index_val, vector_val}; 7686 HValue* op_vals[] = {function, arity_val, index_val, vector_val};
7687 Callable callable = CodeFactory::CallICInOptimizedCode( 7687 Callable callable =
7688 isolate(), convert_mode, tail_call_mode); 7688 CodeFactory::CallIC(isolate(), convert_mode, tail_call_mode);
7689 HConstant* stub = Add<HConstant>(callable.code()); 7689 HConstant* stub = Add<HConstant>(callable.code());
7690 7690
7691 return New<HCallWithDescriptor>(stub, argument_count, callable.descriptor(), 7691 return New<HCallWithDescriptor>(stub, argument_count, callable.descriptor(),
7692 ArrayVector(op_vals), 7692 ArrayVector(op_vals),
7693 syntactic_tail_call_mode); 7693 syntactic_tail_call_mode);
7694 } 7694 }
7695 7695
7696 HInstruction* HOptimizedGraphBuilder::NewCallConstantFunction( 7696 HInstruction* HOptimizedGraphBuilder::NewCallConstantFunction(
7697 Handle<JSFunction> function, int argument_count, 7697 Handle<JSFunction> function, int argument_count,
7698 TailCallMode syntactic_tail_call_mode, TailCallMode tail_call_mode) { 7698 TailCallMode syntactic_tail_call_mode, TailCallMode tail_call_mode) {
(...skipping 5326 matching lines...) Expand 10 before | Expand all | Expand 10 after
13025 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13025 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13026 } 13026 }
13027 13027
13028 #ifdef DEBUG 13028 #ifdef DEBUG
13029 graph_->Verify(false); // No full verify. 13029 graph_->Verify(false); // No full verify.
13030 #endif 13030 #endif
13031 } 13031 }
13032 13032
13033 } // namespace internal 13033 } // namespace internal
13034 } // namespace v8 13034 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698