Home | History | Annotate | Download | only in x64

Lines Matching refs:stub

82 // Flag that indicates how to generate code for the stub GenericBinaryOpStub.
85 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub.
302 // Flag that indicates how to generate code for the stub StringAddStub.
305 // Omit left string check in stub (left is definitely a string).
307 // Omit right string check in stub (right is definitely a string).
309 // Omit both string checks in stub.
510 static Mode GetMode(Code* stub) {
511 byte first_instruction = stub->instruction_start()[0];
512 byte second_instruction = stub->instruction_start()[2];
529 static void Patch(Code* stub, Mode mode) {
532 ASSERT(GetMode(stub) == INCREMENTAL ||
533 GetMode(stub) == INCREMENTAL_COMPACTION);
534 stub->instruction_start()[0] = kTwoByteNopInstruction;
535 stub->instruction_start()[2] = kFiveByteNopInstruction;
538 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY);
539 stub->instruction_start()[0] = kTwoByteJumpInstruction;
542 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY);
543 stub->instruction_start()[0] = kTwoByteNopInstruction;
544 stub->instruction_start()[2] = kFiveByteJumpInstruction;
547 ASSERT(GetMode(stub) == mode);
548 CPU::FlushICache(stub->instruction_start(), 7);