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

Side by Side Diff: src/code-stubs.cc

Issue 2496333002: [ic] Extract load IC proto array handlers handling to a separate stub. (Closed)
Patch Set: Created 4 years, 1 month 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/code-stubs.h ('k') | src/ia32/interface-descriptors-ia32.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 Node* receiver = assembler->Parameter(Descriptor::kReceiver); 448 Node* receiver = assembler->Parameter(Descriptor::kReceiver);
449 Node* name = assembler->Parameter(Descriptor::kName); 449 Node* name = assembler->Parameter(Descriptor::kName);
450 Node* slot = assembler->Parameter(Descriptor::kSlot); 450 Node* slot = assembler->Parameter(Descriptor::kSlot);
451 Node* vector = assembler->Parameter(Descriptor::kVector); 451 Node* vector = assembler->Parameter(Descriptor::kVector);
452 Node* context = assembler->Parameter(Descriptor::kContext); 452 Node* context = assembler->Parameter(Descriptor::kContext);
453 453
454 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector); 454 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector);
455 assembler->LoadIC(&p); 455 assembler->LoadIC(&p);
456 } 456 }
457 457
458 void LoadICProtoArrayStub::GenerateAssembly(
459 CodeStubAssembler* assembler) const {
460 typedef compiler::Node Node;
461
462 Node* receiver = assembler->Parameter(Descriptor::kReceiver);
463 Node* name = assembler->Parameter(Descriptor::kName);
464 Node* slot = assembler->Parameter(Descriptor::kSlot);
465 Node* vector = assembler->Parameter(Descriptor::kVector);
466 Node* handler = assembler->Parameter(Descriptor::kHandler);
467 Node* context = assembler->Parameter(Descriptor::kContext);
468
469 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector);
470 assembler->LoadICProtoArray(&p, handler);
471 }
472
458 void LoadGlobalICTrampolineStub::GenerateAssembly( 473 void LoadGlobalICTrampolineStub::GenerateAssembly(
459 CodeStubAssembler* assembler) const { 474 CodeStubAssembler* assembler) const {
460 typedef compiler::Node Node; 475 typedef compiler::Node Node;
461 476
462 Node* slot = assembler->Parameter(Descriptor::kSlot); 477 Node* slot = assembler->Parameter(Descriptor::kSlot);
463 Node* context = assembler->Parameter(Descriptor::kContext); 478 Node* context = assembler->Parameter(Descriptor::kContext);
464 Node* vector = assembler->LoadTypeFeedbackVectorForStub(); 479 Node* vector = assembler->LoadTypeFeedbackVectorForStub();
465 480
466 CodeStubAssembler::LoadICParameters p(context, nullptr, nullptr, slot, 481 CodeStubAssembler::LoadICParameters p(context, nullptr, nullptr, slot,
467 vector); 482 vector);
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 } 3248 }
3234 3249
3235 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 3250 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
3236 : PlatformCodeStub(isolate) {} 3251 : PlatformCodeStub(isolate) {}
3237 3252
3238 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) 3253 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
3239 : PlatformCodeStub(isolate) {} 3254 : PlatformCodeStub(isolate) {}
3240 3255
3241 } // namespace internal 3256 } // namespace internal
3242 } // namespace v8 3257 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698