| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
| 8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
| 9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
| 10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
| (...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1866 __ Vmov(result, v, scratch0()); | 1866 __ Vmov(result, v, scratch0()); |
| 1867 } | 1867 } |
| 1868 | 1868 |
| 1869 | 1869 |
| 1870 void LCodeGen::DoConstantE(LConstantE* instr) { | 1870 void LCodeGen::DoConstantE(LConstantE* instr) { |
| 1871 __ mov(ToRegister(instr->result()), Operand(instr->value())); | 1871 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
| 1872 } | 1872 } |
| 1873 | 1873 |
| 1874 | 1874 |
| 1875 void LCodeGen::DoConstantT(LConstantT* instr) { | 1875 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 1876 Handle<Object> value = instr->value(isolate()); | 1876 Handle<Object> object = instr->value(isolate()); |
| 1877 AllowDeferredHandleDereference smi_check; | 1877 AllowDeferredHandleDereference smi_check; |
| 1878 __ Move(ToRegister(instr->result()), value); | 1878 if (instr->hydrogen()->HasObjectMap()) { |
| 1879 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
| 1880 CHECK(object->IsHeapObject()); |
| 1881 CHECK(!object_map->is_stable() || |
| 1882 *object_map == Handle<HeapObject>::cast(object)->map()); |
| 1883 } |
| 1884 __ Move(ToRegister(instr->result()), object); |
| 1879 } | 1885 } |
| 1880 | 1886 |
| 1881 | 1887 |
| 1882 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1888 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
| 1883 Register result = ToRegister(instr->result()); | 1889 Register result = ToRegister(instr->result()); |
| 1884 Register map = ToRegister(instr->value()); | 1890 Register map = ToRegister(instr->value()); |
| 1885 __ EnumLength(result, map); | 1891 __ EnumLength(result, map); |
| 1886 } | 1892 } |
| 1887 | 1893 |
| 1888 | 1894 |
| (...skipping 3948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5837 __ ldr(result, FieldMemOperand(scratch, | 5843 __ ldr(result, FieldMemOperand(scratch, |
| 5838 FixedArray::kHeaderSize - kPointerSize)); | 5844 FixedArray::kHeaderSize - kPointerSize)); |
| 5839 __ bind(deferred->exit()); | 5845 __ bind(deferred->exit()); |
| 5840 __ bind(&done); | 5846 __ bind(&done); |
| 5841 } | 5847 } |
| 5842 | 5848 |
| 5843 | 5849 |
| 5844 #undef __ | 5850 #undef __ |
| 5845 | 5851 |
| 5846 } } // namespace v8::internal | 5852 } } // namespace v8::internal |
| OLD | NEW |