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

Side by Side Diff: src/compiler/js-native-context-specialization.cc

Issue 2838143003: [stubs] Drop CallApiCallbackStub::call_data_undefined optimization. (Closed)
Patch Set: Fix handler-compiler for remaining archs. Created 3 years, 8 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/crankshaft/hydrogen.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/js-native-context-specialization.h" 5 #include "src/compiler/js-native-context-specialization.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2208 Node* effect, Node* control, Handle<SharedFunctionInfo> shared_info, 2208 Node* effect, Node* control, Handle<SharedFunctionInfo> shared_info,
2209 Handle<FunctionTemplateInfo> function_template_info) { 2209 Handle<FunctionTemplateInfo> function_template_info) {
2210 Handle<CallHandlerInfo> call_handler_info = handle( 2210 Handle<CallHandlerInfo> call_handler_info = handle(
2211 CallHandlerInfo::cast(function_template_info->call_code()), isolate()); 2211 CallHandlerInfo::cast(function_template_info->call_code()), isolate());
2212 Handle<Object> call_data_object(call_handler_info->data(), isolate()); 2212 Handle<Object> call_data_object(call_handler_info->data(), isolate());
2213 2213
2214 // Only setters have a value. 2214 // Only setters have a value.
2215 int const argc = value == nullptr ? 0 : 1; 2215 int const argc = value == nullptr ? 0 : 1;
2216 // The stub always expects the receiver as the first param on the stack. 2216 // The stub always expects the receiver as the first param on the stack.
2217 CallApiCallbackStub stub( 2217 CallApiCallbackStub stub(
2218 isolate(), argc, call_data_object->IsUndefined(isolate()), 2218 isolate(), argc,
2219 true /* FunctionTemplateInfo doesn't have an associated context. */); 2219 true /* FunctionTemplateInfo doesn't have an associated context. */);
2220 CallInterfaceDescriptor call_interface_descriptor = 2220 CallInterfaceDescriptor call_interface_descriptor =
2221 stub.GetCallInterfaceDescriptor(); 2221 stub.GetCallInterfaceDescriptor();
2222 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( 2222 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor(
2223 isolate(), graph()->zone(), call_interface_descriptor, 2223 isolate(), graph()->zone(), call_interface_descriptor,
2224 call_interface_descriptor.GetStackParameterCount() + argc + 2224 call_interface_descriptor.GetStackParameterCount() + argc +
2225 1 /* implicit receiver */, 2225 1 /* implicit receiver */,
2226 CallDescriptor::kNeedsFrameState, Operator::kNoProperties, 2226 CallDescriptor::kNeedsFrameState, Operator::kNoProperties,
2227 MachineType::AnyTagged(), 1); 2227 MachineType::AnyTagged(), 1);
2228 2228
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2571 return jsgraph()->javascript(); 2571 return jsgraph()->javascript();
2572 } 2572 }
2573 2573
2574 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { 2574 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const {
2575 return jsgraph()->simplified(); 2575 return jsgraph()->simplified();
2576 } 2576 }
2577 2577
2578 } // namespace compiler 2578 } // namespace compiler
2579 } // namespace internal 2579 } // namespace internal
2580 } // namespace v8 2580 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698