Lines Matching refs:Code
6 // * Redistributions of source code must retain the above copyright
134 virtual int GetCodeKind() { return Code::UNARY_OP_IC; }
140 virtual void FinishCode(Handle<Code> code) {
141 code->set_unary_op_type(operand_type_);
233 virtual int GetCodeKind() { return Code::BINARY_OP_IC; }
239 virtual void FinishCode(Handle<Code> code) {
240 code->set_binary_op_type(operands_type_);
241 code->set_binary_op_result_type(result_type_);
250 // Generate code for copying characters using a simple loop. This should only
262 // Generate code for copying a large number of characters. This function
281 // string is found the code falls through with the string in register r0.
312 // Flag that indicates how to generate code for the stub StringAddStub.
411 ASSERT(IntRegisterBits::is_valid(the_int_.code()));
412 ASSERT(HeapNumberRegisterBits::is_valid(the_heap_number_.code()));
413 ASSERT(ScratchRegisterBits::is_valid(scratch_.code()));
414 ASSERT(SignRegisterBits::is_valid(sign_.code()));
435 return IntRegisterBits::encode(the_int_.code())
436 | HeapNumberRegisterBits::encode(the_heap_number_.code())
437 | ScratchRegisterBits::encode(scratch_.code())
438 | SignRegisterBits::encode(sign_.code());
449 // Generate code to do a lookup in the number string cache. If the number in
450 // the register object is found in the cache the generated code falls through
452 // can be the same. If the number is not found in the cache the code jumps to
500 masm->instr_at_put(pos, BNE | (zero_reg.code() << kRsShift) |
501 (zero_reg.code() << kRtShift) | (offset & kImm16Mask));
507 masm->instr_at_put(pos, BEQ | (zero_reg.code() << kRsShift) |
508 (zero_reg.code() << kRtShift) | (offset & kImm16Mask));
512 static Mode GetMode(Code* stub) {
532 static void Patch(Code* stub, Mode mode) {
646 return ObjectBits::encode(object_.code()) |
647 ValueBits::encode(value_.code()) |
648 AddressBits::encode(address_.code()) |
653 void Activate(Code* code) {
654 code->GetHeap()->incremental_marking()->ActivateGeneratedStub(code);
673 // Enter C code from generated RegExp code in a way that allows
674 // the C code to fix the return address in case of a GC.
689 // Trampoline stub to call into native code. To call safely into native code
690 // in the presence of compacting GC (which can move code objects) we need to
691 // keep the code which called into native pinned in the memory. Currently the
800 // Generate non FPU code to check if a double can be exactly represented by a
821 // Generates code to call a C function to do a double operation using core
823 // This code never falls through, but returns with a heap number containing