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

Side by Side Diff: src/interface-descriptors.cc

Issue 2263253002: [interpreter] Make the binary op with Smi bytecode handlers collect type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 years, 3 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/interface-descriptors.h ('k') | src/interpreter/bytecode-peephole-optimizer.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 namespace { 10 namespace {
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 return function; 311 return function;
312 } 312 }
313 313
314 void StoreWithVectorDescriptor::InitializePlatformSpecific( 314 void StoreWithVectorDescriptor::InitializePlatformSpecific(
315 CallInterfaceDescriptorData* data) { 315 CallInterfaceDescriptorData* data) {
316 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(), 316 Register registers[] = {ReceiverRegister(), NameRegister(), ValueRegister(),
317 SlotRegister(), VectorRegister()}; 317 SlotRegister(), VectorRegister()};
318 data->InitializePlatformSpecific(arraysize(registers), registers); 318 data->InitializePlatformSpecific(arraysize(registers), registers);
319 } 319 }
320 320
321 FunctionType*
322 BinaryOpWithVectorDescriptor::BuildCallInterfaceDescriptorFunctionType(
323 Isolate* isolate, int parameter_count) {
324 DCHECK_EQ(parameter_count, kParameterCount);
325 Zone* zone = isolate->interface_descriptor_zone();
326 FunctionType* function =
327 Type::Function(AnyTagged(zone), Type::Undefined(), kParameterCount, zone)
328 ->AsFunction();
329 function->InitParameter(kLeft, AnyTagged(zone));
330 function->InitParameter(kRight, AnyTagged(zone));
331 function->InitParameter(kSlot, UntaggedIntegral32(zone));
332 function->InitParameter(kVector, AnyTagged(zone));
333 return function;
334 }
335
321 const Register ApiGetterDescriptor::ReceiverRegister() { 336 const Register ApiGetterDescriptor::ReceiverRegister() {
322 return LoadDescriptor::ReceiverRegister(); 337 return LoadDescriptor::ReceiverRegister();
323 } 338 }
324 339
325 void ApiGetterDescriptor::InitializePlatformSpecific( 340 void ApiGetterDescriptor::InitializePlatformSpecific(
326 CallInterfaceDescriptorData* data) { 341 CallInterfaceDescriptorData* data) {
327 Register registers[] = {ReceiverRegister(), HolderRegister(), 342 Register registers[] = {ReceiverRegister(), HolderRegister(),
328 CallbackRegister()}; 343 CallbackRegister()};
329 data->InitializePlatformSpecific(arraysize(registers), registers); 344 data->InitializePlatformSpecific(arraysize(registers), registers);
330 } 345 }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 ->AsFunction(); 631 ->AsFunction();
617 function->InitParameter(kAccumulator, AnyTagged(zone)); 632 function->InitParameter(kAccumulator, AnyTagged(zone));
618 function->InitParameter(kBytecodeOffset, UntaggedIntegral32(zone)); 633 function->InitParameter(kBytecodeOffset, UntaggedIntegral32(zone));
619 function->InitParameter(kBytecodeArray, AnyTagged(zone)); 634 function->InitParameter(kBytecodeArray, AnyTagged(zone));
620 function->InitParameter(kDispatchTable, AnyTagged(zone)); 635 function->InitParameter(kDispatchTable, AnyTagged(zone));
621 return function; 636 return function;
622 } 637 }
623 638
624 } // namespace internal 639 } // namespace internal
625 } // namespace v8 640 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/interpreter/bytecode-peephole-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698