OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 CallCodeGeneric(code, mode, instr, RECORD_SIMPLE_SAFEPOINT); | 407 CallCodeGeneric(code, mode, instr, RECORD_SIMPLE_SAFEPOINT); |
408 } | 408 } |
409 | 409 |
410 | 410 |
411 void LCodeGen::CallCodeGeneric(Handle<Code> code, | 411 void LCodeGen::CallCodeGeneric(Handle<Code> code, |
412 RelocInfo::Mode mode, | 412 RelocInfo::Mode mode, |
413 LInstruction* instr, | 413 LInstruction* instr, |
414 SafepointMode safepoint_mode) { | 414 SafepointMode safepoint_mode) { |
415 ASSERT(instr != NULL); | 415 ASSERT(instr != NULL); |
416 | 416 |
417 Assembler::BlockConstPoolScope scope(masm_); | 417 Assembler::BlockPoolsScope scope(masm_); |
418 __ Call(code, mode); | 418 __ Call(code, mode); |
419 RecordSafepointWithLazyDeopt(instr, safepoint_mode); | 419 RecordSafepointWithLazyDeopt(instr, safepoint_mode); |
420 | 420 |
421 if ((code->kind() == Code::BINARY_OP_IC) || | 421 if ((code->kind() == Code::BINARY_OP_IC) || |
422 (code->kind() == Code::COMPARE_IC)) { | 422 (code->kind() == Code::COMPARE_IC)) { |
423 // Signal that we don't inline smi code before these stubs in the | 423 // Signal that we don't inline smi code before these stubs in the |
424 // optimizing code generator. | 424 // optimizing code generator. |
425 InlineSmiCheckInfo::EmitNotInlined(masm()); | 425 InlineSmiCheckInfo::EmitNotInlined(masm()); |
426 } | 426 } |
427 } | 427 } |
(...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5662 __ Bind(&out_of_object); | 5662 __ Bind(&out_of_object); |
5663 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5663 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
5664 // Index is equal to negated out of object property index plus 1. | 5664 // Index is equal to negated out of object property index plus 1. |
5665 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5665 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5666 __ Ldr(result, FieldMemOperand(result, | 5666 __ Ldr(result, FieldMemOperand(result, |
5667 FixedArray::kHeaderSize - kPointerSize)); | 5667 FixedArray::kHeaderSize - kPointerSize)); |
5668 __ Bind(&done); | 5668 __ Bind(&done); |
5669 } | 5669 } |
5670 | 5670 |
5671 } } // namespace v8::internal | 5671 } } // namespace v8::internal |
OLD | NEW |