OLD | NEW |
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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 Handle<Code> TurboFanCodeStub::GenerateCode() { | 412 Handle<Code> TurboFanCodeStub::GenerateCode() { |
413 const char* name = CodeStub::MajorName(MajorKey()); | 413 const char* name = CodeStub::MajorName(MajorKey()); |
414 Zone zone(isolate()->allocator()); | 414 Zone zone(isolate()->allocator()); |
415 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); | 415 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); |
416 CodeStubAssembler assembler(isolate(), &zone, descriptor, GetCodeFlags(), | 416 CodeStubAssembler assembler(isolate(), &zone, descriptor, GetCodeFlags(), |
417 name); | 417 name); |
418 GenerateAssembly(&assembler); | 418 GenerateAssembly(&assembler); |
419 return assembler.GenerateCode(); | 419 return assembler.GenerateCode(); |
420 } | 420 } |
421 | 421 |
422 void LoadICTrampolineTFStub::GenerateAssembly( | 422 void LoadICTrampolineStub::GenerateAssembly( |
423 CodeStubAssembler* assembler) const { | 423 CodeStubAssembler* assembler) const { |
424 typedef compiler::Node Node; | 424 typedef compiler::Node Node; |
425 | 425 |
426 Node* receiver = assembler->Parameter(Descriptor::kReceiver); | 426 Node* receiver = assembler->Parameter(Descriptor::kReceiver); |
427 Node* name = assembler->Parameter(Descriptor::kName); | 427 Node* name = assembler->Parameter(Descriptor::kName); |
428 Node* slot = assembler->Parameter(Descriptor::kSlot); | 428 Node* slot = assembler->Parameter(Descriptor::kSlot); |
429 Node* context = assembler->Parameter(Descriptor::kContext); | 429 Node* context = assembler->Parameter(Descriptor::kContext); |
430 Node* vector = assembler->LoadTypeFeedbackVectorForStub(); | 430 Node* vector = assembler->LoadTypeFeedbackVectorForStub(); |
431 | 431 |
432 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector); | 432 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector); |
433 assembler->LoadIC(&p); | 433 assembler->LoadIC(&p); |
434 } | 434 } |
435 | 435 |
436 void LoadICTFStub::GenerateAssembly(CodeStubAssembler* assembler) const { | 436 void LoadICStub::GenerateAssembly(CodeStubAssembler* assembler) const { |
437 typedef compiler::Node Node; | 437 typedef compiler::Node Node; |
438 | 438 |
439 Node* receiver = assembler->Parameter(Descriptor::kReceiver); | 439 Node* receiver = assembler->Parameter(Descriptor::kReceiver); |
440 Node* name = assembler->Parameter(Descriptor::kName); | 440 Node* name = assembler->Parameter(Descriptor::kName); |
441 Node* slot = assembler->Parameter(Descriptor::kSlot); | 441 Node* slot = assembler->Parameter(Descriptor::kSlot); |
442 Node* vector = assembler->Parameter(Descriptor::kVector); | 442 Node* vector = assembler->Parameter(Descriptor::kVector); |
443 Node* context = assembler->Parameter(Descriptor::kContext); | 443 Node* context = assembler->Parameter(Descriptor::kContext); |
444 | 444 |
445 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector); | 445 CodeStubAssembler::LoadICParameters p(context, receiver, name, slot, vector); |
446 assembler->LoadIC(&p); | 446 assembler->LoadIC(&p); |
(...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3008 | 3008 |
3009 if (type == MachineType::Pointer()) { | 3009 if (type == MachineType::Pointer()) { |
3010 return Representation::External(); | 3010 return Representation::External(); |
3011 } | 3011 } |
3012 | 3012 |
3013 return Representation::Tagged(); | 3013 return Representation::Tagged(); |
3014 } | 3014 } |
3015 | 3015 |
3016 } // namespace internal | 3016 } // namespace internal |
3017 } // namespace v8 | 3017 } // namespace v8 |
OLD | NEW |