Home | History | Annotate | Download | only in src

Lines Matching refs:Code

2 // Use of this source code is governed by a BSD-style license that can be
31 // List of code stubs used on all platforms.
98 // List of code stubs only used on ARM 32 bits platforms.
106 // List of code stubs only used on ARM 64 bits platforms.
117 // List of code stubs only used on PPC platforms.
127 // List of code stubs only used on MIPS platforms.
142 // List of code stubs only used on S390 platforms.
152 // Combined list of code stubs.
176 // Retrieve the code for the stub. Generate the code if needed.
177 Handle<Code> GetCode();
179 // Retrieve the code for the stub, make and return a copy of the code.
180 Handle<Code> GetCodeCopy(const FindAndReplacePattern& pattern);
189 // Gets the major key from a code object that is a code stub or binary op IC.
190 static Major GetMajorKey(Code* code_stub) {
212 // Lookup the code in the (possibly custom) cache.
213 bool FindCodeInCache(Code** code_out);
226 static MaybeHandle<Code> GetCode(Isolate* isolate, uint32_t key);
233 virtual Code::Kind GetCodeKind() const;
237 Code::Flags GetCodeFlags() const;
252 // Generates the assembler code for the stub.
253 virtual Handle<Code> GenerateCode() = 0;
255 // Returns whether the code generated for this stub needs to be allocated as
256 // a fixed (non-moveable) code object.
272 // Perform bookkeeping required after code generation when stub code is
274 void RecordCodeGeneration(Handle<Code> code);
276 // Finish the code object after it has been generated.
277 virtual void FinishCode(Handle<Code> code) { }
281 virtual void Activate(Code* code) { }
283 // Add the code to a specialized cache, specific to an individual
284 // stub type. Please note, this method must add the code object to a
285 // roots object, otherwise we will remove the code during GC.
286 virtual void AddToSpecialCache(Handle<Code> new_object) { }
288 // Find code in a specialized cache, work is delegated to the specific stub.
289 virtual bool FindCodeInSpecialCache(Code** code_out) {
296 // We use this dispatch to statically instantiate the correct code stub for
297 // the given stub key and call the passed function with that code stub.
339 Handle<Code> GenerateCode() override; \
367 Handle<Code> GenerateCode() override; \
377 // There are some code stubs we just can't describe right now with a
390 // Retrieve the code for the stub. Generate the code if needed.
391 Handle<Code> GenerateCode() override;
396 // Generates the assembler code for the stub.
487 // If hint_stack_parameter_count_ > 0, the code stub can optimize the
508 static Handle<Code> GetUninitialized(Isolate* isolate) {
513 // Retrieve the code for the stub. Generate the code if needed.
514 Handle<Code> GenerateCode() override = 0;
518 Handle<Code> GenerateLightweightMissCode(ExternalReference miss);
520 Handle<Code> GenerateRuntimeTailCall(CodeStubDescriptor* descriptor);
552 // Retrieve the code for the stub. Generate the code if needed.
553 Handle<Code> GenerateCode() override;
590 #include "src/ia32/code-stubs-ia32.h"
592 #include "src/x64/code-stubs-x64.h"
594 #include "src/arm64/code-stubs-arm64.h"
596 #include "src/arm/code-stubs-arm.h"
598 #include "src/ppc/code-stubs-ppc.h"
600 #include "src/mips/code-stubs-mips.h"
602 #include "src/mips64/code-stubs-mips64.h"
604 #include "src/s390/code-stubs-s390.h"
606 #include "src/x87/code-stubs-x87.h"
642 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
643 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; }
702 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
703 ExtraICState GetExtraICState() const override { return Code::STORE_IC; }
714 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
715 ExtraICState GetExtraICState() const override { return Code::KEYED_LOAD_IC; }
871 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
872 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; }
890 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
891 ExtraICState GetExtraICState() const override { return Code::STORE_IC; }
911 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
912 ExtraICState GetExtraICState() const override { return Code::STORE_IC; }
922 Handle<Code> GetCodeCopyFromTemplate(Handle<JSGlobalObject> global,
1024 Code::Kind GetCodeKind() const override { return Code::BINARY_OP_IC; }
1057 Handle<Code> GetCodeCopyFromTemplate(Handle<AllocationSite> allocation_site) {
1063 Code::Kind GetCodeKind() const override { return Code::BINARY_OP_IC; }
1092 Code::Kind GetCodeKind() const final { return Code::STUB; }
1169 Code::Kind GetCodeKind() const override { return Code::COMPARE_IC; }
1186 // this predicate to avoid appearance of code stubs with embedded maps in
1219 // their code generation. On machines that always have gp registers (x64) we
1250 void FinishCode(Handle<Code> code) override;
1298 // The code being generated is part of an IC handler, which may MISS
1306 // Generates code implementing String.prototype.charCodeAt.
1333 // Generates the fast case code. On the fallthrough path |result|
1337 // Generates the slow case code. Must not be naturally
1339 // deferred code). Always jumps back to the fast case.
1394 minor_key_ = SourceRegisterBits::encode(source.code()) |
1395 DestinationRegisterBits::encode(destination.code()) |
1445 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
1473 ExtraICState GetExtraICState() const override { return Code::LOAD_IC; }
1487 ExtraICState GetExtraICState() const override { return Code::STORE_IC; }
1516 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
1517 ExtraICState GetExtraICState() const override { return Code::KEYED_STORE_IC; }
1691 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
1692 ExtraICState GetExtraICState() const override { return Code::KEYED_STORE_IC; }
1711 Code::Kind GetCodeKind() const override { return Code::TO_BOOLEAN_IC; }
1716 static Handle<Code> GetUninitialized(Isolate* isolate) {
1761 Code::Kind GetCodeKind() const override { return Code::HANDLER; }
1762 ExtraICState GetExtraICState() const override { return Code::KEYED_STORE_IC; }